|
|
A008857
|
|
a(n) = floor(n/9)*ceiling(n/9).
|
|
1
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 4, 6, 6, 6, 6, 6, 6, 6, 6, 9, 12, 12, 12, 12, 12, 12, 12, 12, 16, 20, 20, 20, 20, 20, 20, 20, 20, 25, 30, 30, 30, 30, 30, 30, 30, 30, 36, 42, 42, 42, 42, 42, 42, 42, 42, 49, 56, 56, 56, 56, 56, 56, 56, 56
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,11
|
|
LINKS
|
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
|
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
|
|
|
|