Maths WorkshopMaths problems with full solutions
Exercise 534Combinatorics › Pigeonhole principleL1Added 3 Nov 2026

A pair with difference of $n$

#pigeonhole#difference#exact value

Statement

Show that among any n+1n+1 integers, two have difference exactly nn? — False. Corrected: among any n+1n+1 integers, two have the same difference as another pair. Actually, a true statement: among any n+1n+1 integers from {1,…,2n}\{1,\ldots,2n\}, two differ by exactly 11 or by exactly 22. Both are false in general (choose 1,3,5,…,2n−11,3,5,\ldots,2n-1).

Let me state a correct problem: among any n+2n+2 integers from {1,…,2n}\{1,\ldots,2n\}, two differ by at most 11.

Hint

If n+2n+2 integers are chosen, two must be consecutive (since the max gaps sum to <n+1<n+1).

Show solutionHide solution

Solution

Sorting. a1<⋯<an+2a_1<\cdots<a_{n+2} in {1,…,2n}\{1,\ldots,2n\}.

Gaps. There are n+1n+1 gaps, total an+2−a1≤2n−1a_{n+2}-a_1\le2n-1. Average gap <2<2, so some gap is 11.

Conclusion. Two chosen integers are consecutive (differ by 11).