OFFSET
0,11
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,2,-2,0,0,0,0,0,0,0,-1,1).
FORMULA
From G. C. Greubel, Sep 13 2019: (Start)
a(n) = a(n-1) + 2*a(n-9) - 2*a(n-10) - a(n-18) + a(n-19).
G.f.: x^9*(1+x)/((1-x)*(1-x^9)^2). (End)
MAPLE
seq(coeff(series(x^9*(1+x)/((1-x)*(1-x^9)^2), x, n+1), x, n), n = 0..60); # G. C. Greubel, Sep 13 2019
MATHEMATICA
CoefficientList[Series[x^9*(1+x)/((1-x)*(1-x^9)^2), {x, 0, 60}], x] (* G. C. Greubel, Sep 13 2019 *)
PROG
(PARI) my(x='x+O('x^60)); concat(vector(9), Vec(x^9*(1+x)/((1-x)*(1-x^9)^2))) \\ G. C. Greubel, Sep 13 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 60); [0, 0, 0, 0, 0, 0, 0, 0, 0] cat Coefficients(R!( x^9*(1+x)/((1-x)*(1-x^9)^2) )); // G. C. Greubel, Sep 13 2019
(Sage) [floor(n/9)*ceil(n/9) for n in (0..60)] # G. C. Greubel, Sep 13 2019
(GAP) a:=[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 4];; for n in [20..60] do a[n]:=a[n-1]+2*a[n-9]-2*a[n-10]-a[n-18]+a[n-19]; od; a; # G. C. Greubel, Sep 13 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved