Lesson
The theory — The Pigeonhole Principle
The pigeonhole principle: if N things are put into k boxes and N > k, some box holds at least two. More precisely, some box holds at least ⌈N/k⌉, the smallest whole number that is at least N/k.
What each symbol means
N- the number of things placed
k- the number of boxes
⌈N/k⌉- N/k rounded up: the least the fullest box must hold
Where the formula comes from
- Why ⌈N/k⌉. If every box held fewer than N/k things, the k boxes together would hold fewer than k × N/k = N, yet they hold all N. So some box holds at least N/k, and since it holds a whole number of things, at least ⌈N/k⌉. Five links in two colours give ⌈5/2⌉ = 3 of one colour; sixteen links in three colours give ⌈16/3⌉ = 6.
- Choosing the boxes for the divisors. Every whole number is, in exactly one way, an odd number times a power of 2, m × 2ᵃ; put it in box m. Two numbers in one box are m × 2ᵃ and m × 2ᵇ with a < b, and the first divides the second. The odd numbers from 1 to 2n are 1, 3, …, 2n − 1, which is n boxes, so n + 1 picks force two into one box. The bound is exact: n + 1, …, 2n are n numbers, one per box, and none divides another, because doubling the smallest of them already passes 2n.
- From equal sums to disjoint groups. Two different groups A and B with the same sum may share some numbers. Remove the shared numbers from both: each sum drops by the same amount, so the sums stay equal. Neither group becomes empty, because if A sat inside B, B would have the larger sum, all the numbers being positive. What is left is two disjoint, non-empty groups with equal sums, and that is what the page draws.
Problem solved in full
-
How many people force a one-colour triangle with three colours? 4 steps
Each pair of people is now friends, strangers or rivals: three colours instead of two. How many people guarantee three who are all linked in a single colour?
-
With two colours, the page’s argument starts from one person’s links:
-
With three colours, take one person among 17. Their 16 links fall into three colours:
-
If any two of those six are linked in that same colour, they and the first person make a one-colour triangle:
-
If none are, the six use only the other two colours, and the page’s six-person party already guarantees a triangle among them:
Answer
Seventeen people are always enough, and Greenwood and Gleason showed in 1955 that sixteen are not: they coloured sixteen people’s links in three colours with no one-colour triangle. With four colours nobody knows the answer; it lies between 51 and 62.
-
Learning path
Methods of proof
References (5)
- The party problem solved exactly as this page solves it, the pentagon with red sides and blue diagonals for five and one person's five links for six, and Theorem 4, three colours need exactly 17 people, which is the worked problem: R. E. Greenwood and A. M. Gleason, "Combinatorial Relations and Chromatic Graphs", Canadian Journal of Mathematics 7, 1–7 (1955).
- The equal-sums problem as it was set, ten distinct two-digit numbers, with the count of 1,023 groups against sums of at most 945: 14th International Mathematical Olympiad, 1972, Problem 1; problem and solution in J. Scholes's IMO archive (Kalva).
- Why nine two-digit numbers cannot escape either: nine numbers with all their subset sums different need one at least as large as 161: OEIS Foundation, "A276661: Least k such that there is a set S in {1, 2, ..., k} with n elements and the property that each of its subsets has a distinct sum", The On-Line Encyclopedia of Integer Sequences.
- Three colours are settled at 17; four are not, and the answer lies between 51 and 62: OEIS Foundation, "A003323: Multicolor Ramsey numbers R(3,3,...,3), where there are n 3's", The On-Line Encyclopedia of Integer Sequences.
- The principle stated and used, including its generalised form, ⌈N/k⌉ in some box: E. Lehman, F. T. Leighton and A. R. Meyer, Mathematics for Computer Science, MIT, revised 6 June 2018, §15.8, The Pigeonhole Principle.