Basic Pigeonhole Principle
If or more pigeons are placed in pigeonholes, then at least one pigeonhole contains two or more pigeons.
More generally: If objects are placed into boxes where , then at least one box contains more than one object.
Generalized Pigeonhole Principle
If objects are placed into boxes, then at least one box contains at least objects.
Example: Among 100 people, at least were born in the same month.
Classic Examples
Birthday Problem Setup
Among any 367 people, at least 2 share a birthday. (366 possible birthdays + 1 extra person)
Handshake Problem
At any party, at least two people have shaken the same number of hands.
Proof: With people, possible handshakes per person: (that's values). But 0 and can't both occur (someone shook everyone vs. someone shook no one). So only distinct values are possible for people. By pigeonhole, two people have the same count.
Subset Sum Problem
Among any integers, two have the same remainder mod .
Proof: Only possible remainders: . With integers, by pigeonhole, two share a remainder.
Existence Proofs
Rational Approximation
For any irrational and positive integer , there exists a rational with such that:
Proof Idea: Consider (fractional parts) for . Divide into intervals of length . By pigeonhole, two fractional parts are in the same interval.
Sequence Problems
In any sequence of distinct real numbers, there's an increasing or decreasing subsequence of length .
Proof (Erdős–Szekeres Theorem): For each element , let = length of longest increasing subsequence ending at . If no , then . With elements and possible values, by pigeonhole, elements share the same value. These must form a decreasing subsequence.
Arithmetic Progressions
Three-Term AP
Among any integers in , there exist two whose sum is .
Proof: Pair up: . With numbers and pairs, by pigeonhole, two numbers are from the same pair.
Graph Theory Applications
Friendship Theorem
In any group of 6 people, either 3 mutually know each other or 3 mutually don't know each other.
Proof: Consider one person A. They either know ≥ 3 or don't know ≥ 3 others.
Case 1: A knows B, C, D.
- If any two of B, C, D know each other, we have 3 mutual friends.
- If none of B, C, D know each other, they're 3 mutual strangers.
Case 2: Similar analysis for A not knowing 3 people.
This is a special case of Ramsey's Theorem: .
Tips for Applying Pigeonhole
- Identify the pigeons: What objects are being distributed?
- Identify the pigeonholes: What categories/boxes are they going into?
- Count carefully: Ensure pigeons > pigeonholes (or use generalized version).
- Consider remainders: Modular arithmetic often creates pigeonholes.
- Fractional parts: often helps for real numbers.
Common Pitfalls
Wrong direction: The principle guarantees at least one pigeonhole has many pigeons, not that all do.
Constructive vs. Existence: Pigeonhole proves existence but doesn't always tell you which pigeonhole.
Related Concepts
Strong Pigeonhole
Average number of objects per box is . At least one box must meet or exceed this average.
Probabilistic Method
Extension: If average is , then:
- Something is
- Something is