Skip to content
Gioi Toan
Start learning
A thick book and a smiling magnifying glass

What is Pigeonhole Principle?

Short answer

The Pigeonhole Principle is a principle stating that if more than kn rabbits are put into n cages, then at least one cage contains k+1 rabbits or more.

Type
Theorem
First learned
Grade 6
Also called
nguyên lý Dirichlet, nguyên lí chuồng bồ câu, nguyên lí nhốt thỏ vào lồng, nguyên lí Đi-rích-lê
In English
Pigeonhole Principle, Dirichlet's box principle

Explanation

The Pigeonhole Principle states that if you put n+1n + 1 rabbits into nn cages, then at least one cage contains two rabbits or more. General form: putting more than knkn rabbits into nn cages means at least one cage contains k+1k + 1 rabbits or more.

The principle does not tell you which cage is crowded, it only asserts with certainty that such a cage exists. So when solving problems, you often use it to prove existence rather than to find something specific.

To use it correctly, you must clearly identify what the "rabbits" are (the objects to be arranged) and what the "cages" are (the groups to arrange them into), then count whether the number of rabbits is greater than the number of cages.

Examples

Example 1

There are 5 rabbits put into 4 cages. Prove that one cage contains at least 2 rabbits.

See the solution to example 1

Suppose each cage contains at most 1 rabbit, then 4 cages hold at most 4 rabbits, contradicting the 5 rabbits actually present. Therefore at least one cage contains 2 rabbits or more.

Example 2

A class has 40 students, and there are only 12 birth months. Prove that at least 4 students share the same birth month.

See the solution to example 2

If each month has at most 3 students, then 12 months have at most 36 students, which is fewer than 40 students. Therefore at least one month has 4 students or more.

Common mix-ups

  • It is not true that putting nn rabbits into nn cages always gives a crowded cage; the number of rabbits must be greater than the number of cages.
  • The principle only asserts that at least one cage is crowded, it does not point out which cage, so do not try to find a specific cage when proving.
  • When dividing into groups, you must divide so that the number of groups is less than the number of objects; if the number of groups is greater, the principle cannot be applied.

Where the name comes from

The principle is named after the German mathematician Peter Gustav Lejeune Dirichlet (1805-1859), who used it in number theory.