Math101learn.math101.caPigeonhole Principle
A rigorous treatment of ordinary and generalized pigeonhole arguments, with sharp bounds and applications.
Precise definition
The pigeonhole principle says that placing more than $n$ objects into $n$ boxes forces some box to contain at least two objects. The generalized form says that distributing $N$ objects among $k$ boxes forces some box to contain at least $\lceil N/k\rceil$ objects.
Notation and mathematical language
Objects and boxes are modelling choices, not literal items. The ceiling $\lceil x\rceil$ is the least integer at least $x$. A proof often assumes every box has at most $r-1$ objects; then the total is at most $k(r-1)$, so any $N>k(r-1)$ forces a box with at least $r$.
Conceptual picture
The principle converts an average into a guaranteed local concentration. If the average load is $N/k$, at least one box cannot lie below its ceiling. It proves existence but usually does not identify which box or construct the repeated pair.
Conditions and key results
The boxes must cover every object, and each object must be assigned according to a well-defined rule. For the simple two-in-one conclusion, $N>k$ is essential. For a target of at least $r$ in one box, the sharp forcing threshold is $k(r-1)+1$.
A reliable strategy
- Choose the objects and define boxes so that the desired coincidence means sharing a box.
- Count objects $N$ and boxes $k$ accurately, including boundary categories.
- Apply $\lceil N/k\rceil$ or compare $N$ with $k(r-1)$ for the desired load $r$.
- State the guaranteed existence conclusion without claiming a particular box unless further information identifies it.
Fully worked example
Interpretation and application
Pigeonhole reasoning appears in hashing collisions, repeated remainders, scheduling, data compression, and graph degree arguments. A hash table with fewer slots than possible keys must permit collisions; the principle proves necessity but does not evaluate a collision-resolution method's performance.
Common mistakes
Verification and reasonableness
- Try the extremal arrangement with at most $r-1$ objects per box and compute its capacity.
- Check sharpness: at $k(r-1)$ objects, can every box still have only $r-1$?
- Verify units—people, residues, dates, or keys—match the object and box counts.
Practice
- How many people guarantee two share a weekday of birth?
- What load is guaranteed when 41 files are placed in 10 folders?
- How many integers guarantee three share the same remainder modulo 5?
Answers and brief solutions
- $8$, because there are seven weekdays.
- At least $\lceil41/10\rceil=5$ files in one folder.
- $5(3-1)+1=11$.
Further deduction
Remainders supply natural boxes. Among any $n+1$ integers, two have the same remainder modulo $n$; subtracting them produces a multiple of $n$. The integers are objects and the $n$ possible residues $0,1,\ldots,n-1$ are boxes. This conclusion remains true even when the integers repeat, but if distinctness or a nonzero difference is required, the original problem must provide enough information to exclude choosing the same occurrence as both objects.
Related topics
Try it yourself
Hints are part of learning. Open one whenever it makes the next step feel possible.
What minimum number of objects in 6 boxes guarantees at least 4 in one box?
- The largest avoiding arrangement has $6(4-1)=18$ objects.
- One more object forces a box with at least four, so the threshold is 19.
End of lesson
Nice work making it this far.
Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.
