Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem without any additional assumptions is ill-posed. However, if we restrict our attention to linear recurrence (C-finite) sequences it starts making sense:

C.<x> = CFiniteSequences(QQ)
C.guess([1,4,9,16,25,36,49])

which gives

C-finite sequence, generated by (-x - 1)/(x^3 - 3*x^2 + 3*x - 1)