login
A158674
Period 18: repeat 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6, 0.
2
3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6, 0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6, 0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6, 0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6, 0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6, 0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1
OFFSET
1,1
COMMENTS
Also the decimal expansion of 378737078073678400/111111111111111111 .
FORMULA
a(n) = A106833(n) mod 9.
G.f.: -(3+4*x+8*x^3+6*x^4+3*x^5+3*x^6+7*x^7+2*x^9+6*x^10+6*x^11+3*x^12+x^13+5*x^15+6*x^16) / ((x-1) * (1+x+x^2) * (1+x^3+x^6) * (1+x) * (1-x+x^2) * (1-x^3+x^6)).
PROG
(PARI) a(n)=[0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1, 0, 5, 6][n%18+1] \\ Charles R Greathouse IV, Jul 17 2016
CROSSREFS
Sequence in context: A215079 A049251 A308642 * A077628 A213280 A056862
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Mar 24 2009
EXTENSIONS
References to apparently unrelated sequences removed by R. J. Mathar, Mar 02 2010
STATUS
approved