MathorynMathematical Formula Database

Combinatorics

Pigeonhole Principle

If nn objects are placed in kk boxes, at least one box contains at least ⌈n/k⌉\lceil n/k\rceil objects. This simple principle is used to prove existence results, such as two people in any group of 1313 sharing a birth month.

n objects in k boxes ⇒ some box has at least ⌈nk⌉n\ \text{objects in}\ k\ \text{boxes}\ \Rightarrow\ \text{some box has at least}\ \left\lceil\frac nk\right\rceil
LaTeXn\ \text{objects in}\ k\ \text{boxes}\ \Rightarrow\ \text{some box has at least}\ \left\lceil\frac nk\right\rceil

Variables

nn
number of objects
kk
number of boxes
⌈⋅⌉\lceil\cdot\rceil
ceiling (round up)

Example

Among 100100 people, how many at least share a birth month?

  1. n=100, k=12n=100,\ k=12.
  2. ⌈10012⌉=⌈8.33⌉\left\lceil\frac{100}{12}\right\rceil=\lceil8.33\rceil.

Answer: At least 99 people.

Related formulas