Pigeonhole Arguments
If you stuff more pigeons than pigeonholes, some hole gets at least two — an observation so obvious it feels useless, until it's the entire proof that a solution must exist, with no construction required.
Prove that among any 13 people, at least two share a birth month. That one's easy by inspection — 12 months, 13 people, someone doubles up. Now the real question: in any group of 6 people at a party, either at least 3 of them are mutual friends, or at least 3 of them are mutual strangers (assume friendship is symmetric — either two people know each other or they don't). Prove it. This one doesn't have an obvious "container" to count, and yet it's the same principle in disguise.
Try the second one before reading on — pick one person and think about their 5 relationships to everyone else.
The trap: looking for an explicit construction
Both statements are existence claims — "at least two must," "at least three must" — and existence claims often tempt people to try to build an example that satisfies the conclusion, which is both harder than necessary and the wrong tool. The pigeonhole principle proves existence without construction: it just counts, and shows that avoiding the conclusion is numerically impossible.
Pigeonhole principle: if you place items into containers and , some container holds at least items. The hard part is almost never the counting — it's spotting what the "pigeons" and "holes" secretly are in a problem that doesn't announce them.
Worked example: 13 people, 12 months — the container is obvious
Pigeons: the 13 people. Holes: the 12 possible birth months. Since , at least one hole (month) contains at least pigeons — two people share that month. This case is included only to fix the vocabulary; the interesting cases hide the containers.
Worked example: 6 people, friends or strangers — the container is hidden
Pick any one person, call them A. A has exactly 5 relationships, one to each other person, and each relationship is either "friend" or "stranger" — two categories. By pigeonhole, among A's 5 relationships, at least fall into the same category. Say (WLOG — the stranger case is symmetric) that A has at least 3 friends: call them .
Now look only at the relationships among themselves. If any pair among them — say and — are friends, then are all mutual friends (A is friends with both by construction, and B, C are friends with each other): a mutual-friend triple, done. If instead no pair among is friends — i.e. are pairwise strangers — then themselves form a mutual-stranger triple, done.
Either way, a triple of the required kind exists. The pigeons in the second application were the 3 pairs among , and the holes were "friend" or "stranger" — but really the whole proof is pigeonhole applied twice, once to find 3 people related the same way to , once to check the relationships among those 3.
In words: five relationships split two ways always leaves one side with at least three — that single ceiling-division is the entire engine of the proof.
A second flavour: the generalised (ceiling) version, worked with numbers
A drawer has socks of 4 colours. How many socks must you pull, blindly, to guarantee a matching pair? Pigeons: the socks you pull. Holes: the 4 colours. You want the smallest forcing , i.e. some colour hits 2. The largest that can still avoid a repeat is (one of each colour, zero matches) — so pulling forces , a guaranteed match. The general rule: to force items in one hole among holes, you need pigeons — here : , matching the hand count exactly.
Pigeonhole proves existence, never identity or count beyond the guarantee. It tells you two socks of some colour exist among 5 pulled — it does not tell you which colour, nor rule out three or four matching. Don't over-claim precision the argument doesn't provide, and don't confuse "at least one hole has ≥2" with "every hole has ≥2," which pigeonhole never asserts.
The transferable technique
Whenever a puzzle claims something must exist — a repeat, a monochromatic structure, a bound on how spread out something can be — ask two questions: what are the pigeons (the things being distributed), and what are the holes (the categories they're forced into)? The holes are rarely announced explicitly; finding them, often by fixing one element of the problem and looking at its relationships to everything else (as with person A above), is the actual creative step. Once the pigeons and holes are named, the arithmetic — a single ceiling-division — finishes the proof.
Related concepts
Practice in interviews
Further reading
- Engel, Problem-Solving Strategies, ch. 4