Integer Partitions and Partition Functions
An integer partition of a positive integer is a way of writing as a sum of positive integers, where the order of the summands doesn't matter. The partition function counts how many such partitions exist for a given . This topic sits at the crossroads of combinatorics, number theory, and algebra, and the techniques used here (generating functions, recurrences, asymptotics) show up repeatedly across all three fields.
Integer Partitions
Definition and Representation
Take . Its partitions are:
So . Notice that and count as the same partition because order doesn't matter. By convention, parts are listed in non-increasing order.
Ferrers and Young diagrams give a visual way to represent partitions. For the partition of 9, you draw left-aligned rows of dots (or boxes), one row per part:
</>Codeโ โ โ โ โ โ โ โ โ
The conjugate partition is what you get by reflecting a Ferrers diagram across its main diagonal (swapping rows and columns). The conjugate of is . A self-conjugate partition is one that equals its own conjugate, meaning its Ferrers diagram is symmetric about the main diagonal.
Classification and Properties
Several important types of partitions come up repeatedly:
- Odd partitions use only odd parts. For example, or .
- Distinct partitions have no repeated parts. For example, .
- Restricted partitions impose constraints on the size or number of parts. For instance, the partitions of 7 with all parts are: , , , , , , .
One of the most elegant results in this area is Euler's theorem: for any positive integer , the number of partitions into odd parts equals the number of partitions into distinct parts. You can prove this using generating functions (covered below) or by constructing an explicit bijection between the two sets.
Partition Functions
_self-conjugate_partitions%22-272fc263a3d4448c.png)
Calculation Methods
Computing directly by listing partitions gets impractical fast (). Here are the main approaches, from most elementary to most advanced:
-
Dynamic programming. Build a table of partition counts bottom-up. To count partitions of with parts at most , use the recurrence: a partition either includes as a part (reduce to partitions of with parts ) or it doesn't (reduce to partitions of with parts ). This runs in time and is the most practical method for moderate .
-
Euler's pentagonal number theorem. This gives a recurrence for directly:
where the sum runs over and you stop when the argument goes negative. The values are the generalized pentagonal numbers (1, 2, 5, 7, 12, 15, ...). This is more efficient than brute force because only terms are needed.
- Hardy-Ramanujan-Rademacher formula. This gives an exact expression for as a convergent infinite series involving complex exponentials and Kloosterman-type sums. It draws on deep ideas from complex analysis and is mainly of theoretical importance, though it can also be used for computation.
Modular Properties
Ramanujan discovered striking congruences for :
These connect partition theory to modular forms and have been generalized extensively. Modular arithmetic properties of also have applications in areas like cryptography.
Generating Functions for Partitions
Derivation and Applications
The central identity in partition theory is Euler's partition generating function:
Why does this work? Each factor represents choosing how many copies of the part to include (0, 1, 2, ...). When you multiply all these factors together, the coefficient of collects every way to combine parts that sum to .
You can modify this product to handle restricted partitions:
- Distinct parts only: replace each factor with , giving .
- Odd parts only: keep only odd values of , giving .
The fact that these two products are equal is exactly Euler's odd-distinct theorem, proved at the generating function level.
The q-binomial coefficients (Gaussian binomial coefficients) extend this framework to partitions that fit inside a given bounding box (parts , at most parts). They satisfy analogues of Pascal's identity and appear throughout combinatorics and algebra.
_self-conjugate_partitions%22-multiply-partition.png)
Analysis Techniques
- Coefficient extraction: Techniques like partial fractions or residue calculus let you pull explicit formulas for (or restricted variants) from generating functions.
- Multivariate generating functions: These handle more complex objects like plane partitions (3D analogues of ordinary partitions) or vector partitions.
- Differential operators: Applying to a generating function and extracting coefficients lets you compute partition statistics, such as the average number of parts or the average largest part.
Asymptotic Behavior of Partitions
Asymptotic Formulas
For large , the Hardy-Ramanujan asymptotic formula gives:
The means the ratio of the two sides approaches 1 as . The key takeaway: grows sub-exponentially in itself but exponentially in . This is much faster than any polynomial but slower than functions like .
To get a feel for the growth: , , , and .
Rademacher's convergent series refines the Hardy-Ramanujan estimate into an exact formula by adding correction terms. With enough terms, it gives exactly (you round the result to the nearest integer).
Advanced Analytical Methods
- The circle method (Hardy-Ramanujan-Littlewood) analyzes by studying the generating function on carefully chosen arcs of the unit circle in the complex plane. Major arcs near roots of unity contribute the main asymptotic terms; minor arcs contribute negligible error.
- Saddle-point methods offer an alternative route to asymptotics by deforming the contour of integration to pass through a saddle point of the integrand.
- Restricted partition functions have their own asymptotic behavior, often studied with Mellin transforms and related analytic number theory tools.
- Deep connections exist between partition asymptotics and modular forms. Ramanujan's congruences (mentioned above) are one manifestation; the modularity of the Dedekind eta function underlies much of the theory.