Combinatorica`
Combinatorica`
Partitions
Partitions[n]
constructs all partitions of integer in reverse lexicographic order.
Partitions[n,k]
constructs all partitions of the integer with maximum part at most , in reverse lexicographic order.
更多信息和选项
- To use Partitions, you first need to load the Combinatorica Package using Needs["Combinatorica`"].