NextPartition

NextPartition[p]

gives the integer partition following p in reverse lexicographic order.

Details

See Also

Partitions  RandomPartition

Tutorials