Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4236

Pigeonhole Principle

Pigeonhole Principle
StructureHigh supportLogic
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

In mathematics, the pigeonhole principle states that if n items are put into m containers, with n > m, then at least one container must contain more than one item. For example, of three gloves, at least two must be right-handed or at least two must be left-handed, because there are three objects but only two categories.

Definition

If n+1 objects are placed into n boxes, then at least one box contains no fewer than two objects. This is the most basic, obvious, yet extremely widely applied mathematical principle. Scaffold use: It provides a concise proof tool for inevitability. In resource allocation, cryptography, and algorithm design, it often proves with minimal logic that something "must happen," serving as the mathematical version of "too many people, too little porridge."

How to use

It provides a concise proof tool for inevitability. In resource allocation, cryptography, and algorithm design, it often proves with minimal logic that something "must happen," serving as the mathematical version of "too many people, too little porridge."

Mechanism

If n+1 objects are placed into n containers, counting shows that at least one container holds no fewer than two objects. It is the simplest inevitability argument of the drawer type: as long as "the number of objects exceeds the number of containers," conflict or repetition is unavoidable, without needing to know the specific distribution.

Practice

In progress 0/5

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Among 13 people, there must be two who share the same birth month (12 months as 12 containers). Among any 367 people, there must be two with the same birthday. In hash tables, if the number of keys exceeds the number of buckets, a hash collision is guaranteed, also ensured by this principle.

Common pitfalls

  • Mistakenly thinking it can point out which container will repeat—the pigeonhole principle only guarantees existence, not location. It is also often underestimated as "obvious" and useless, but in reality it is crucial in combinatorial proofs and lower bound analysis.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Pigeonhole_principleZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS