OFFSET
0,9
COMMENTS
Periodic with length 8^2=64.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, -1, 1).
FORMULA
a(n)=(1+floor(n/8)) mod 8.
a(n)=1+floor(n/8)-8*floor((n+8)/64).
a(n)=(((n+8) mod 64)-(n mod 8))/8.
a(n)=((n+8-(n mod 8))/8) mod 8.
G.f. g(x)=(1-x^8)(1+2x^8+3x^16+4x^24+5x^32+6x^40+7x^48)/((1-x)(1-x^64)).
G.f. g(x)=(1-x^8)*sum{0<=k<7, (k+1)*x^(8*k)}/((1-x)(1-x^64)).
G.f. g(x)=(7x^64-8x^56+1)/((1-x)(1-x^8)(1-x^64)).
MATHEMATICA
Flatten[Join[Table[PadRight[{}, 8, n], {n, 7}], Table[PadRight[{}, 8, n], {n, 0, 7}]]] (* Harvey P. Dale, Nov 06 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hieronymus Fischer, Oct 10 2007
STATUS
approved