login
A122879
Periodic sequence of period 21.
1
0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2
OFFSET
1,8
COMMENTS
See related comments in A122878.
FORMULA
a(n+21) = a(n).
G.f.: -x^5*(2*x^10-x^7+x^3+1) / ((x-1)*(x^2+x+1)*(x^12-x^11+x^9-x^8+x^6 -x^4+x^3-x+1)). - Colin Barker, Dec 21 2012
MATHEMATICA
PadRight[{}, 120, {0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2}] (* Harvey P. Dale, Dec 27 2016 *)
CROSSREFS
Cf. A122878.
Sequence in context: A343957 A338505 A037867 * A037866 A333181 A306216
KEYWORD
nonn,easy
AUTHOR
Rick L. Shepherd, Sep 16 2006
STATUS
approved