Proofs · Chapter 11

Pigeonhole Calculator

More gloves than colors means a matching pair. Type the items and the boxes and see the most crowded box you can be sure of.

Home › Calculators › Proofs › Pigeonhole Calculator

Opens on Chapter 11’s example: Anouk’s glove bin in the dark: black and green gloves.

Enter your own case, then press Work it out.

How it works

If every box held fewer than N ÷ k, the boxes would hold fewer than N items in all. So some box holds at least N ÷ k, rounded up. The even split shows that is the most you can promise. It is a proof, for any way the items fall, though it never says which box.

From the book, Chapter 11. Two colors: 3 gloves make a pair certain; five colors, 6. 13 people share a birth month; 367 share a birthday. 50 seed packets in 7 plots: 50 ÷ 7 = 7.14, so some plot gets at least 8 (with 49 packets you couldn’t be sure). A city of 1,000,001 has two people with the same number of hairs. The book and every chapter’s tool →

Tests and proofs. When a tool tries cases, it tells you how many: a test of a million cases is still evidence, not a proof, because it says nothing about the cases it didn’t try. When an answer is proved (a count, a check digit, a complete list of every case, an algebra step that holds for every value), the page says so and why. Numbers can be typed as 1,200, −7, 3/4 or 0.05; formulas as 2^n − 1, n(n + 1)/2, n², C(n, 4) (choices of 4 from n), n! or sum(2k − 1) (the terms for k = 1 to n). Everything stays in your browser: no sign-up, nothing stored or sent.