Partitions

Partitions[n]
constructs all partitions of integer n in reverse lexicographic order.

Partitions[n,k]
constructs all partitions of the integer n with maximum part at most k, in reverse lexicographic order.

更多信息更多信息