OFFSET
1,9
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..2500
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,0,0,0,1).
FORMULA
G.f.: x*(1+x)/(1 - x^2 - x^8). - G. C. Greubel, May 01 2017
MATHEMATICA
Rest@CoefficientList[Series[x*(1+x)/(1-x^2-x^8), {x, 0, 70}], x] (* G. C. Greubel, May 01 2017 *)
PROG
(PARI) my(x='x+O('x^70)); Vec(x*(1+x)/(1-x^2-x^8)) \\ G. C. Greubel, May 01 2017
(Magma) [n le 8 select 1 else Self(n-2) +Self(n-8): n in [1..70]]; // G. C. Greubel, Oct 24 2024
(SageMath)
@CachedFunction # a = A122522
def a(n): return 1 if n<9 else a(n-2) + a(n-8)
[a(n) for n in range(1, 71)] # G. C. Greubel, Oct 24 2024
CROSSREFS
KEYWORD
nonn,easy,less,changed
AUTHOR
Roger L. Bagula, Sep 16 2006
EXTENSIONS
Edited by N. J. A. Sloane, Sep 17 2006
STATUS
approved