parts(5)
conjugate(parts(5))
restrictedparts(6,4)
conjugate(restrictedparts(6,4))
durfee(10:1)
# A partition in nonstandard form --- use `sorted = FALSE`
x <- parts(5)[sample(5),]
durfee(x, sorted = FALSE)
conjugate(x, sorted = FALSE)
# Suppose one wanted partitions of 8 with no part larger than 3:
conjugate(restrictedparts(8,3))
# (restrictedparts(8,3) splits 8 into at most 3 parts;
# so no part of the conjugate partition is larger than 3).
Run the code above in your browser using DataLab