OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
J. Hietarinta and C.-M. Viallet, Discrete Painlevé I and singularity confinement in projective space, Chaos, Solitons and Fractals 11, 2000, p. 29.
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,2,0,-2,1).
MATHEMATICA
CoefficientList[Series[(1+2x^3+2x^6)/((1-x)(1-x-x^2+x^3-x^4-x^5+x^6)), {x, 0, 60}], x] (* or *) LinearRecurrence[{2, 0, -2, 2, 0, -2, 1}, {1, 2, 4, 8, 14, 24, 40}, 60] (* Harvey P. Dale, Jun 23 2018 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 60); Coefficients(R!( (1+2*x^3+2*x^6)/((1-x)*(1-x-x^2+x^3-x^4-x^5+x^6)) )); // G. C. Greubel, Mar 22 2023
(SageMath)
def A084683_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1+2*x^3+2*x^6)/((1-x)*(1-x-x^2+x^3-x^4-x^5+x^6)) ).list()
A084683_list(60) # G. C. Greubel, Mar 22 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 16 2003
STATUS
approved