A153509 Period 9: repeat [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, 0, 0, 0, 6, 6, 6, 3, 3, 3
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,0,-1,1,0,-1,1).
Crossrefs
Cf. A130851.
Programs
-
Mathematica
PadRight[{},9*12,{6,6,6,3,3,3,0,0,0}] (* Harvey P. Dale, Dec 17 2012 *)
-
PARI
a(n)=[6,6,6,3,3,3,0,0,0][n%9+1] \\ Charles R Greathouse IV, Jul 13 2016
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
Extensions
More periods from R. J. Mathar, Jan 21 2009