The Pigeonhole Principle
The idea is almost obvious: if you have more pigeons than boxes, some box must hold at least two pigeons. Despite how simple it sounds, it proves surprising results.
Theorem 1 — The Pigeonhole Principle
If
Proof idea
Use the contrapositive. If every one of the
This principle is also known as the Dirichlet drawer principle.
Corollary
Corollary 1
A function
The connection: think of the
- Examples:
- Among any
people, at least two share a birthday (there are only possible birthdays). - In any group of
English words, at least two must begin with the same letter (only letters). - In a class, how many students guarantee that two get the same final score (scored
to )? There are possible scores, so students suffice.
- Among any
The Generalized Pigeonhole Principle
What if there are many more objects than boxes? Then some box is forced to hold many objects, not just two.
Theorem 2 — Generalized Pigeonhole Principle
If
objects.
Here ceiling — the smallest integer not less than
Proof idea
Suppose, for contradiction, that every box held fewer than
using
- Examples:
- Among
people, at least were born in the same month. - The minimum number of cards drawn from a standard deck to guarantee three of one suit: with
suits, we need the smallest with , which is .
- Among
The general counting rule
A very useful form: the minimum number of objects
The intuition: you can place up to
- Example:
- To guarantee at least
students get the same grade out of grades : , , so students.
- To guarantee at least
Some Elegant Applications
The pigeonhole principle shines when the "boxes" are clever to spot.
Theorem 3 — Monotone subsequences
Every sequence of
- Example (consecutive games):
- A team plays at least one game per day over
days, and at most games total. - Then there is a span of consecutive days during which it plays exactly
games. (Proved by applying the pigeonhole principle to running totals.)
- A team plays at least one game per day over
Ramsey-style result
In any group of
Intuition
- Basic principle → guarantees a collision (some box has
). Use it for "must two share...?". - Generalized principle → guarantees a crowd of size
. Use it for "must at least share...?". - Hardest part is choosing the boxes. Decide what counts as an "object" and what the "boxes" (the things they get grouped by) are; the arithmetic is then easy.