Nepedia
Back to Discover
Advanced Reader
🔢

Pigeonhole principle

math Maturity 7-9 Next article →

{

"text": "The pigeonhole principle is a fundamental counting argument in mathematics. It states that if you distribute a set of items into a smaller number of containers, at least one container must hold more than one item. This principle may seem obvious, yet it serves as a powerful tool for proving unexpected results. In formal mathematics, it is described using the concept of functions. It asserts that there is no injective function from a larger set to a smaller one. An injective function, or one-to-one function, is one where every input maps to a unique output. If the number of possible outputs is smaller than the number of inputs, a collision is mathematically inevitable.\n\n

TooManyPigeons
TooManyPigeons

\n\nThe mechanism of the principle relies on the relationship between the number of objects and the number of available categories. If you have $n$ items and $m$ containers, and $n$ is greater than $m$, then at least one container must contain at least $\lceil n/m \rceil$ items. The symbol $\lceil \dots \rceil$ represents the ceiling function, which rounds a number up to the nearest whole integer. For example, if you have ten pigeons and nine holes, at least one hole must contain two pigeons. If you have eleven pigeons and five holes, at least one hole must contain at least three pigeons. This logic creates a guaranteed minimum for how items must be distributed.\n\nThere are several ways to generalize this principle for different mathematical contexts. In its most basic form, it deals with finite sets, such as a specific number of socks or people. However, it can also be applied to infinite sets that cannot be placed into a one-to-one correspondence. Mathematical proofs, such as Siegel's lemma, build upon these more advanced, generalized concepts. The principle can also be expressed through various quantitative versions. These versions help mathematicians calculate the exact minimum number of items required to guarantee a certain result in a group.\n\n

Pigeon-hole messagebox 3
Pigeon-hole messagebox 3

\n\nThe history of the principle includes several notable figures and eras. The earliest written reference appears in 1622 in a work by the French Jesuit Jean Leurechon. He noted that two men must share the same number of certain items, such as coins or hairs. In 1834, the German mathematician Peter Gustav Lejeune Dirichlet provided a formal treatment of the idea. He referred to it as the drawer principle or the shelf principle. Dirichlet often used the metaphor of distributing pearls into drawers to explain the concept. Over time, the term \"pigeonhole\" became the standard English name, likely due to the small compartments in desks used for sorting papers.\n\n

Pigeon-hole messagebox 3
Pigeon-hole messagebox 3

\n\nWe can see the principle's significance when applied to large-scale real-world data. Consider the population of London and the number of hairs on a human head. A typical human head has an average of about 150,000 hairs, and it is reasonable to assume no one has more than 1,000,000. Since London's population is much larger than one million, the principle requires that at least two people in London have the exact same number of hairs. If London has a population of 9.002 million, the principle proves an even stronger fact. In that specific case, at least ten Londoners must share the same hair count.\n\n

Dudeney no 3 pawns in line
Dudeney no 3 pawns in line

\n\nOther surprising examples demonstrate how the principle works in social and logical settings. In a group of 367 people, there is a 100% probability that at least two people share a birthday, because there are only 366 possible days. In a hand-shaking scenario, the principle proves that in any group of people, at least two individuals must have shaken the same number of hands. This is because the number of possible handshakes per person is limited. Even in simple tasks like picking socks, if you have two colors of socks, picking three socks guarantees a matching pair. These examples show how the principle forces certain outcomes even when we cannot see them.\n\n

TooManyPigeons
TooManyPigeons

\n\nThe principle connects deeply to modern computer science and complex mathematical analysis. In computer science, it is vital to the study of hashing. Hashing maps large datasets to fixed-size values called hash codes. Because the number of unique objects is often larger than the available hash codes, some objects must inevitably share the same code. The principle also explains the limits of lossless compression algorithms. If a program makes some files smaller, the principle dictates that it must make other files larger. This ensures that the mathematical mapping between the original data and the compressed data remains unique and recoverable.",

"media": [

"File:TooManyPigeons.jpg",

"File:Pigeon-hole messagebox 3.jpg",

"File:Dudeney_no_3_pawns_in_line.svg"

]

}

789 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:TooManyPigeons.jpg
TooManyPigeons.jpg
File:Pigeon-hole messagebox 3.jpg
Pigeon-hole messagebox 3.jpg
File:Dudeney_no_3_pawns_in_line.svg
Dudeney_no_3_pawns_in_line.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.