NextPartition

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

更多信息更多信息