When can we guarantee that some box contains more than one object, and how do we apply this to counting and existence arguments?
State and apply the pigeonhole principle in counting and existence problems
A focused answer to the HSC Maths Extension 1 dot point on the pigeonhole principle. The basic and generalised forms, identifying boxes and pigeons in a problem, and using the principle to prove existence statements, with a stepped objects-into-boxes diagram and worked examples.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
NESA wants you to recognise problems where the pigeonhole principle applies, identify the "boxes" and "pigeons" appropriately, and use the principle to prove that some box must contain at least two objects (or more, in the generalised form). The principle itself is almost trivially true; the marks are won by the modelling, that is, choosing the boxes so cleverly that "two pigeons in one box" turns into exactly the statement you were asked to prove.
The answer
The pigeonhole principle (basic form)
If or more objects are placed into boxes, then at least one box contains at least objects.
Why: if every box held at most object, the total number of objects could be at most , which contradicts having or more. This is a proof by contradiction, and it is worth writing out that one line in an exam because it shows you understand why the principle holds, not just that it does.
Watch objects fill the boxes, stage by stage
The principle is easiest to believe when you try (and fail) to keep every box to one object. Take boxes and place objects one at a time. The first four can spread out, but the fifth has nowhere new to go.
Stage 1, place the first object. Drop object 1 into a box. Every box still holds at most one object, so there is no doubling-up yet.
Stage 2, fill every box once. Objects 2, 3 and 4 each take an empty box. Now all four boxes hold exactly one object. This is the tight case: with exactly as many objects as boxes, you can avoid a repeat, so objects in boxes guarantees nothing.
Stage 3, the fifth object forces a pair. Every box is already occupied, so the fifth object must share a box with one already there. Whichever box it lands in (box 1 shown) now holds two. This is the principle: objects in boxes forces a repeat.
The generalised pigeonhole principle
If or more objects are placed into boxes, then at least one box contains at least objects.
The reasoning is the same contradiction: if every one of the boxes held at most objects, the total would be at most , contradicting . Equivalently, if objects are placed in boxes, at least one box contains at least
objects (the ceiling, the smallest integer not less than ). The basic form is just .
Strategy for applying it
- Identify the objects (pigeons) and the categories (boxes).
- Count the number of each.
- Check whether the pigeons exceed (or sufficiently exceed) the boxes, that is for the basic form, or for the generalised form.
- State the conclusion, naming the principle.
The whole difficulty, and where the marks are, is step 1: choosing the boxes so that two pigeons in one box gives the statement you want.
Common box choices
- Remainders modulo . Any integers must include two with the same remainder on division by , so their difference is divisible by . This is the most common HSC pattern.
- Intervals partitioning a range. Split a length or a range of values into equal sub-intervals; the values in the range are the pigeons. (The -points-in-a-square question splits the square into cells.)
- Sums or subset-sums. When proving two subsets share a sum, the possible sums are the boxes and the subsets are the pigeons.
- Pairs that "use up" a value. When proving two of a collection match, the distinct possible values are the boxes.
Limitations
The pigeonhole principle gives existence, not construction. It tells you that two such objects exist, but never which ones. It is also sharp: with exactly objects in boxes, every box can hold exactly one, so guarantees nothing, you genuinely need . The same sharpness applies to the generalised form at .
How exam questions ask about the pigeonhole principle
- "Show that among any [integers / people / points] ... two must ...": a near-certain pigeonhole. Make the "..." the box description.
- "... two leave the same remainder on division by " / "... two whose difference is divisible by ": boxes are the remainders .
- "... two share a [birthday month / starting letter / value]": boxes are the categories (12 months, 26 letters, and so on).
- "Show that at least of them ...": the generalised form; you need more than pigeons.
- Points in a region, "two within distance ": cut the region into cells whose diameter is ; the cells are the boxes.
- The phrasing is almost always "show that", "prove that", or "must" (a guarantee), never "find" or "how many" (those are direct counting). A guarantee with more objects than obvious categories is the cue.
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
HSC-style2 marksShow that among any integers, at least two leave the same remainder when divided by .Show worked answer →
When an integer is divided by , the possible remainders are , which is categories (boxes).
The integers are the pigeons. Since , by the pigeonhole principle at least one remainder is shared by two of the integers.
Hence at least two of the five integers have the same remainder modulo .
HSC-style3 marks points are placed inside a square of side length . Show that some pair of points is at most apart.Show worked answer →
Divide the unit square into a grid of smaller squares, each of side (these are the boxes).
There are points (pigeons) and small squares. Since , by the pigeonhole principle at least one small square contains at least two of the points.
The greatest distance between two points within a small square is its diagonal, .
Therefore those two points are at most apart.
