OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1,0,0,0,0,0,1,-1,-1,1).
FORMULA
G.f.: (1+x^9)/((1-x^2)^2*(1-x^9)). - G. C. Greubel, Sep 12 2019
G.f.: (1-x^3+x^6)*(1-x+x^2)/((1-x)^3*(1+x+x^2)*(1+x)*(1+x^3+x^6)). - R. J. Mathar, Feb 04 2022
MAPLE
seq(coeff(series((1+x^9)/((1-x^2)^2*(1-x^9)), x, n+1), x, n), n = 0..70); # G. C. Greubel, Sep 12 2019
MATHEMATICA
CoefficientList[Series[(1+x^9)/((1-x^2)^2*(1-x^9)), {x, 0, 70}], x] (* G. C. Greubel, Sep 12 2019 *)
PROG
(PARI) my(x='x+O('x^70)); Vec((1+x^9)/((1-x^2)^2*(1-x^9))) \\ G. C. Greubel, Sep 12 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 70); Coefficients(R!( (1+x^9)/((1-x^2)^2*(1-x^9)) )); // G. C. Greubel, Sep 12 2019
(Sage)
def A008809_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((1+x^9)/((1-x^2)^2*(1-x^9))).list()
A008809_list(70) # G. C. Greubel, Sep 12 2019
(GAP) a:=[1, 0, 2, 0, 3, 0, 4, 0, 5, 2, 6, 4];; for n in [13..70] do a[n]:=a[n-1] +a[n-2]-a[n-3]+a[n-9]-a[n-10]-a[n-11]+a[n-12]; od; a; # G. C. Greubel, Sep 12 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved