\(\newcommand{\versionNum}{$3.2$\ } \renewcommand{\tabcolsep}{2.4pt} \def\savedlnot{\lnot} \renewcommand{\arraystretch}{.63} \renewcommand{\arraystretch}{1} \renewcommand{\Naturals}{{\mathbb Z}^{\mbox{\tiny noneg}} } \renewcommand{\arraystretch}{.9} \renewcommand{\arraystretch}{.77} \newcommand{\hint}[1]{ } \newcommand{\inlinehint}[1]{ } \newcommand{\sageprompt}{ \texttt{sage$>$} } \newcommand{\tab}{} \newcommand{\blnk}{\rule{.4pt}{1.2pt}\rule{9pt}{.4pt}\rule{.4pt}{1.2pt}} \newcommand{\suchthat}{\; \;} \newcommand{\divides}{\!\mid\!} \newcommand{\tdiv}{\; \mbox{div} \;} \newcommand{\restrict}[2]{#1 \,_{\,#2}} \newcommand{\lcm}[2]{\mbox{lcm} (#1, #2)} \renewcommand{\gcd}[2]{\mbox{gcd} (#1, #2)} \newcommand{\Naturals}{{\mathbb N}} \newcommand{\Integers}{{\mathbb Z}} \newcommand{\Znoneg}{{\mathbb Z}^{\mbox{\tiny noneg}}} \newcommand{\Zplus}{{\mathbb N}} \newcommand{\Enoneg}{{\mathbb E}^{\mbox{\tiny noneg}}} \newcommand{\Qnoneg}{{\mathbb Q}^{\mbox{\tiny noneg}}} \newcommand{\Rnoneg}{{\mathbb R}^{\mbox{\tiny noneg}}} \newcommand{\Rationals}{{\mathbb Q}} \newcommand{\Reals}{{\mathbb R}} \newcommand{\Complexes}{{\mathbb C}} \newcommand{\relQ}{\mbox{\textsf Q}} \newcommand{\relR}{\mbox{\textsf R}} \newcommand{\nrelR}{\mbox{$\not${\textsf R}}} \newcommand{\relS}{\mbox{\textsf S}} \newcommand{\relA}{\mbox{\textsf A}} \newcommand{\Dom}[1]{\mbox{Dom}(#1)} \newcommand{\Cod}[1]{\mbox{Cod}(#1)} \newcommand{\Rng}[1]{\mbox{Rng}(#1)} \DeclareMathOperator{\caret}{$\scriptstyle\wedge$} \renewcommand{\arraystretch}{.77} \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section7.3The pigeonhole principle

The word “pigeonhole” can refer to a hole in which a pigeon roosts (i.e. pretty much what it sounds like) or a series of roughly square recesses in a desk in which one could sort correspondence (see <<Unresolved xref, reference "fig_roll_top"; check spelling or use "provisional" attribute>>).

Whether you prefer to think of roosting birds or letters being sorted, the first and easiest version of the pigeonhole principle is that if you have more “things” than you have “containers” there must be a container holding at least two things.

If we have 6 pigeons who are trying to roost in a coop with 5 pigeonholes, two birds will have to share.

If we have 7 letters to sort and there are 6 pigeonholes in our desk, we will have to put two letters in the same compartment.

The “things” and the “containers” don't necessarily have to be interpreted in the strict sense that the “things” go into the “containers.” For instance, a nice application of the pigeonhole principle is that if there are at least 13 people present in a room, some pair of people will have been born in the same month. In this example the things are the people and the containers are the months of the year.

The abstract way to phrase the pigeonhole principle is:

The proof of this statement is an easy example of proof by contradiction so we'll include it here.

Proof

For a statement with an almost trivial proof the pigeonhole principle is very powerful. We can use it to prove a host of existential results — some are fairly silly, others very deep. Here are a few examples:

There are two people (who are not bald) in New York City having exactly the same number of hairs on their heads.

There are two books in (insert your favorite library) that have the same number of pages.

Given \(n\) married couples (so \(2n\) people) if we choose \(n+1\) people we will be forced to choose both members of some couple.

Suppose we select \(n+1\) numbers from the set \(\{1, 2, 3, \ldots, 2n\}\), we will be forced to have chosen two numbers such that one is divisible by the other.

\rule{108pt}{1pt}

We can come up with stronger forms of the pigeonhole principle by considering pigeonholes with capacities. Suppose we have 6 pigeonholes in a desk, each of which can hold 10 letters. What number of letters will guarantee that one of the pigeonholes is full? The largest number of letters we could have without having 10 in some pigeonhole is \(9 \cdot 6 = 54\), so if there are 55 letters we must have 10 letters in some pigeonhole.

More generally, if we have \(n\) containers, each capable of holding \(m\) objects, than if there are \(n \cdot (m-1) + 1\) objects placed in the containers, we will be assured that one of the containers is at capacity.

The ordinary pigeonhole principle is the special case \(m=2\) of this stronger version.

There is an even stronger version, which ordinarily is known as the “strong form of the pigeonhole principle.” In the strong form, we have pigeonholes with an assortment of capacities.

Proof

Subsection7.3.1Exercises

  1. The statement that there are two non-bald New Yorkers with the same number of hairs on their heads requires some careful estimates to justify it. Please justify it.

  2. A mathematician, who always rises earlier than her spouse, has developed a scheme — using the pigeonhole principle — to ensure that she always has a matching pair of socks. She keeps only blue socks, green socks and black socks in her sock drawer — 10 of each. So as not to wake her husband she must select some number of socks from her drawer in the early morning dark and take them with her to the adjacent bathroom where she dresses. What number of socks does she choose?

  3. If we select \(1001\) numbers from the set \(\{1, 2, 3, \ldots, 2000\}\) it is certain that there will be two numbers selected such that one divides the other. We can prove this fact by noting that every number in the given set can be expressed in the form \(2^k \cdot m\) where \(m\) is an odd number and using the pigeonhole principle. Write-up this proof.

  4. Given any set of \(53\) integers, show that there are two of them having the property that either their sum or their difference is evenly divisible by \(103\).

  5. Prove that if \(10\) points are placed inside a square of side length 3, there will be 2 points within \(\sqrt{2}\) of one another.

  6. Prove that if \(10\) points are placed inside an equilateral triangle of side length 3, there will be 2 points within \(1\) of one another.

  7. Prove that in a simple graph (an undirected graph with no loops or parallel edges) having \(n\) nodes, there must be two nodes having the same degree.