| 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)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.