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

The Pigeonhole Principle and Its Applications

College Depth 66 in the knowledge graph ☐ I know this ☆ Set as goal
61topics build on this
314prerequisites beneath it
See this on the map →
Introduction to the Pigeonhole PrincipleIntroduction to Graph Theory→→The Pigeonhole Principle
pigeonhole discrete-proofs

Core Idea

The pigeonhole principle states: if n+1 items are placed into n boxes, at least one box must contain two items. More generally, if m items are placed into n boxes with m > n, at least one box contains ⌈m/n⌉ items. This simple principle has powerful existence proofs in combinatorics and graph theory.

Explainer

The pigeonhole principle sounds almost too obvious to be useful: if you have 13 socks in 12 drawers, at least one drawer holds 2 socks. The power comes from recognizing when a seemingly hard problem secretly has this structure hiding inside it. The art of applying the pigeonhole principle is identifying the right "pigeons" (objects being distributed) and the right "holes" (categories they fall into).

The basic form says: if n+1 objects are distributed among n categories, some category contains at least 2 objects. The generalized form sharpens this: if m objects go into n categories, at least one category contains at least ⌈m/n⌉ objects. This ceiling function is the key — it means the maximum must be *at least* the average, rounded up. If you have 25 students and 7 exam grades (A through F, plus one more), at least ⌈25/7⌉ = 4 students share a grade. This follows without knowing anything about who scored what.

The real skill is translating existence problems into this form. Consider: in any group of 13 people, must two of them share a birth month? Yes — there are 13 people (pigeons) and 12 months (holes), so by the basic form, at least two share a month. Notice that the principle guarantees *existence* without telling you *which* pair shares the month. This is an existence proof — it proves something must exist without constructing an example. This style of reasoning appears constantly in combinatorics and graph theory: if a graph has enough vertices relative to its structure, certain patterns must appear.

The most surprising applications come from cleverly defined categories. To prove that among any n+1 integers from {1, 2, ..., 2n}, two must be consecutive, partition {1,...,2n} into the n pairs {1,2}, {3,4}, ..., {2n-1, 2n}. These pairs are the holes; the chosen integers are the pigeons. Choosing n+1 integers forces two into the same pair, which are consecutive. The harder part is always inventing the right partition — once you have it, the principle does the rest automatically. Developing this skill means practicing on varied problems until you build a library of useful partition strategies.

Practice Questions 5 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 → Number Bonds to 10 → 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 (0s, 1s, 2s, 5s, 10s) → 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 → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → The Pigeonhole Principle and Its Applications

Longest path: 67 steps · 314 total prerequisite topics

Prerequisites (2)

Leads To (1)