Category: Discrete Math Level: 301
n + 1 items in n boxes ⇒ some box holds at least 2
If there are more items than boxes, some box must hold two or more. With N items in k boxes, some box holds at least ⌈N/k⌉.
There are 10 pigeons and only 9 holes. Every pigeon needs a hole. No pigeon gets a vote.
10 > 9
Give each hole one pigeon, the fairest way. That uses 9 pigeons, and every hole is now full of exactly one.
9 pigeons placed, 1 per hole
Pigeon 10 still needs a hole, and every hole is taken. Wherever it goes, that hole holds 2. No clever plan avoids it.
10 pigeons in 9 holes ⇒ some hole has ≥ 2
Months are holes and people are pigeons. With 13 people, at least two share a birth month, no matter who shows up.
13 people > 12 months ⇒ shared month
With 25 people and 12 months, fill each month with 2 first. That is only 24, so person 25 makes a 3. Some month always has at least ⌈25/12⌉ = 3.
⌈25/12⌉ = 3
cd svg-generator python3 -m svgmath render pigeonhole --out /tmp/pigeonhole
Source: svgmath/diagrams/counting.py