In one sentence
To count a set , find a one-to-one correspondence onto a set that is easy to count. Then .
Pairing is its little sibling: match the objects up in pairs ( with , with , with ) so that every pair has the same sum or product, and the total is visible at a glance. Both correspondence and pairing need two checks: no repeats (injective) and no gaps (surjective).
Predict first
Walk from to , one cell right or up at each step, and never go above the line (touching is allowed). How many such paths are there?
. There are paths in all, and “bad” ones. Why exactly that number? Watch the reflection below.
Example: counting “bad” paths by reflection (the reflection principle)
Step 1 / 5- A path is a subset
A path from to has steps and is completely determined by “which steps go up”. So there are paths in all.
Stop 1 · Mappings and counting (Vol. 2)
The divider method (stars and bars) is the most common correspondence: solution ↔ positions of the dividers.
Example: how many positive integer solutions does x₁ + x₂ + x₃ + x₄ = 12 have?
Step 1 / 4- Turn numbers into balls
Write as balls in a row. A solution is a way of cutting the row into parts from left to right, each part non-empty.
Stop 2 · Families of subsets (Vol. 1)
Take the subsets of and pair each subset with its complement : .
One problem, several solutions
Over all subsets of (including the empty set), find .
Pair with the complement
The subsets form exactly pairs ( always holds), and the sizes in each pair add up to , so .
CostOne line; you only need to see that “every pair sums to n”.
Sort by size
There are subsets of size , so . Using gives .
CostNeeds an identity for binomial coefficients.
Stop 3 · Summing sequences (Vol. 5)
Gauss's trick of pairing first with last works just as well for sums of binomial coefficients: pair with , and use .
Example: find S = Σ k·C(n, k), k = 0, 1, …, n
Step 1 / 3- Write it again, backwards
Replacing by does not change the sum; then use .
Stop 4 · Conjugate pairs of complex numbers (Vol. 4)
The non-real roots of a polynomial with real coefficients come in pairs, and . For each pair the sum and the product are real.
Example: pairing the four non-real roots of x⁵ = 1
Step 1 / 3- List the roots
The roots of are (), where . Then and .
Practice
How many positive integer solutions does have?
How many non-negative integer solutions does have?
Over all subsets of , find the total of their sizes, .
Among the strings of length made of “(” and “)”, how many are correctly matched (reading from left to right, the number of “)” never exceeds the number of “(” at any moment)?