Maths Olympiad Prep

Library / /20 of 23

, 2003

Combinatorics Difficulty 8.9 Shortlist Prove it United States

For a pair of integers aa and bb, with 0<a<b<10000 < a < b < 1000, the set S{1,2,,2003}S \subseteq \{1, 2, \dots, 2003\} is called a skipping set for (a,b)(a, b) if for any pair of elements s1,s2Ss_1, s_2 \in S, s1s2{a,b}|s_1 - s_2| \notin \{a, b\}. Let f(a,b)f(a, b) be the maximum size of a skipping set for (a,b)(a, b). Determine the maximum and minimum values of ff.

Solution

The maximum and minimum values of ff are 13341334 and 668668, respectively.

a. First, we will show that the maximum value of ff is 13341334. The set S={1,2,,667}{1336,1337,,2002}S = \{1, 2, \dots, 667\} \cup \{1336, 1337, \dots, 2002\} is a skipping set for (a,b)=(667,668)(a, b) = (667, 668), so f(667,668)1334f(667, 668) \ge 1334.

Now we prove that for any 0<a<b<10000 < a < b < 1000, f(a,b)1334f(a, b) \le 1334. Because aba \ne b, we can choose d{a,b}d \in \{a, b\} such that d668d \ne 668. We assume first that d669d \ge 669. Then consider the 2003d13342003 - d \le 1334 sets {1,d+1},{2,d+2},,{2003d,2003}\{1, d+1\}, \{2, d+2\}, \dots, \{2003-d, 2003\}. Each can contain at most one element of SS, so S1334|S| \le 1334.

We assume second that d667d \le 667 and that 2003a\lceil \frac{2003}{a} \rceil is even, that is, 2003a=2k\lceil \frac{2003}{a} \rceil = 2k for some positive integer kk. Then each of the congruence classes of 1,2,,20031, 2, \dots, 2003 modulo aa contains at most 2k2k elements. Therefore at most kk members of each of these congruence classes can belong to SS. Consequently,
Ska<12(2003a+1)a=2003+a21335, \begin{aligned} |S| &\le ka < \frac{1}{2} \left( \frac{2003}{a} + 1 \right) a = \frac{2003 + a}{2} \\ &\le 1335, \end{aligned}
implying that S1334|S| \le 1334.

Finally, we assume that d667d \le 667 and that 2003a\lceil \frac{2003}{a} \rceil is odd, that is, 2003a=2k+1\lceil \frac{2003}{a} \rceil = 2k + 1 for some positive integer kk. Then, as before, SS can contain at most kk elements from each congruence class of {1,2,,2ka}\{1, 2, \dots, 2ka\} modulo aa. Then
Ska+(20032ka)=2003ka=2003(2003a21)a2003(2003a12)a=2003+a21335. \begin{align*} |S| &\le ka + (2003 - 2ka) = 2003 - ka \\ &= 2003 - \left( \frac{\left\lfloor \frac{2003}{a} \right\rfloor}{2} - 1 \right) a \\ &\le 2003 - \left( \frac{\frac{2003}{a} - 1}{2} \right) a \\ &= \frac{2003 + a}{2} \le 1335. \end{align*}
The last inequality holds if and only if a=667a = 667. But if a=667a = 667, then 2003a\frac{2003}{a} is not an integer, and so the second inequality is strict. Thus, S1334|S| \le 1334. Therefore the maximum value of ff is 13341334.

b. We will now show that the minimum value of ff is 668668. First, we will show that f(a,b)668f(a, b) \ge 668 by constructing a skipping set SS for any (a,b)(a, b) with S668|S| \ge 668. Note that if we add xx to SS, then we are not allowed to add xx, x+ax+a, or x+bx+b to SS at any later time. Then at each step, let us add to SS the smallest element of {1,2,,2003}\{1, 2, \dots, 2003\} that is not already in SS and that has not already been disallowed from being in SS. Then since adding this element prevents at most three elements from being added at any future time, we can always perform this step 20033=668\lceil \frac{2003}{3} \rceil = 668 times. Thus, S668|S| \ge 668, so f(a,b)668f(a, b) \ge 668.

Now notice that if we let a=1,b=2a = 1, b = 2, then at most one element from each of the 668668 sets {1,2,3},{4,5,6},,{1999,2000,2001},{2002,2003}\{1, 2, 3\}, \{4, 5, 6\}, \dots, \{1999, 2000, 2001\}, \{2002, 2003\} can belong to SS. This implies that f(1,2)=668f(1, 2) = 668, so indeed the minimum value of ff is 668668.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.