Maths WorkshopMaths problems with full solutions
Exercise 1812Combinatorics › Pigeonhole principleOlympiadAdded 3 Nov 2026

Separated integers

#pigeonhole#distance#bounded

Statement

Show that if n+1n+1 distinct integers are chosen from {1,…,2n}\{1,\ldots,2n\}, then some two have difference at most 11. (This is trivial: two must be consecutive.) Prove the stronger: if they are chosen to be pairwise at distance ≥2\ge2, then at most nn can be chosen.

Hint

If pairwise distance ≥2\ge2, then the kk chosen integers satisfy ak≥2k−1a_k\ge2k-1.

Show solutionHide solution

Solution

Sorting. Let a1<a2<⋯<an+1a_1<a_2<\cdots<a_{n+1}. With pairwise distance ≥2\ge2: ak≥2k−1a_k\ge2k-1.

Bound. an+1≥2(n+1)−1=2n+1>2na_{n+1}\ge2(n+1)-1=2n+1>2n. Contradiction.

Conclusion. At most nn pairwise-distant integers can be chosen from {1,…,2n}\{1,\ldots,2n\}.