login
A153509
Period 9: repeat [6, 6, 6, 3, 3, 3, 0, 0, 0].
0
6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3
OFFSET
0,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
Cf. A130851.
Sequence in context: A172360 A175288 A349187 * A248093 A373021 A361006
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 28 2008
EXTENSIONS
More periods from R. J. Mathar, Jan 21 2009
STATUS
approved