MathLabs
TheoremProved

The generalized pigeonhole principle

Statement

If nn objects are distributed into kk boxes, then some box contains at least ⌈n/k⌉\lceil n/k\rceil objects.

Why is it true?

The basic principle only guarantees 22 objects somewhere; the generalized version sharpens this to the exact minimum forced by averaging nn objects over kk boxes, using the same contradiction idea but comparing against ⌈n/k⌉−1\lceil n/k\rceil-1 instead of 11.

Proof sketch

Assume, for contradiction, that every box contains at most ⌈n/k⌉−1\lceil n/k\rceil-1 objects.

Then the total number of objects distributed is at most k(⌈n/k⌉−1)k\left(\lceil n/k\rceil-1\right).

Since ⌈n/k⌉\lceil n/k\rceil is the smallest integer at least n/kn/k, we have ⌈n/k⌉−1<n/k\lceil n/k\rceil-1<n/k, so k(⌈n/k⌉−1)<k⋅nk=nk\left(\lceil n/k\rceil-1\right)<k\cdot\frac{n}{k}=n.

So the total distributed is strictly less than nn, contradicting that all nn objects were distributed. Hence some box contains at least ⌈n/k⌉\lceil n/k\rceil objects.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.