Overview
The Pigeonhole Principle states that if you have more objects than containers, at least one container must hold more than one object.
Key Ideas
First identify the "pigeons" (objects) and the holes (containers/categories).
The number of holes is your bound. If pigeons holes, a contradiction is formed.
For "at least " ways, use the extended formula of, , which means .
For specific range problems, one should partition the range into intervals and apply the pigeonhole principle to the subintervals that are created.
Note that the pigeonhole principle proves the existence only and hence does not tell you which hole is crowded or how to find the contradiction.
Core Skills
The Pigeonhole Principle
The Pigeonhole Principle states that if or more objects are distributed into containers, then at least one container contains or more objects.
Equivalently, if every container held at most object, the total number of objects would be at most . Since we have more than , this is impossible and hence the proof forms a contradiction.
The most used example for this comes from the name itself. You have pigeons and holes. If , at least one hole has pigeons.
Generalization - Also known as the extended formula of the principle
If objects are distributed into containers, then at least one container contains at least objects.
Here is the ceiling function (also called the Gauss function in some countries), the smallest integer .
An example of this would be students sit in rows. At least one row has
students.
The Average across spaces
Another idea from this comes if the average value across containers is , then at least one container has value . Furthermore, if the average is , at least one container has value .
This is in cases, cleaner than actually invoking the ceiling formula directly.
An example of this would be when five numbers sum to . Since the average is , hence at least one number is .
Worked Example
Show that among any integers, two must have the same remainder when divided by .
There are only possible remainders mod : . These are the "holes", and the integers are the pigeons. Since , by the Pigeonhole Principle, at least two integers share a remainder. Their difference is therefore divisible by .
More Examples
Example 1 — A Basic application
A drawer contains red, blue, and green socks. What is the minimum number of socks you must draw (without looking) to guarantee a matching pair?
The colors are the holes: holes. Each sock drawn is a pigeon. We know that by the Pigeonhole Principle, once you draw socks, two must share a color.
Answer: .
Example 2 — The Generalized Pigeonhole (Or extended)
There are students in a class. Show that at least of them share a birth month.
There are months (holes) and students (pigeons).
So at least one month contains or more students.
Example 3 — Pigeonhole Principle in an interval
Five points are chosen inside (or on the boundary of) a unit square. Show that two of them are within distance of each other.
We divide the unit square into smaller squares of side by cutting it in half horizontally and vertically. These smaller squares are the "holes", and the five points are the "pigeons".
By pigeonhole, two points lie in the same small square. The maximum distance within a square of side is its diagonal, and thus .
So those two points are within of each other.
Strategy Checklist
- Always write what are the "pigeons", what are the "holes", to avoid confusion.
- Check if the number of pigeons strictly greater than the holes.
- For "sum/difference equals " problems, pair up elements that sum or differ by and use those pairs as "holes" in our pigeonhole principle.
Common Pitfalls
- The basic principle requires "pigeons" for holes, not . With exactly pigeons it is possible (though not guaranteed) that all holes are distinct. The guarantee of the contradiction will start at .
- Every "pigeon" must belong to exactly one hole.
- The pigeonhole proves existence, not the specific contradiction formed within.
Practice Problems
| Status | Source | Problem Name | Difficulty | Tags | ||
|---|---|---|---|---|---|---|
| AMC 10 | Hard | Show TagsInteger Properties, Pigeonhole Principle, Remainders | ||||
| AMC 10 | Hard | Show TagsCounting, Pigeonhole Principle, Sequences | ||||
| AMC 10 | Medium | Show TagsCasework, Combinatorics, Pigeonhole Principle | ||||
Module Progress:
Join the AoPS Community!
Stuck on a problem, or don't understand a module? Join the AoPS community and get help from other math contest students.
