Minimum Subset of {1..200} Forcing Two Numbers Differing by 12

Board: Olympiad | Grade: Olympiad | Chapter: Pigeonhole Principle

Problem

Find the smallest positive integer $n$ such that any subset of ${1, 2, \dots, 200}$ of size $n$ must contain two elements whose difference is $12$.

Step-by-Step Textbook Solution

Partition $S = {1, 2, \dots, 200}$ into $12$ disjoint arithmetic progressions modulo $12$: $$C_r = {x \in S : x \equiv r \pmod{12}}, \quad r = 1, 2, \dots, 12.$$ Notice that two elements in $S$ differ by $12$ if and only if they are consecutive terms in the same progression $C_r$.

Compute the length of each progression using $200 = 12 \times 16 + 8$:

  • For $r = 1, 2, \dots, 8$: $|C_r| = 17$ (e.g., $C_1 = {1, 13, 25, \dots, 193}$).
  • For $r = 9, 10, 11, 12$: $|C_r| = 16$ (e.g., $C_{12} = {12, 24, \dots, 192}$).

In an arithmetic progression of length $L$, we can choose at most $\lceil L/2 \rceil$ elements without picking two consecutive terms:

  • From each of the $8$ chains of length $17$, we can pick at most $\lceil 17/2 \rceil = 9$ elements (the $1\text{st}, 3\text{rd}, \dots, 17\text{th}$ terms).
  • From each of the $4$ chains of length $16$, we can pick at most $\lceil 16/2 \rceil = 8$ elements (the $1\text{st}, 3\text{rd}, \dots, 15\text{th}$ terms).

Hence the maximum number of elements in $S$ with no difference of $12$ is: $$8 \times 9 + 4 \times 8 = 72 + 32 = 104.$$ To verify via the Pigeonhole Principle, pair adjacent elements in each chain:

  • Each length-$17$ chain splits into $8$ adjacent pairs plus $1$ leftover singleton ($9$ pigeonholes).
  • Each length-$16$ chain splits into $8$ adjacent pairs ($8$ pigeonholes). This partitions $S$ into $8(9) + 4(8) = 104$ pigeonholes, where every $2$-element pigeonhole consists of two numbers differing by $12$. By the Pigeonhole Principle, choosing $105$ elements forces at least one pigeonhole to receive $2$ elements, giving a difference of $12$.

Thus $n =$ $105$.

NityaDhi Solution (Intuitive Method)

Use the Modular Block Parity Trick: When avoiding difference $d = 12$, color numbers in blocks of $24$: ${1..12}$ Red, ${13..24}$ Blue, ${25..36}$ Red, etc. Notice two numbers differing by $12$ always have opposite colors! Wait—picking all Red numbers gives a valid avoiding set! Let's count Red numbers in $1..200$:

  • $200 = 24 \times 8 + 8$.
  • Each full $24$-block has $12$ Red numbers: $8 \times 12 = 96$.
  • The remaining $8$ numbers ($193..200$) are all in the first half of the $9\text{th}$ $24$-block, so all $8$ are Red! Total Red $= 96 + 8 = 104$, which achieves the theoretical maximum, so $n = 104 + 1 =$ $105$!

Common Mistakes to Avoid

  • Assuming the maximum avoiding set is $\lfloor 200/2 \rfloor = 100$: Because $200$ is not divisible by $24$, the leftover $8$ numbers all fall into the "kept" block of size $12$, boosting the avoiding set from $100$ to $104$.
  • Forgetting that $12$ is not prime: Unlike $a+b \equiv 0$, difference $12$ decomposes cleanly into $12$ independent chains regardless of whether $12$ is composite.