The pigeonhole principle

Let us start with a simple example that motives the main result of the section.

A man enters an elevator with six other people. As he reaches to press the button to select his floor, he notices that seven buttons are already lit up. This doesn’t add up, he thinks. If every person on the elevator selected one floor, there should be at most (possibly less, as different people could want to go to the same floor) six buttons selected. One of you pressed more than one button! He exclaims annoyed.

Exercise.

Suppose that people attend an event and some or all purchase tickets for a raffle. If tickets for different prizes were sold, prove that someone must get at least two prizes.

The following important fact can be formalized using the language of injective functions.

Pigeonhole principle.

If there are pigeons to be distributed among fewer than pigeonholes, then at least one pigeonhole will have at least two pigeons.

Imagine that people are standing in line to get the COVID vaccine. The line has spots. Since it’s the middle of the pandemic, the people are asked to leave one free space between every two people standing in line to ensure a safe distance. Show that this is impossible.

In a perhaps more mathematical language:

Exercise.

Consider the set of all integers satisfying (so, has elements). Prove that every subset of of size more than must contain two numbers that are consecutive. In symbols, there exists such that .

Exercise.

Prove the following versions of the pigeonhole principle.

  1. If are real numbers such that , then there is at least one value of such that .

  2. If are integers, and is a real number such that , then there is at least one value of such that .

Exercise.

Color each point of the grid in one of three colors. Prove that some rectangle has all four vertices of the same color. Moreover, argue that this rectangle can always be found within a fixed compact region of the plane.

Reflect.

Can you do this for more than three colors?

Exercise.

Let be a positive integer and be a subset of size of the set .

  1. Prove that there exist distinct such that divides .
  2. Show, with an example, that the conclusion is false if has size instead.

Exercise.

A bridge club has members. Every day, four members of the club get together and play one game of bridge. Prove that after two years, there is some particular set of four members that has played at least four games of bridge.

Generalized pigeonhole principles

Exercise.

Show that if more than elements are put into sets, some set contains elements.

Exercise.

Among any 200 positive integers, there are 29 of them that are pairwise congruent mod 7.

Exercise.

Show that if are positive integers and more than pigeons are put in pigeonhole, for some , the th pigeonhole contains at least pigeons.

Exercise.

Prove this generalized pigeonhole principle:

If you put pigeons into pigeonholes, one hole has pigeons.

Exercise.

Every point on the plane is colored red or blue. Prove that there are always two points exactly one unit apart that have the same color.

Exercise.

Any five points placed inside a unit square contain a pair of points at distance at most .

Exercise.

Any subset of of size at least contains two relative primes.

Exercise.

Among any positive integers, two of them have a distance divisible by .

Hard exercise (special case of the Erdős–Szekeres theorem).

Prove that any sequence of different naturals contains a monotonic subsequence of length .

For every , construct a sequence of naturals containing no monotonic subsequence of length .

Hard exercise (IMO 1972).

From a set of ten two-digit decimal numbers, two disjoint subsets have the same sum.