Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

The Pigeonhole Principle and Its Surprising Applications in Combinatorics

Quick fact

The pigeonhole principle, though obvious, is the engine behind deep results like the Erdős–Szekeres theorem: any sequence of more than (r-1)(s-1) distinct real numbers contains an increasing subsequence of length r or a decreasing subsequence of length s.

Why this is interesting

Have you ever wondered why, in a room of just 23 people, there's a better than even chance that two share a birthday? The answer hides in a surprisingly simple idea that seems too trivial to be powerful.

Read the full explanation

Understanding The Pigeonhole Principle and Its Surprising Applications in Combinatorics

Imagine you have more pigeons than pigeonholes. If you try to put each pigeon into a hole, at least one hole must end up with two or more pigeons. This is the pigeonhole principle. It sounds almost too simple, but it is a cornerstone of combinatorial reasoning. Often, we want to know if some property must exist without having to find it. The principle lets us say, 'There must be two people in London with the same number of hairs on their head' (given the population of London exceeds the maximum hair count). It's a counting argument: if the number of things exceeds the number of categories, at least one category contains multiple things.

A deeper explanation

The pigeonhole principle works because of the fundamental nature of counting and mapping. When you assign each item to a container, you are creating a function from items to containers. If the domain (items) is larger than the codomain (containers), the function cannot be injective—two items must map to the same container. This idea extends to generalized forms: if you have more than k times as many items as containers, some container holds at least k+1 items. This principle is used in unexpected places. For example, in any set of n+1 integers, there exist two whose difference is divisible by n: consider their remainders modulo n. There are n possible remainders but n+1 numbers, so two share a remainder. The difference of those two is divisible by n. This simple argument yields the existence of a multiple of n within any block of n consecutive integers. The principle also underlies the Erdős–Szekeres theorem, which guarantees monotonic subsequences in long sequences, and is a precursor to Ramsey theory, where larger structures are forced to have patterns. Its power lies in turning a counting observation into a non-constructive proof of existence, showing that certain configurations are unavoidable.

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.