Partition — Definition, Formula & Examples
A partition of a positive integer is a way of expressing as a sum of positive integers, where the order of the summands does not matter. For example, the number 4 has five partitions: , , , , and .
A partition of a positive integer is a non-increasing sequence of positive integers such that . Each is called a part of the partition. The partition function counts the total number of distinct partitions of .
Key Formula
Where:
- = The number of partitions of the non-negative integer n, with p(0) = 1 by convention
- = A formal variable in the generating function
- = Index representing each possible part size
How It Works
To find all partitions of , systematically list every way to write as a sum of positive integers in non-increasing order. Start with itself as a single part, then break off the smallest possible pieces while keeping parts in descending order. Two partitions are considered the same if they contain exactly the same parts — and count as one partition. The partition function grows rapidly: , , , .
Worked Example
Problem: Find all partitions of 5 and determine p(5).
Largest part = 5: The number itself as a single part.
Largest part = 4: The remaining 1 can only be expressed as 1.
Largest part = 3: The remaining 2 can be split as 2 or 1+1.
Largest part = 2: The remaining 3 must use parts no larger than 2.
Largest part = 1: All parts equal to 1.
Answer: There are 7 partitions of 5, so .
Visualization
Why It Matters
Partitions appear throughout combinatorics, algebra, and mathematical physics. They classify representations of symmetric groups and general linear groups, making them essential in abstract algebra courses. Hardy and Ramanujan's asymptotic formula for is a landmark result in analytic number theory.
Common Mistakes
Mistake: Counting different orderings as distinct partitions (e.g., treating 3+2 and 2+3 as two partitions of 5).
Correction: Order does not matter in partitions. Always write parts in non-increasing order. If order matters, you are counting compositions, not partitions.
