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.
Details and Options
- To use Partitions, you first need to load the Combinatorica Package using Needs["Combinatorica`"].