OFFSET
1,10
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,1,-1,0,1).
FORMULA
a(n) = a(n-1) + a(n-2) - a(n-3) + a(n-5) for n>=5.
O.g.f.: x^2*(-1+x+x^2)/(-1+x+x^2-x^3+x^5). - R. J. Mathar, Dec 02 2007
MAPLE
a[0]:=0:a[1]:=1:a[2]:=0:a[3]:=0:a[4]:=-1:
for n from 5 to 46 do a[n]:=a[n-1]+a[n-2]-a[n-3]+a[n-5] od:
seq(a[n], n=0..46);
MATHEMATICA
LinearRecurrence[{1, 1, -1, 0, 1}, {0, 1, 0, 0, -1}, 50] (* Harvey P. Dale, Oct 11 2015 *)
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Jun 08 2005
EXTENSIONS
Edited by N. J. A. Sloane, May 13 2006
New name using g.f. from Joerg Arndt, Dec 26 2022
STATUS
approved