OFFSET
0,7
COMMENTS
Periodic with length 6^2=36.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, -1, 1, 0, 0, 0, 0, -1, 1).
FORMULA
a(n)=(1+floor(n/6)) mod 6.
a(n)=1+floor(n/6)-6*floor((n+6)/36).
a(n)=(((n+6) mod 36)-(n mod 6))/6.
a(n)=((n+6-(n mod 6))/6) mod 6.
G.f. g(x)=(1-x^6)(1+2x^5+3x^12+4x^18+5x^24)/((1-x)(1-x^36)).
G.f. g(x)=(5x^36-6x^30+1)/((1-x)(1-x^6)(1-x^36)).
MATHEMATICA
Table[PadRight[{}, 6, Mod[n, 6]], {n, 20}]//Flatten (* Harvey P. Dale, Nov 15 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hieronymus Fischer, Oct 10 2007
STATUS
approved