A010729 a(n) = 8 - (-1)^n.
7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7, 9, 7
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Programs
-
Mathematica
PadRight[{},100,{7,9}] (* Harvey P. Dale, May 09 2012 *)
-
PARI
a(n)=8-(-1)^n \\ Charles R Greathouse IV, Jun 11 2015
Formula
Period 2.
G.f.: ( -7-9*x ) / ( (x-1)*(1+x) ). - R. J. Mathar, Nov 20 2011
E.g.f.: 7*cosh(x) + 9*sinh(x). - Stefano Spezia, Sep 27 2023