OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..617
Wikipedia, Partition of a set
EXAMPLE
a(3) = 3: 123, 1|23, 1|2|3.
a(4) = 7: 1234, 12|34, 13|24, 14|23, 1|234, 1|2|34, 1|2|3|4.
a(5) = 12: 12345, 12|345, 13|245, 14|235, 15|234, 1|2345, 1|23|45, 1|24|35, 1|25|34, 1|2|345, 1|2|3|45, 1|2|3|4|5.
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1,
add(b(n-j, j)*binomial(n-1, j-1), j=i..n))
end:
a:= n-> b(n, 1):
seq(a(n), n=0..35);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0, 1, Sum[b[n-j, j]*Binomial[n-1, j-1], {j, i, n}]]; a[n_] := b[n, 1]; Table[a[n], {n, 0, 35}] (* Jean-François Alcover, Jan 22 2017, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 22 2016
STATUS
approved