OFFSET
0,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..576
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
add(`if`(j=1, 0, b(n-i*j, i-1)*combinat[multinomial]
(n, n-i*j, i$j)/j!), j=0..min(n/i))))
end:
a:= n-> b(n$2):
seq(a(n), n=0..26); # Alois P. Heinz, May 14 2023
MATHEMATICA
multinomial[n_, k_List] := n!/Times @@ (k!);
b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0, Sum[If[j == 1, 0, b[n - i*j, i - 1]*multinomial[n, Prepend[Table[i, {j}], n - i*j]]/j!], {j, 0, Min[n/i]}]]];
a[n_] := b[n, n];
Table[a[n], {n, 0, 26}] (* Jean-François Alcover, May 26 2023, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian G. Bower, Jan 06 2006
STATUS
approved