Conjugation is described in Andrews, and (eg) Hardy and Wright. Essentially, conjugate()
carries out
R idiom
rev(cumsum(table(factor(a[a>0],levels=max(a):1))))
, but faster.
The Durfee square of a partition is defined on page 281 of
Hardy and Wright. It is the largest square of nodes contained in the
partition's Ferrers graph. Function durfee()
returns the side
of the Durfee square which Andrews denotes
$d(\lambda)$. It is equivalent to R idiom
function(a){sum(a>=1:length(a))}
, but faster.