OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..578
Wikipedia, Partition of a set
EXAMPLE
a(0) = 1: ().
a(1) = 1: 1.
a(2) = 1: 1|2.
a(3) = 2: 1|23, 1|2|3.
a(4) = 4: 1|23|4, 1|24|3, 1|2|34, 1|2|3|4.
a(5) = 11: 1|23|45, 1|23|4|5, 1|24|35, 1|24|3|5, 1|25|34, 1|2|345, 1|2|34|5, 1|25|3|4, 1|2|35|4, 1|2|3|45, 1|2|3|4|5.
a(6) = 34: 1|23|456, 1|23|45|6, 1|23|46|5, 1|23|4|56, 1|23|4|5|6, 1|24|356, 1|24|35|6, 1|24|36|5, 1|24|3|56, 1|24|3|5|6, 1|25|346, 1|25|34|6, 1|26|345, 1|2|345|6, 1|26|34|5, 1|2|346|5, 1|2|34|56, 1|2|34|5|6, 1|25|36|4, 1|25|3|46, 1|25|3|4|6, 1|26|35|4, 1|2|356|4, 1|2|35|46, 1|2|35|4|6, 1|26|3|45, 1|2|36|45, 1|2|3|456, 1|2|3|45|6, 1|26|3|4|5, 1|2|36|4|5, 1|2|3|46|5, 1|2|3|4|56, 1|2|3|4|5|6.
MAPLE
b:= proc(n, t) option remember; `if`(n=0, 1, add(
b(n-j, t+1)*binomial(n-1, j-1), j=1..min(t, n)))
end:
a:= n-> b(n, 1):
seq(a(n), n=0..30);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 28 2023
STATUS
approved