Combinatorica`
Combinatorica`
NextPartition
NextPartition[p]
gives the integer partition following p in reverse lexicographic order.
Details and Options
- To use NextPartition, you first need to load the Combinatorica Package using Needs["Combinatorica`"].