login
A134017
Period 9: repeat 1, 2, 4, 3, 5, 3, 4, 2, 1.
0
1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1
OFFSET
0,2
MATHEMATICA
PadRight[{}, 120, {1, 2, 4, 3, 5, 3, 4, 2, 1}] (* Harvey P. Dale, Dec 03 2017 *)
PROG
(PARI) a(n)=[1, 2, 4, 3, 5, 3, 4, 2, 1][n%9+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Sequence in context: A019656 A256751 A249484 * A292285 A163984 A283366
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 10 2008
STATUS
approved