A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Introduction to the Pigeonhole Principle

Middle & High School Depth 60 in the knowledge graph ☐ I know this ☆ Set as goal
3,136topics build on this
294prerequisites beneath it
See this on the map →
What Is an Argument?Introduction to Proof by Contradiction+1 more→→Introduction to Mathematical InductionThe Pigeonhole Principle+1 more
pigeonhole combinatorics proof existence

Core Idea

The pigeonhole principle states: if you place more than n objects into n containers, at least one container must hold more than one object. If 13 people are born in a year, at least two share a birth month (12 months, 13 people). Despite being almost trivially obvious, this principle is a surprisingly powerful proof tool. It proves existence — that some collision or overlap must occur — without specifying which container is overfull. Many elegant mathematical results rely on nothing more than careful application of this simple idea.

How It's Best Learned

Start with physical examples: 5 balls into 4 boxes means at least one box has 2+ balls. Then apply to familiar contexts: in a class of 367 students, two must share a birthday. Progress to less obvious applications: among any 5 integers, two must have the same remainder when divided by 4 (4 possible remainders, 5 integers). Emphasize that the principle proves existence, not identity — you know a collision exists but may not know which specific objects collide.

Common Misconceptions

Explainer

The pigeonhole principle is the mathematical version of a fact so obvious it barely seems worth stating: if you have more pigeons than pigeonholes, at least one hole must contain more than one pigeon. Ten pigeons, nine holes — some hole has at least two pigeons. A million pigeons, 999,999 holes — at least one hole is shared. The principle is immediate and requires no proof beyond basic counting.

What makes it interesting is not the principle itself but its applications. Consider: pick any 5 integers. I claim at least two of them have the same remainder when divided by 4. Why? Because there are only 4 possible remainders (0, 1, 2, 3), and you have 5 integers. By pigeonhole, at least two must land in the same remainder category. This tells you something nontrivial about any 5 integers, and you proved it without knowing which integers they are or which pair matches.

The principle generalizes naturally. If you have kn + 1 objects in n containers, at least one container has at least k + 1 objects. 25 students, 12 months: at least one month has at least 3 birthdays (since 24 = 2 × 12, you need 25 to guarantee 3 in some month). This generalized version lets you draw stronger conclusions about overcrowding.

The deepest applications of the pigeonhole principle require creativity in defining the pigeons and the holes. The objects and containers are not always obvious. In the problem "prove that among any 5 points in a 2×2 square, two are within distance at most the square root of 2 apart," the pigeonholes are the four 1×1 sub-squares (divide the big square into 4 equal parts). Five points, four sub-squares: at least two points share a sub-square. The maximum distance between two points in a 1×1 square is the square root of 2 (the diagonal). The principle does the work, but the insight was choosing the right decomposition.

This brings up an important characteristic of pigeonhole proofs: they are existence proofs. They tell you that some collision, overlap, or match must exist, but they do not tell you which one. You cannot use the pigeonhole principle to find the two people who share a birthday — only to prove that such a pair exists. This distinction between existence and construction is a recurring theme in mathematics, and the pigeonhole principle is one of the simplest tools that illustrates it.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Variables in Logic → Conditional Statements (If-Then Formal) → Introduction to Direct Proof → Introduction to Proof by Contradiction → Introduction to the Pigeonhole Principle

Longest path: 61 steps · 294 total prerequisite topics

Prerequisites (3)

Leads To (3)