For a nonzero integer , denote by the maximal nonnegative integer such that . Given are pairwise distinct integers . Show that there exists an integer , distinct from , such that among there are at least odd numbers and at least even numbers.
Problem 1680
Official solution
1. **Define the problem in terms of :**
For a nonzero integer , denote by the maximal nonnegative integer such that . Given pairwise distinct integers , we need to show that there exists an integer , distinct from , such that among there are at least odd numbers and at least even numbers.
2. Strategy:
We will determine modulo , then , , and so on. We will create two buckets, one labeled "even" and the other labeled "odd". If at some point is determined, then place it in the bucket labeled with its parity.
3. Inductive Step:
Suppose we have decided that and want to determine it modulo . We choose between and . Depending on our choice, the ones with the other choice get placed in one of the buckets, and this bucket to which it is placed keeps alternating each time.
4. Game Analogy:
We can use a game analogy to prove the stronger statement. Consider the following game with pebbles and two boxes labeled and respectively. On the -th turn, Alice partitions the remaining pebbles into two groups, and Bob chooses one of them and places them in the box labeled . Suppose Alice can only partition such that one group is empty, finitely many times. We need to prove that Bob can ensure that at the end, each box contains at least pebbles.
5. Inequality Maintenance:
Bob plays such that he always ensures the inequality:
where is the number of pebbles in the box and is the number of pebbles in the box .
6. Verification:
To show that Bob can always play such that this inequality holds, consider the following:
- Suppose we had and say the partition is and .
- If the inequalities fail on the same side (upper or lower bound), we need:
Adding these, we get:
which is a contradiction.
- Similarly, if we had:
Adding these, we get:
which is also a contradiction.
- The only way this fails is if we have:
This gives:
so:
which is a contradiction again. Therefore, Bob can indeed play such that this always holds.
7. Conclusion:
At the end, we have , so:
Thus, has at least pebbles. Similarly:
so has at least pebbles too. Hence, we are done.