OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..576
Wikipedia, Partition of a set
EXAMPLE
a(4) = 7: 12|34, 13|24, 14|23, 1|234, 134|2, 124|3, 123|4.
MAPLE
b:= proc(n, i, t) option remember; uses combinat; `if`(n=0, t,
`if`(i<1, 0, add(`if`(i=j and t=1, 0, b(n-i*j, min(n-i*j, i-1),
`if`(i=j, 1, t))*multinomial(n, n-i*j, i$j)/j!), j=0..n/i)))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..25);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 21 2026
STATUS
approved
