Combinatorica`
Combinatorica`

SetPartitions

SetPartitions[set]

returns the list of set partitions of set.

SetPartitions[n]

returns the list of set partitions of {1,2,,n}.

更多信息和选项