Find out if one partition of an integer dominates another
Contributed by:
Wolfram Staff (original content by Sriram V. Pemmaraju and Steven S. Skiena)
Examples
Basic Examples (2) 
Since 5+1<4+3, the first partition does not dominate the second:
The first partition dominates the second since 4≥4, 4+4≥4+3 and 4+4≥4+3+1:
Applications (1) 
Display the domination lattice on integer partitions, using the resource function HasseDiagram:
Properties and Relations (3) 
DominatingIntegerPartitionQ[p,q] being False does not imply that DominatingIntegerPartitionQ[q,p] is True, in this case because the first element of q is smaller than the first element of p:
DominatingIntegerPartitionQ[p,q] and DominatingIntegerPartitionQ[q,p] can both yield True for certain p and q:
Among the partitions of n, {n} is always the largest and {1,…,1} is the smallest:
Related Links
Version History
-
1.0.1
– 31 January 2022
-
1.0.0
– 28 July 2020
Related Resources