OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,0,0,-1,-1).
FORMULA
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = - a(n-1) - a(n-4) - a(n-5) for n > 4.
G.f.: (7*x^4 + x^3 - 2*x^2 + 2*x + 6)/((x + 1)*(x^4 + 1)). (End)
MATHEMATICA
PadRight[{}, 120, {6, -4, 2, -1, 2, -4, 6, -7}] (* Harvey P. Dale, Jun 01 2018 *)
PROG
(PARI) a(n)=[6, -4, 2, -1, 2, -4, 6, -7][n%8+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Jan 16 2008
STATUS
approved