A158674 Period 18: repeat 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, 0, 5, 6, 0, 3, 4, 0, 8, 6, 3, 3, 7, 0, 2, 6, 6, 3, 1
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1).
Programs
-
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
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)).
Extensions
References to apparently unrelated sequences removed by R. J. Mathar, Mar 02 2010
Comments