OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,-1,1,-1,1,-1,1).
MATHEMATICA
PadRight[{}, 120, {1, 3, 5, 9, 3, 1, 9, 5}] (* Harvey P. Dale, Apr 13 2019 *)
PROG
(PARI) a(n)=[1, 3, 5, 9, 3, 1, 9, 5][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, May 02 2008
STATUS
approved