A010728 Period 2: repeat (7,8).
7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Crossrefs
Cf. A176440.
Programs
-
Mathematica
PadRight[{},120,{7,8}] (* Harvey P. Dale, Dec 15 2012 *)
-
PARI
a(n)=7+n%2 \\ Charles R Greathouse IV, Dec 21 2011
Formula
a(n) = -1/2*(-1)^n + 15/2. - Paolo P. Lava, Oct 27 2006
G.f. (-7-8*x) / ( (x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011