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

$\{1,2,3,\ldots\}$ and pairwise differences

#pigeonhole#difference#arithmetic

Statement

Show that among any n+1n+1 integers from {1,…,2n}\{1,\ldots,2n\}, some two have the same difference as another pair.

Hint

There are (n+12)\binom{n+1}{2} pairs among n+1n+1 integers, and differences are in {1,…,2n−1}\{1,\ldots,2n-1\}. This is not immediately pigeonhole.

Show solutionHide solution

Solution

Pairs. n+1n+1 integers give (n+12)=n(n+1)2\binom{n+1}{2}=\frac{n(n+1)}{2} pairs.

Differences. Each difference is in {1,…,2n−1}\{1,\ldots,2n-1\}.

Bound. n(n+1)2\frac{n(n+1)}{2} vs 2n−12n-1: for n≥3n\ge3, n(n+1)2>2n−1\frac{n(n+1)}{2}>2n-1. So two pairs share the same difference.

Conclusion. Some two pairs have the same difference.