OFFSET
9,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 9..1000
FORMULA
G.f.: (x^9/(1-x^9)-x^10/(1-x^10))/Product_{j>0}(1-x^j).
a(n) ~ exp(Pi*sqrt(2*n/3)) / (180*Pi*sqrt(2*n)). - Vaclav Kotesovec, May 24 2018
MAPLE
b:= proc(n, p) option remember; `if`(n=0, [1, 0], `if`(p<1, [0, 0],
add((l->`if`(m=9, l+[0, l[1]], l))(b(n-p*m, p-1)), m=0..n/p)))
end:
a:= n-> b(n, n)[2]:
seq(a(n), n=9..60);
MATHEMATICA
b[n_, p_] := b[n, p] = If[n == 0, {1, 0}, If[p < 1, {0, 0}, Sum[Function[l, If[m == 9, l + {0, l[[1]]}, l]][b[n - p*m, p - 1]], {m, 0, n/p}]]];
a[n_] := b[n, n][[2]];
Table[a[n], {n, 9, 60}] (* Jean-François Alcover, Apr 30 2018, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 28 2013
STATUS
approved