The basic idea is really simple. For example, if we have three boxes and want to put away four or more toys, there must be at least one box containing two or more toys. The technique can be used cleverly to prove statements that are not so trivial.
If \(k\) is a positive integer, and \(k+1\) or more objects are placed into \(k\) boxes, then there is at least one box containing two or more objects.
Example4.2.1.3.People with the same number of hairs.
Assume no human has more than \(200000\) hairs on his/her head. Since there are more than \(200000\) people in Greensboro, there are at least two people in Greensboro with exactly the same number of hairs on their head.
If \(A\) and \(B\) are nonempty sets with \(\size{B} = k\) and \(\size{A}
\geq k + 1\text{,}\) then there are no injective functions from \(A\) to \(B\text{.}\)
We show that any function from \(A\) to \(B\) is not injective. Make a box for each \(b\) in \(B\text{.}\) For each \(a\) in \(A\text{,}\) place \(a\) in box labeled \(b\) if \(f(a) = b\text{.}\) By the Pigeonhole Principle, there is a box with at least two elements in it. Thus there is a \(b\) in \(B\) with at least two different preimages. Thus \(f\) is not injective.
By the Pigeonhole Principle, there must be a congruence class with at least two of these integers in it. The difference of these two integers is \(0\) modulo \(n\text{,}\) hence divisible by \(n\text{.}\) Additionally, the difference only has \(0\) s and \(1\) s in its decimal expansion.