OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..772
Wikipedia, Partition of a set
FORMULA
a(n) = Sum_{k=0..ceiling(n/2)} floor(n/2)^k * binomial(ceiling(n/2),k) * Bell(ceiling(n/2)-k).
EXAMPLE
a(0) = 1: () the empty partition.
a(1) = 1: 1.
a(2) = 2: 12, 1|2.
a(3) = 5: 123, 12|3, 13|2, 1|23, 1|2|3.
a(4) = 10: 123|4, 12|34, 12|3|4, 134|2, 13|2|4, 14|23, 1|23|4, 14|2|3, 1|2|34, 1|2|3|4.
MAPLE
b:= proc(n, m) option remember; `if`(n=0, 1,
b(n-1, m+1)+m*b(n-1, m))
end:
a:= n-> (h-> b(n-h, h))(iquo(n, 2)):
seq(a(n), n=0..30);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jun 01 2023
STATUS
approved