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 Problem-Solving Power

Quick fact

The pigeonhole principle guarantees that among any 367 people, at least two share a birthday—no probability needed, just pure certainty.

Why this is interesting

Think about a group of 13 people—surely two of them must share a birth month, right? Why is that guaranteed?

Read the full explanation

Understanding The Pigeonhole Principle and Its Problem-Solving Power

Imagine you have more pigeons than pigeonholes. After placing each pigeon into a hole, if there are more pigeons than holes, at least one hole must contain more than one pigeon. This is the pigeonhole principle. It's a simple counting argument: if you have n items and m containers, and n m, then at least one container must hold at least two items. The principle is so intuitive that it might seem trivial, but its power lies in how it proves existence without constructing the actual case. For example, in a group of 13 people, there are only 12 possible birth months, so by the principle, at least two people must share a birth month. Similarly, with 367 people, you can be certain that two share a birthday because there are only 366 possible dates (including February 29). The principle is the foundation for many surprisingly strong conclusions in mathematics and computer science, because it turns a simple observation about counting into a rigorous proof that something must exist.

A deeper explanation

The pigeonhole principle works because of the fundamental relationship between quantities: if you try to assign n distinct items to m categories without repetition, you can do so only if n ≤ m. When n m, the assignment forces a collision. This mechanism is a direct consequence of the definition of a function and the fact that a set with fewer elements cannot have an injective mapping onto a larger set. In combinatorics, the principle extends to a generalized form: if you place n items into m containers, at least one container holds at least ⌈n/m⌉ items. This stronger version allows you to control the minimum number of repetitions. The principle is used to prove results like the existence of two numbers in a set with the same remainder when divided by a fixed number, or to show that in any set of n+1 integers, two are congruent modulo n. These applications reveal the principle's role as a key tool in number theory and graph theory, where it guarantees the existence of certain structures without explicitly constructing them. Its problem-solving power lies in its ability to transform a vague question like 'is there always a repeat?' into a concrete counting argument.

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.