login
A153186
Period 9: repeat 1,7,4,7,4,7,1,1,1.
0
1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1, 1, 7, 4, 7, 4, 7, 1, 1, 1
OFFSET
0,2
MATHEMATICA
PadRight[{}, 120, {1, 7, 4, 7, 4, 7, 1, 1, 1}] (* Harvey P. Dale, Sep 14 2019 *)
PROG
(PARI) a(n)=[1, 7, 4, 7, 4, 7, 1, 1, 1][n%9+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Cf. A046163.
Sequence in context: A194361 A153586 A319883 * A343628 A085469 A050996
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 20 2008
EXTENSIONS
Edited by N. J. A. Sloane, Dec 25 2008
STATUS
approved