OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..14
Wikipedia, Multinomial coefficients
Wikipedia, Partition (number theory)
EXAMPLE
a(3) = M(3;3) * M(3;2,1) * M(3;1,1,1) = 1 * 3 * 6 = 18.
MAPLE
b:= proc(n, i) option remember; `if`(n=0 or i=1, [n!], [map(t->
binomial(n, i)*t, b(n-i, min(n-i, i)))[], b(n, i-1)[]])
end:
a:= n-> mul(i, i=b(n$2)):
seq(a(n), n=0..9); # Alois P. Heinz, Aug 25 2019
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0 || i == 1, {n!}, Join[Binomial[n, i] #& /@ b[n - i, Min[n - i, i]], b[n, i - 1]]];
a[n_] := Times @@ b[n, n];
a /@ Range[0, 9] (* Jean-François Alcover, Dec 07 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 25 2019
STATUS
approved