OFFSET
0,5
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1,-1,-1,-1,-1).
MATHEMATICA
PadRight[{}, 120, {0, 0, 1, 1, 2, -1, -1, -2}] (* or *) LinearRecurrence[{-1, -1, -1, -1, -1, -1, -1}, {0, 0, 1, 1, 2, -1, -1}, 120] (* Harvey P. Dale, Oct 26 2025 *)
PROG
(PARI) a(n)=[0, 0, 1, 1, 2, -1, -1, -2][n%8+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Nov 12 2007
STATUS
approved
