The pigeonhole principle and combinatorial proofs

Choose boxes for pigeonhole arguments and prove identities by counting the same set in two ways.

More
Reading settings

Read offline with Premium

Save lessons and figures on this device with Premium.

Connect at least once every 30 days to confirm Premium. Topic checks, coaching and sync need a connection.

On this page

Reading settings

Appearance and reading tools for your lessons.

Live preview

Take a moment to read at your own pace. Choose the font and spacing that feel comfortable for you.

Pause after each idea, then explain it in your own words before moving on.

Narrower lines take effect when the screen has room.

Colour theme
Reading font
Line spacing
Reading width
Section links
Worked examples

Open example banners when a lesson starts. Hints and solutions stay closed until you open them.

Checking Premium access…

Explore Premium
Revision Mode

Hide questions, activities and worked examples to read the notes. Turn off to show the full lesson.

Checking Premium access…

Explore Premium

Enlarged diagram

Two counting ideas prove results that would otherwise need long case-by-case work. The pigeonhole principle says that if more objects than boxes are placed in boxes, some box holds at least two; the art is choosing the boxes. Double counting proves an identity by counting the same set in two different ways. This lesson applies both, writing each proof so that the objects, the boxes or the set being counted are stated explicitly.

The pigeonhole principle

If more than n objects are placed in n boxes, some box contains at least two objects. Otherwise each box has at most one, and there are at most n objects. More generally, if more than kn objects are placed in n boxes, some box contains at least k + 1.

The principle proves that something exists without saying where. The skill is in choosing the boxes: they must be defined so that any two objects in the same box have the property you want.

Worked example 1

Five points in a square

Five points are placed inside or on a square of side 2. Prove that two of them are at most square root of 2 apart.

Show full solutionHide solution
  1. Choose the boxes

    Method

    Divide the square into four 1 × 1 squares.

    Reason

    Two points in the same small square are at most its diagonal, square root of 2, apart.

    Working

    Answer

    Points on a shared edge can be assigned to either neighbouring square; every point is in at least one small square.

  2. Apply the principle

    Method

    Five points, four boxes.

    Reason

    5 > 4, so some box holds two points.

    Working

    Answer

    Those two points lie in one 1 × 1 square, so they are at most square root of 2 apart. blacksquare

Exam-style question 1

A coprime pair

4 marks

Let n be a positive integer. Prove that any n + 1 distinct integers chosen from {1,2,…,2n} include two that have no common factor greater than 1. [4]

Write your answer, then compare it with the solution

Show full solutionHide solution
  1. Define the boxes

    Method

    Use the n pairs {1,2},{3,4},…,{2n-1,2n}.

    Reason

    Every chosen integer belongs to exactly one pair.

    Working

    Answer

    n + 1 chosen integers in n pairs: by the pigeonhole principle, some pair contains two chosen integers, k and k + 1.

  2. Show consecutive integers are coprime

    Method

    Suppose d divides both k and k + 1.

    Reason

    Then d divides their difference.

    Working

    Answer

    d divides (k + 1)-k = 1, so d = 1. Hence k and k + 1 have no common factor greater than 1. blacksquare

Count the same set in two ways

A combinatorial proof shows two expressions are equal by showing they count the same set. It explains why an identity holds, often more clearly than algebra.

  • (n choose r) = (n choose (n-r)): choosing the r members of a committee from n people is the same as choosing the n-r people left out. This bijection pairs each choice with its complement.
  • (n choose r) = ((n-1) choose (r-1)) + ((n-1) choose r) for 1 ≤ r ≤ n-1: fix one person, Ann. Committees of r either include Ann (choose the other r-1 from n-1) or do not (choose all r from n-1). The two cases do not overlap and cover every committee.

A complete combinatorial proof names the set, explains each count, and says why the cases neither overlap nor miss anything.

Check your understanding 1

A committee with a chair

Prove that ∑ᵣ₌₁ⁿr(n choose r) = n 2ⁿ⁻¹ by counting, in two ways, the ways to choose a committee of any size from n people, with one committee member as chair.

Show answerHide answer

Committee first. Choose a committee of size r ≥ 1 in (n choose r) ways, then its chair in r ways. Adding over r gives ∑ᵣ₌₁ⁿr(n choose r).

Chair first. Choose the chair in n ways. Each of the other n-1 people is either on the committee or not, giving 2ⁿ⁻¹ ways. That is n 2ⁿ⁻¹.

Both count the same set of (committee, chair) choices, so they are equal. Check with n = 7: both sides equal 448.

Exam-style question 2

The sum of squared binomial coefficients

4 marks

By considering the ways to choose n people from a group of n adults and n children, prove that

∑ᵣ₌₀ⁿ(n choose r)² = (2n choose n). [4]

Write your answer, then compare it with the solution

Show full solutionHide solution
  1. Count directly

    Method

    Choose n people from all 2n.

    Reason

    This is the right-hand side.

    Working

    Answer

    There are (2n choose n) ways.

  2. Count by the number of adults

    Method

    Suppose the selection contains exactly r adults, so n-r children.

    Reason

    Each selection has exactly one value of r from 0 to n, so the cases neither overlap nor miss any selection.

    Working

    Answer

    There are (n choose r)(n choose (n-r)) = (n choose r)² selections with r adults, using (n choose (n-r)) = (n choose r). Adding over r gives ∑ᵣ₌₀ⁿ(n choose r)².

  3. Conclude

    Working

    Answer

    Both expressions count the same selections, so they are equal. blacksquare

Common mistakes

  • Applying the pigeonhole principle without saying what the pigeons and the boxes are.
  • Choosing boxes that do not guarantee the property, such as boxes that two objects can share without the required relationship.
  • Using the strong form wrongly: with kn + 1 objects in n boxes, some box has at least k + 1.
  • In a double-counting proof, counting two different sets instead of the same set twice.
  • Checking an identity for small n and calling that a combinatorial proof.

The symmetry principle is taught in The symmetry principle.

Questions

Open the discussion

Syllabus and review details

Last reviewed:

Back to top