OFFSET
4,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 4..1000
MAPLE
b:= proc(n, i) option remember; series(`if`(n=0, 1,
`if`(i<1, 0, add(b(n-i*j, i-1)*add(x^t*
binomial(j, t), t=0..min(4, j)), j=0..n/i))), x, 5)
end:
a:= n-> coeff(b(n$2), x, 4):
seq(a(n), n=4..40);
MATHEMATICA
b[n_, i_] := b[n, i] = Series[If[n==0, 1, If[i<1, 0, Sum[b[n-i*j, i-1]*Sum[ x^t*Binomial[j, t], {t, 0, Min[4, j]}], {j, 0, n/i}]]], {x, 0, 5}];
a[n_] := Coefficient[b[n, n], x, 4];
a /@ Range[4, 40] (* Jean-François Alcover, Dec 11 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 31 2015
STATUS
approved