The pigeonhole principle
4 min read
Short answer
If objects go into boxes, some box gets at least two. Generalized: objects in boxes force some box to hold at least . It proves that something exists without finding it.
Why it works
Suppose every box held at most one object. Then the total would be at most , contradicting . The proof is a one-line contradiction, yet the consequences are surprisingly strong.
How to apply it
Name the pigeons (the things you have) and the holes (the categories). If pigeons outnumber holes, a collision is guaranteed. Good holes are remainders, birthdays, colors, or ranges of values.
Worked example
What is the smallest group of integers that guarantees two of them leave the same remainder when divided by ?
There are only possible remainders (), the holes. With integers (pigeons) two must share a remainder. With only integers they could all differ, so the minimum is .
Try it yourself
A drawer has red, blue and green socks. How many must you draw in the dark to be sure of a matching pair?
Show the answer
Three colors are the holes, so drawing socks guarantees two of the same color. Three socks could all differ.
Keep going with practice
Vidi's probability lessons count outcomes; the pigeonhole principle is the counting tool for certainty.