OFFSET
3,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 3..250
Wikipedia, Partition of a set
EXAMPLE
a(3) = 1: 13|2.
a(4) = 6: 124|3, 134|2, 13|24, 13|2|4, 14|23, 1|24|3.
a(5) = 24: 1235|4, 1245|3, 124|35, 124|3|5, 125|34, 12|35|4, 1345|2, 134|25, 134|2|5, 13|245, 13|24|5, 135|2|4, 13|2|45, 13|2|4|5, 145|23, 14|235, 14|23|5, 15|234, 1|235|4, 1|245|3, 1|24|35, 1|24|3|5, 1|25|34, 1|2|35|4.
MAPLE
b:= proc(n, i, m) option remember; convert(series(
`if`(n=0, 1, add(b(n-1, j, max(m, j))*
`if`(j=i-1, x, 1), j=1..m+1)), x, 2), polynom)
end:
a:= n-> coeff(b(n, 1, 0), x, 1):
seq(a(n), n=3..30);
MATHEMATICA
b[n_, i_, m_] := b[n, i, m] = If[n == 0, 1, Sum[b[n - 1, j, Max[m, j]]*If[j == i - 1, x, 1], {j, 1, m + 1}]] + O[x]^2 // Normal;
a[n_] := Coefficient[b[n, 1, 0], x, 1];
Table[a[n], {n, 3, 30}] (* Jean-François Alcover, May 27 2018, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 26 2016
STATUS
approved