OFFSET
0,4
COMMENTS
Here sets of lists are set partitions of [n] such that the elements within each block are ordered but the blocks themselves are unordered.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..300
FORMULA
E.g.f.: Sum_{i>=0} ((x - x^(i+1))/(1 - x))^i / i!.
EXAMPLE
a(3) = 7 counts: {(1),(2),(3)}, {(1),(2,3)}, {(1),(3,2)}, {(1,2),(3)}, {(1,3),(2)}, {(2),(3,1)}, {(2,1),(3)}.
MAPLE
b:= proc(n, m, l) option remember; `if`(m>n+l, 0, `if`(n=0, 1,
add(b(n-j, max(m, j), l+1)*(n-1)!*j/(n-j)!, j=1..n)))
end:
a:= n-> b(n, 0$2):
seq(a(n), n=0..22); # Alois P. Heinz, Jul 23 2025
MATHEMATICA
With[{m = 22}, CoefficientList[1 + Series[Sum[((x - x^(i + 1))/(1 - x))^i/i!, {i, 1, m}], {x, 0, m}], x] * Range[0, m]!] (* Amiram Eldar, Jul 24 2025 *)
PROG
(PARI) R_x(N) = {my(x='x+O('x^(N+1))); Vec(serlaplace(sum(i=0, N, ((x-x^(i+1))/(1-x))^i/i!)))}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, Jul 23 2025
STATUS
approved
