OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,0,-3,-2,-1).
FORMULA
G.f.: (3-2*x-x^2)^2/(1-x-x^2-x^3)^2.
MATHEMATICA
CoefficientList[Series[(3-2x-x^2)^2/(1-x-x^2-x^3)^2, {x, 0, 30}], x]
PROG
(PARI) my(x='x+O('x^30)); Vec((3-2*x-x^2)^2/(1-x-x^2-x^3)^2) \\ G. C. Greubel, Apr 12 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (3-2*x-x^2)^2/(1-x-x^2-x^3)^2 )); // G. C. Greubel, Apr 12 2019
(Sage) ((3-2*x-x^2)^2/(1-x-x^2-x^3)^2).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, Apr 12 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Aug 11 2002
STATUS
approved