NextPartition

NextPartition[p]
gives the integer partition following p in reverse lexicographic order.

DetailsDetails

New to Mathematica? Find your learning path »
Have a question? Ask support »