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