A010726 Period 2: repeat (6,10).
6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10, 6, 10
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Crossrefs
Programs
-
Magma
&cat[ [6, 10]: n in [1..42] ]; // Klaus Brockhaus, Dec 10 2009
-
Mathematica
LinearRecurrence[{0,1},{6,10},90] (* or *) PadRight[{},90,{6,10}] (* Harvey P. Dale, Mar 07 2015 *)
-
PARI
a(n)=6+n%2*4 \\ Charles R Greathouse IV, Dec 21 2011
Formula
a(n) = -2*(-1)^n + 8. - Paolo P. Lava, Oct 27 2006
From Klaus Brockhaus, Dec 10 2009: (Start)
a(n) = a(n-2) for n > 1; a(0) = 6, a(1) = 10.
G.f.: 2*(3+5*x)/((1-x)*(1+x)). (End)
Comments