OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,-2,0,-1,1).
FORMULA
a(n) = -a(n-1) - 2*a(n-2) - a(n-4) + a(n-5); a(0)=3, a(1)=-1, a(2)=-4, a(3)=6, a(4)=-1.
G.f.: (3 + 2*x + x^2)/(1 + x + 2*x^2 + x^4 - x^5).
MATHEMATICA
CoefficientList[Series[(3 + 2x + x^2)/(1 + x + 2x^2 + x^4 - x^5), {x, 0, 50}], x]
LinearRecurrence[{-1, -2, 0, -1, 1}, {3, -1, -4, 6, -1}, 50] (* Harvey P. Dale, Jul 27 2019 *)
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Sep 17 2002
STATUS
approved