TheoremComplete

Pigeonhole and Inclusion-Exclusion - Applications

The Pigeonhole Principle, despite its elementary statement, has profound applications across mathematics. We present a formal statement and proof of one of its most powerful forms.

DefinitionGeneralized Pigeonhole Principle

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

Proof by Contradiction:

Assume, for contradiction, that every box contains fewer than n/k\lceil n/k \rceil objects. Then each box contains at most n/k1\lceil n/k \rceil - 1 objects.

Since n/k\lceil n/k \rceil is the smallest integer greater than or equal to n/kn/k, we have n/k1<n/k\lceil n/k \rceil - 1 < n/k.

Therefore, the total number of objects is at most: k(n/k1)<k(n/k)=nk \cdot (\lceil n/k \rceil - 1) < k \cdot (n/k) = n

This contradicts the assumption that there are nn objects. Therefore, at least one box must contain at least n/k\lceil n/k \rceil objects. \square

ExampleDirichlet's Approximation Theorem

For any irrational number α\alpha and any positive integer NN, there exist integers pp and qq with 1qN1 \leq q \leq N such that: αpq<1qN\left|\alpha - \frac{p}{q}\right| < \frac{1}{qN}

Proof: Consider the N+1N+1 numbers 0,{α},{2α},,{Nα}0, \{\alpha\}, \{2\alpha\}, \ldots, \{N\alpha\}, where {x}\{x\} denotes the fractional part of xx (i.e., {x}=xx\{x\} = x - \lfloor x \rfloor).

Divide the interval [0,1][0,1] into NN subintervals: [0,1/N),[1/N,2/N),,[(N1)/N,1)[0, 1/N), [1/N, 2/N), \ldots, [(N-1)/N, 1).

By the pigeonhole principle, at least two of these N+1N+1 fractional parts must lie in the same subinterval. Say {jα}\{j\alpha\} and {kα}\{k\alpha\} lie in the same subinterval, where 0k<jN0 \leq k < j \leq N.

Then {jα}{kα}<1/N|\{j\alpha\} - \{k\alpha\}| < 1/N, which means jαkα(mn)<1/N|j\alpha - k\alpha - (m - n)| < 1/N for some integers mm and nn.

Let q=jkq = j - k (so 1qN1 \leq q \leq N) and p=mnp = m - n. Then: qαp<1N|q\alpha - p| < \frac{1}{N}

Dividing by qq: αpq<1qN\left|\alpha - \frac{p}{q}\right| < \frac{1}{qN}

This proves the theorem. \square

This application shows how the pigeonhole principle provides existence proofs for good rational approximations to irrational numbers, a fundamental result in number theory.

DefinitionRamsey's Theorem (Finite Version)

For any positive integers rr and ss, there exists a least positive integer R(r,s)R(r,s) such that any graph on R(r,s)R(r,s) vertices contains either a clique of size rr or an independent set of size ss.

The pigeonhole principle proves the base case: R(2,s)=sR(2,s) = s.

Proof of R(2,s)=sR(2,s) = s:

Consider any graph GG on ss vertices. For any vertex vv:

  • If vv has at least one neighbor, then vv and that neighbor form a clique of size 2 (an edge).
  • If vv has no neighbors, then vv alone forms an independent set of size 1.

By the pigeonhole principle, either there exists an edge (clique of size 2), or all ss vertices are isolated (independent set of size ss).

For the general case R(r,s)R(r1,s)+R(r,s1)R(r,s) \leq R(r-1,s) + R(r,s-1), we also use pigeonhole reasoning on the neighborhood of a vertex. \square

Remark

The pigeonhole principle is the foundation for Ramsey theory, which studies unavoidable patterns in large structures. The famous result that R(3,3)=6R(3,3) = 6 means that in any group of 6 people, there are either 3 mutual acquaintances or 3 mutual strangers. Computing exact Ramsey numbers remains one of the great challenges in combinatorics, with R(5,5)R(5,5) still unknown (though bounded between 43 and 48).