login
A138055
Period 8: repeat 1, 3, 5, 9, 3, 1, 9, 5.
0
1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1, 3, 5, 9, 3, 1, 9, 5, 1
OFFSET
0,2
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
Cf. A136252.
Sequence in context: A319984 A303772 A200510 * A236556 A189044 A299793
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, May 02 2008
STATUS
approved