OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,-1,1,0,-1,1).
FORMULA
G.f.: 3*(2+x^3)/((1-x)*(1+x^3+x^6)). - R. J. Mathar, Jan 21 2009
a(n) = 3*((3-floor((n+3)/3)) mod 3). - Wesley Ivan Hurt, Apr 27 2020
MATHEMATICA
PadRight[{}, 9*12, {6, 6, 6, 3, 3, 3, 0, 0, 0}] (* Harvey P. Dale, Dec 17 2012 *)
PROG
(PARI) a(n)=[6, 6, 6, 3, 3, 3, 0, 0, 0][n%9+1] \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 28 2008
EXTENSIONS
More periods from R. J. Mathar, Jan 21 2009
STATUS
approved