123. The Pigeonhole Principle
In its contrapositive form, Theorem 122.1(b) says the following:
123.1 Theorem
For any finite sets $A$ and $B$, if $|A|>|B|$, then no function from $A$ to $B$ is injective.
123.1.1 Example If you have a set $A$ of pigeons and a set $B$ of pigeonholes, $|A|>|B|$, and you put each pigeon in a pigeonhole (thereby giving a function from $A$ to $B$), then at least one pigeonhole has to have two pigeons in it (the function is not injective). For this reason, Theorem 123.1 is called the Pigeonhole Principle.
123.1.2 Example An obvious example of the use of the Pigeonhole Principle is that in any room containing 367 people, two of them must have the same birthday. Note that the Pigeonhole Principle gives you no way to find out who they are.
123.1.3 Worked Exercise Let $S =\{n{:}\mathrm{N}\mid 1\leq n\leq 10\}$. Show that any subset $T$ of $S$ with more than 5 elements contains two numbers that add up to 11.
Answer The following are all the two-element subsets of $S$ whose elements add up to 11: $\{ 1, 10\}, \{ 2, 9\}, \{ 3, 8\}, \{ 4, 7\}, \{ 5, 6\}$. They form a partition of $S$ with five blocks. Every element of $T$ is in one of these subsets, and since $T$ has more than five elements, by the Pigeonhole Principle two different elements must be in the same block of the partition.
123.1.4 Exercise Let $S$ be as in Worked Exercise 123.1.3. Show that if $T \subseteq S$ and $|T| \geq 4$ then there are two different elements of $T$ that have the same remainder when divides by 3.
123.1.5 Exercise Let $A =\{n{:}\mathrm{N}\mid 1\leq n\leq 12\}$. Find the least integer $n$ so that the following statement is true: If $T \subseteq A$ and $|T| \geq n$, then $T$ contains two distinct elements whose product is 12.
Page 189 of the book (PDF).