Integer partition (source code)

= Integer partition
{title2=$p(n)$}
{wiki=Partition_(number_theory)}

An integer partition of $n$ is a multiset of positive integers whose sum is $n$. The partition function $p(n)$ counts such multisets.