Proof and Reasoning

Combinatorial Proof, Counting the Same Thing Two Ways

See how counting one collection in two different ways proves identities, with committees, subsets and handshakes as worked examples.

Key takeaways

  • To prove A = B combinatorially, describe one set and show that A and B are each correct counts of its elements.
  • A related method, the bijective proof, matches two different sets element for element, so they have the same size.
  • A good counting story names the objects precisely and splits them into cases that neither overlap nor leave anything out.
  • Committees, binary strings, lattice paths and graphs are flexible settings that suit many identities.

A combinatorial proof shows that two expressions are equal because they count the same collection of things. You pick a collection, count it one way to get the left side, count it another way to get the right side, and conclude that the two sides must match.

No long algebra is needed, and the result often explains itself. Instead of watching factorials cancel, you see why the identity could not have been otherwise.

The basic building block

The symbol C(n, k), read "n choose k", is the number of ways to select k objects from n distinct objects when order does not matter. Its formula is n!/(k!(n − k)!) for 0 ≤ k ≤ n. If the choice between ordered and unordered counting is new, start with permutations and combinations.

For a first identity, take C(n, k) = C(n, n − k). The algebraic proof swaps two factorials. The combinatorial proof says that choosing k people to invite is the same decision as choosing n − k people to leave out. Every invitation list determines exactly one exclusion list, and the reverse.

With 10 people, choosing 7 to invite is the same as choosing 3 to skip, so C(10, 7) = C(10, 3) = 120.

Pascal's rule by looking at one person

Claim: for 1 ≤ k ≤ n − 1,

C(n, k) = C(n − 1, k − 1) + C(n − 1, k)

The left side counts committees of size k drawn from n people. For the right side, single out one person, call her Ana in this hypothetical club, and sort the committees by whether she serves.

  • If Ana is on the committee, you still need k − 1 members from the other n − 1 people.
  • If she is not, you need all k members from the other n − 1.

Every committee falls into exactly one group, so the two counts add up to the total.

This rule generates Pascal's triangle, where each entry is the sum of the two above it. The proof shows the pattern holds in every row without computing any of them.

The move of singling out one element is the most common trick in the subject. Try it whenever a formula mentions n − 1.

Counting all subsets

Claim:

C(n, 0) + C(n, 1) + C(n, 2) + ... + C(n, n) = 2ⁿ

Both sides count the subsets of a set with n elements. The left side groups subsets by size: C(n, k) of them have exactly k elements. The right side builds a subset one element at a time. Each element is either in or out, which gives two choices made n times.

For n = 4 the left side reads 1 + 4 + 6 + 4 + 1 = 16, and 2⁴ = 16.

The same identity follows from putting x = y = 1 in the binomial theorem. Both proofs are correct. The counting proof has the advantage of assuming almost nothing.

Committees with a chair

Claim:

1·C(n, 1) + 2·C(n, 2) + ... + n·C(n, n) = n · 2ⁿ⁻¹

Count committees of any size that have a designated chair, chosen from n people.

Left side: for a committee of size k, there are C(n, k) membership lists and k choices of chair. Sum over k.

Right side: choose the chair first, in n ways. Each of the remaining n − 1 people is then in or out, giving 2ⁿ⁻¹ possibilities.

Check n = 4: the left side is 4 + 12 + 12 + 4 = 32, and 4 · 2³ = 32.

Looking at a single committee size gives the useful identity k · C(n, k) = n · C(n − 1, k − 1). Notice how the order of decisions is the entire difference between the two sides. Many two-way counts come down to asking what happens if you choose the special item first instead of last.

How to build a two-way count
1 Read the simpler side Ask what it counts: subsets, committees, strings or paths 2 Fix one collection Describe exactly which objects are being counted 3 Count it directly Match one side of the identity, factor by factor 4 Count it again Split by a special element, a size or a first choice 5 Check the split Confirm that no object is missed or counted twice Read the simpler side Ask what it counts: subsets, committees, strings or paths 1 Fix one collection Describe exactly which objects are being counted 2 Count it directly Match one side of the identity, factor by factor 3 Count it again Split by a special element, a size or a first choice 4 Check the split Confirm that no object is missed or counted twice 5

Two groups and Vandermonde's identity

Suppose a club has m juniors and n seniors, and you want a panel of r people. Counting panels directly gives C(m + n, r). Counting by the number k of juniors gives C(m, k) · C(n, r − k) for each k. Therefore

C(m + n, r) = sum over k from 0 to r of C(m, k) · C(n, r − k)

Here C(a, b) is taken to be 0 when b exceeds a. This is Vandermonde's identity. For m = 3, n = 2 and r = 2, the terms are 1 · 1, 3 · 2 and 3 · 1, adding to 10, which equals C(5, 2).

Set m = n = r and use the symmetry C(n, n − k) = C(n, k). You get the sum of the squares of row n of Pascal's triangle:

C(n, 0)² + C(n, 1)² + ... + C(n, n)² = C(2n, n)

For n = 3 that is 1 + 9 + 9 + 1 = 20 = C(6, 3). An algebraic proof of this is possible but far less obvious.

The hockey stick identity

Claim: for 0 ≤ k ≤ n,

C(k, k) + C(k+1, k) + ... + C(n, k) = C(n+1, k+1)

The right side counts subsets of size k + 1 from the numbers 1 through n + 1. Now sort those subsets by their largest member. If the largest is j + 1, the remaining k members come from 1 through j, giving C(j, k) choices. As j runs from k to n, every subset is counted exactly once.

For k = 2 and n = 5 the sum is 1 + 3 + 6 + 10 = 20 = C(6, 3). The name comes from the shape the entries trace in Pascal's triangle: a straight diagonal handle with a bend at the end.

Sorting by the largest element is the second great trick, after singling out one person.

Bijections and double counting in graphs

A bijection is a pairing between two sets in which each element of either set has exactly one partner. If you can build one, the sets have equal size.

Claim: for n ≥ 1, a set of n elements has as many subsets of even size as of odd size. Pick one element z. Pair each subset with the subset obtained by adding z if it is missing, or removing z if it is present. This changes the size by one, and doing it twice returns the original. So even and odd subsets are matched perfectly.

Double counting also works in networks. A graph consists of points, called vertices, joined by edges, and the degree of a vertex is the number of edge ends meeting it. Count all edge ends: by vertex, you get the sum of degrees; by edge, you get twice the number of edges. Hence the sum of degrees is even, and so the number of odd-degree vertices is even. At any party, the number of people who shook an odd number of hands is even.

Finding the story behind a formula

When you meet a new identity, read it for clues. A power such as 2ⁿ or 3ⁿ suggests that each of n items makes an independent choice among two or three options. A product like C(a, b) · C(c, d) suggests two separate selections made one after the other. A sum suggests cases, and the summation index tells you what distinguishes one case from the next.

A factor in front often means something extra is being marked. The factor k in k · C(n, k) marked a chair, and k(k − 1) would mark a president and a different secretary.

Try the identity 3ⁿ = sum over k of C(n, k) · 2ⁿ⁻ᵏ, with k running from 0 to n. The left side puts each of n students into one of three rooms: red, green or blue. The right side first picks the k students who go to the red room, then sends each of the other n − k to green or blue. For n = 2 the sum is 1 · 4 + 2 · 2 + 1 · 1 = 9.

If a story will not come, compute both sides for n = 3 and list the objects by hand. Seeing which items correspond often reveals the general rule.

Where counting arguments go wrong

The usual error is an uneven count, where some objects are counted more often than others. If you form a two-person team by choosing a first member and then a second, you count each team twice. That is fine if you divide by 2 and harmful if you forget.

Another is a split with overlap. "Committees containing Ana" and "committees containing Ben" overlap when both serve, so their counts cannot simply be added.

A third is ignoring edge cases. Check your identity at small values such as n = 1 or k = 0, and confirm that the story still makes sense there. A two-line numerical check will catch most off-by-one errors.

Not every identity has a known natural counting story, especially ones with alternating signs or fractions. Then algebra, induction or generating functions may serve better. When a counting proof exists, though, it tends to be the one you remember.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 41 articles in Proof and Reasoning →

Latest news on this topic