Your enemy gets to choose 2000 of the counting numbers from 1 to 3000. Your job is to find a subsequence of 1000 of your enemy's numbers so that they alternate odd, even, odd, even, ... when listed in their natural order. Prove that no matter how clever your enemy might be, you can always succeed. We thank Aart Blokhuis of Eindhoven University of Technology for March's problem. He devised it for the past year's Dutch Mathematical Olympiad. Five correct solutions were submitted this month: Juan Mir Pieras (Spain) Penny Nom (Regina) Alexander Potapenko (Russia) Gordon Turpin (Toronto) Two of these were clever and quite similar, but the others were each clever and quite different from one another. It is interesting to look at all four solutions and see what they have in common.
Solution 1. Submitted independently by Francesco Barioli and Juan Mir Pieras.
Solution 2. Submitted by Gordon Turpin. We choose our subsequence of the adversary's sequence as follows: remove the chosen number immediately following each odd-length sequence of missing numbers. This turns all odd-length missing number sequences into even-length missing number sequences and costs us one chosen number per odd-length to even-length conversion. The shortest odd-length missing number sequence is of length 1. There are 1000 missing numbers in all, so at most 1000 odd-length sequences. Changing all odd-length missing sequences to even-length will thus cause the removal of at most 1000 numbers from the sequence of 2000 chosen by the adversary. We are left with at least 1000 number in odd-even alternation.
Solution 3. Submitted by Alexander Potapenko. For this purpose, we define Yodd to be the average of all odd numbers in the y-sequence, and Yeven to be the average of all even numbers in the y-sequence. Of course, if the y-sequence does not contain any even numbers, then Yeven does not exist, but then a = 2000 and we are done. Otherwise we have Yeven >= 2. And since y1 + y2 + ... + y2000 = x2000 <= 3000, the average of all numbers in the y-sequence is at most 3/2, therefore Yodd <= 3/2. In particular this shows Yodd < Yeven. From the inequality
Solution 4. Submitted by Penny Nom. The rest of her argument goes as follows: Consider a longest subsequence a1, a2, ..., ap alternating between odd and even numbers. Then the terms xi that come before a1 must all have the same parity as a1, so that xi+1 - xi is at least 2. Similarly, the terms xi that come after ap all have the same parity as ap, so that xi - xi-1 is at least 2. From aj to aj+1, the terms xi can switch parity only once (otherwise it would be possible to enlarge our subsequence), so there is at most one term xi - xi-1 equal to 1. Therefore, p - 1 is at least 999, so p is at least 1000.
|