Objects, Boxes, and Guarantees
Section titled “Objects, Boxes, and Guarantees”The pigeonhole principle says that placing more than objects into boxes forces some box to contain at least two objects. More generally, placing objects into boxes forces a box with at least
objects. If every box had fewer, their total capacity would be too small.
The work in a contest problem is usually choosing what the objects and boxes represent. A box can be a remainder class, an interval, a pair, a region, or a possible value of an expression.
Example. What is the smallest number of people needed to guarantee that at least four have birthdays in the same month?
Twelve months can each hold three people without meeting the target, for a total of . The next person forces a fourth birthday in one month. Thus people are necessary and sufficient for the guarantee.
To prove a threshold is smallest, give both the guarantee and an example below the threshold that avoids it.
Pairing Boxes
Section titled “Pairing Boxes”Sometimes each box should hold a carefully chosen group rather than a single possible value. Choose the groups so that sharing a box gives the desired relation immediately.
Example. Prove that any six distinct numbers chosen from include two whose sum is .
Partition the set into five boxes:
Six choices force two into the same box, and those two sum to . Five choices do not guarantee this: contains no such pair.
Remainders and Partial Sums
Section titled “Remainders and Partial Sums”Modulo , there are only possible remainders. If two integers have the same remainder, their difference is divisible by .
Example. Prove that among any eight integers, two have a difference divisible by .
Place each integer into its remainder class modulo . There are seven classes and eight integers, so two share a remainder. Their difference is a multiple of .
For a consecutive block of terms, use partial sums so that a difference corresponds to the block’s sum.
Example. Prove that any sequence of integers has a nonempty consecutive block whose sum is divisible by .
Define and for . These are integers but only remainder classes modulo . Thus for some . Their difference is
Because , this block is nonempty.
Including avoids a separate case for a partial sum that is itself divisible by .
Geometric Boxes
Section titled “Geometric Boxes”Partition a region into smaller pieces whose diameter is controlled. Two points in one piece must then be close. Specify boundary assignments so every point belongs to exactly one piece.
Example. Five points lie in a unit square. Prove that two are at distance at most .
Divide the square into four squares of side , assigning points on dividing lines to one adjacent square consistently. Two points share a small square. Its diagonal is
which bounds the distance between those points.
For numbers in an interval, dividing the interval into equal subintervals gives an analogous closeness argument. Endpoints matter if the desired conclusion uses a strict inequality.
Choosing an Extremal Object
Section titled “Choosing an Extremal Object”An extremal argument starts with a largest or smallest object, which forces additional structure. Combining that choice with pigeonhole can reveal boxes that were not obvious at first.
Example. Prove that among any distinct numbers chosen from , one divides another.
Write each chosen number uniquely as , where is odd. Use its odd part as its box label. There are only possible odd parts in the range, namely .
Two selected numbers therefore share an odd part: and . Their exponents are different because the numbers are distinct. If , then divides .
The useful representation here comes from repeatedly removing powers of two until the number is odd. Grouping by ordinary remainders would not directly give divisibility.
Proving a Bound Is Sharp
Section titled “Proving a Bound Is Sharp”A guarantee and a best possible guarantee are different claims. To prove a threshold is sharp, first show that crossing it forces the desired configuration, then construct an example at the threshold that avoids it. A construction is not an optional illustration; it is half of a sharp-bound solution.
For example, choosing numbers from forces a divisible pair by the odd-part argument. The threshold cannot be reduced to because the set has no divisible pair: twice any member already exceeds .
The counterexample often suggests the right boxes. If the extremal construction takes exactly one object from each group, those groups may be the boxes needed for the proof. Try to understand why one more choice creates a conflict.
Example. Prove that choosing distinct numbers from forces a coprime pair.
Use the boxes . Two chosen numbers occupy the same box and are consecutive. A common divisor of consecutive integers divides their difference one, so they are coprime.
The example of all even numbers gives choices with no coprime pair when , so the guarantee is sharp in that range.
The same number of objects can require very different boxes depending on the conclusion. Odd parts reveal divisibility; consecutive pairs reveal coprimality. Choosing boxes by habit rather than by the target relation is a common reason a pigeonhole attempt stalls.
Subset-Sum Collisions
Section titled “Subset-Sum Collisions”Sometimes the objects should be subsets rather than the original numbers. If many subsets have only a small range of possible sums, two must share a sum. Removing their common elements can turn an equality between overlapping subsets into an equality between disjoint collections.
Example. Ten positive integers are each at most one hundred. Prove that two disjoint nonempty collections of their positions have equal sums.
There are subsets of the ten positions, including the empty subset. Every subset sum is an integer between zero and one thousand, giving at most boxes. Two different subsets therefore have equal sums.
Remove every position common to both subsets. The remaining collections are disjoint and still have equal sums. Neither can be empty: if one were empty and the other nonempty, positivity would make their sums different. Thus both are nonempty.
The positivity assumption is used only at the last step, but it is essential there. With arbitrary signed integers, a nonempty zero-sum subset could collide with the empty subset. That might still prove a useful statement, but it is a different conclusion.
The general counting principle is that subset objects exceed the number of possible sum values. Estimate the range first; if it is too large, try fixed-size subsets, residues, or a different statistic rather than assuming the collision is automatic.
Fractional Parts and Rational Approximation
Section titled “Fractional Parts and Rational Approximation”For a real number , write for its fractional part in . Two nearby fractional parts imply that the corresponding original values differ by nearly an integer.
This turns geometric interval boxes into an approximation theorem. Divide into half-open intervals of length and consider
Two of these values share an interval. Their indices differ by some with , and their difference shows that for an integer ,
Equivalently, . This is a basic form of Dirichlet approximation. The denominator bound comes directly from the index difference.
Example. Prove that some integer between one and ten satisfies for an integer , and exhibit one such pair.
Apply the fractional-part argument with . It guarantees a pair without locating it. For a concrete choice, take :
The pigeonhole proof gives existence, while rationalization verifies the chosen witness exactly.
Increasing and Decreasing Subsequences
Section titled “Increasing and Decreasing Subsequences”A subsequence keeps the original order but may skip entries. For distinct real numbers, a long enough sequence must have a long increasing or decreasing subsequence.
Suppose a sequence has distinct entries. For entry , let be the length of the longest increasing subsequence ending there and the analogous decreasing length. If no increasing subsequence has length and no decreasing one has length , every pair lies in
There are only boxes. Two entries cannot have the same pair: if and , then ; if , then . Pigeonhole therefore gives a contradiction. This proves the Erdős–Szekeres subsequence theorem.
Example. Show that seventeen distinct real numbers in a row contain an increasing or decreasing subsequence of length five, and show that sixteen do not suffice.
Use , since . For sharpness, consider
An increasing subsequence uses at most one number from each block, so has length at most four. A decreasing subsequence cannot cross from an earlier block to a later block because every later value is larger; it also has length at most four.
This argument illustrates a powerful trick: attach a structured label to each object. The boxes do not need to be simple remainders; a pair of extremal statistics can be the right encoding.
A Small Zero-Sum Selection
Section titled “A Small Zero-Sum Selection”Pigeonhole can sometimes force a sum involving a prescribed number of terms. The residue counts matter, not merely the existence of two equal residues.
Example. Prove that among any five integers, three have a sum divisible by three.
Sort the integers into their three residue classes. If a class contains at least three integers, choose those three; their sum is zero modulo three.
Otherwise every class has at most two integers. Since there are five integers altogether, all three classes must be nonempty. Choose one from each class; their residues sum to , again giving a multiple of three.
The case split handles both ways the objects can be distributed. This is stronger than simply observing that some residue class contains two integers, which does not yet supply a three-term sum.
Pigeonhole with Impossible Extreme Boxes
Section titled “Pigeonhole with Impossible Extreme Boxes”A nominal list of possible values may contain values that cannot occur together. Removing that incompatibility can reduce the number of boxes by one and make the principle work.
Example. In any group of people, acquaintance is mutual. Prove two people have the same number of acquaintances within the group.
Each count is between zero and . However, a person knowing nobody and a person knowing everybody cannot both exist: the latter would know the former. Thus either zero or is absent, leaving at most possible counts for people. Two counts agree.
Sector Boxes in a Disk
Section titled “Sector Boxes in a Disk”Geometric boxes need not be rectangles. If the region is circular, angular sectors can give a stronger distance bound.
Example. Seven points lie in a disk of radius one. Prove two have distance at most one.
Split the disk into six sectors of angle sixty degrees, assigning boundary points consistently. Two points share a sector. Let their distances from the center be and their angular separation be .
Their squared distance is . This quadratic reaches its maximum on the square at a corner: fixing either variable makes it convex in the other. The four corner values are zero, one, one, one.
Thus the squared distance is at most one, proving the claim.
The diameter of each chosen box is the property that matters. A sector’s arc length is not its diameter, and the arc length alone would not justify the bound. Establish the geometric size of a box before applying pigeonhole.