OFFSET
0,9
COMMENTS
A set partition is of separable type iff the underlying set has a permutation whose adjacent elements always belong to different blocks. Note that this only depends on the sizes of the blocks.
A set partition is also of separable type iff its greatest block size is at most one more than the sum of all its other blocks sizes.
EXAMPLE
Row n = 4 counts the following set partitions:
. . {{1,2},{3,4}} {{1},{2},{3,4}} {{1},{2},{3},{4}}
{{1,3},{2,4}} {{1},{2,3},{4}}
{{1,4},{2,3}} {{1},{2,4},{3}}
{{1,2},{3},{4}}
{{1,3},{2},{4}}
{{1,4},{2},{3}}
Triangle begins:
1
0 1
0 0 1
0 0 3 1
0 0 3 6 1
0 0 10 25 10 1
0 0 10 75 65 15 1
0 0 35 280 350 140 21 1
MATHEMATICA
sps[{}]:={{}}; sps[set:{i_, ___}]:=Join@@Function[s, Prepend[#, s]&/@sps[Complement[set, s]]]/@Cases[Subsets[set], {i, ___}];
stnseps[stn_]:=Select[Permutations[Union@@stn], And@@Table[Position[stn, #[[i]]][[1, 1]]!=Position[stn, #[[i+1]]][[1, 1]], {i, Length[#]-1}]&];
Table[Length[Select[sps[Range[n]], Length[#]==k&&stnseps[#]!={}&]], {n, 0, 5}, {k, 0, n}]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Gus Wiseman, Aug 10 2025
STATUS
approved
