A010707 Period 2: repeat (3,9).
3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Programs
-
Mathematica
PadRight[{},120,{3,9}] (* Harvey P. Dale, Nov 07 2017 *)
-
PARI
a(n)=3+n%2*6 \\ Charles R Greathouse IV, Dec 21 2011
Formula
a(n) = -3*(-1)^n+6. - Paolo P. Lava, Oct 20 2006
G.f.: 3(1+3x)/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011
Comments