Olympiad Maths Prep

Track / Stage 7 / 280 of 300 #1680 of 2000

Problem 1680

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.8 Prove it

For a nonzero integer kk, denote by ν2(k)\nu_2(k) the maximal nonnegative integer tt such that 2tk2^t \mid k. Given are n(2)n (\ge 2) pairwise distinct integers a1,a2,,ana_1, a_2, \ldots, a_n. Show that there exists an integer xx, distinct from a1,,ana_1, \ldots, a_n, such that among ν2(xa1),,ν2(xan)\nu_2(x - a_1), \ldots, \nu_2(x - a_n) there are at least n/4n/4 odd numbers and at least n/4n/4 even numbers.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. **Define the problem in terms of ν2 \nu_2 :**
For a nonzero integer k k , denote by ν2(k) \nu_2(k) the maximal nonnegative integer t t such that 2tk 2^t \mid k . Given n n pairwise distinct integers a1,a2,,an a_1, a_2, \ldots, a_n , we need to show that there exists an integer x x , distinct from a1,,an a_1, \ldots, a_n , such that among ν2(xa1),,ν2(xan) \nu_2(x - a_1), \ldots, \nu_2(x - a_n) there are at least n/4 n/4 odd numbers and at least n/4 n/4 even numbers.

2. Strategy:
We will determine x x modulo 2 2 , then 4 4 , 8 8 , and so on. We will create two buckets, one labeled "even" and the other labeled "odd". If at some point ν2(xai) \nu_2(x - a_i) is determined, then place it in the bucket labeled with its parity.

3. Inductive Step:
Suppose we have decided that xr(mod2m1) x \equiv r \pmod{2^{m-1}} and want to determine it modulo 2m 2^m . We choose between r r and r+2m1 r + 2^{m-1} . 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 4n 4n pebbles and two boxes labeled 1 1 and 1 -1 respectively. On the n n -th turn, Alice partitions the remaining pebbles into two groups, and Bob chooses one of them and places them in the box labeled (1)n (-1)^n . 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 n n pebbles.

5. Inequality Maintenance:
Bob plays such that he always ensures the inequality:
5nb2an -5n \le b - 2a \le n
where a a is the number of pebbles in the box (1)n (-1)^n and b b is the number of pebbles in the box (1)n -(-1)^n .

6. Verification:
To show that Bob can always play such that this inequality holds, consider the following:
- Suppose we had 5nb2an -5n \le b - 2a \le n and say the partition is x x and 4nabx 4n - a - b - x .
- If the inequalities fail on the same side (upper or lower bound), we need:
a2(b+x)>nanda2(4nax)>n a - 2(b + x) > n \quad \text{and} \quad a - 2(4n - a - x) > n
Adding these, we get:
b2a<5n b - 2a < -5n
which is a contradiction.
- Similarly, if we had:
a2(b+x)<5nanda2(4nax)<5n a - 2(b + x) < -5n \quad \text{and} \quad a - 2(4n - a - x) < -5n
Adding these, we get:
b2a>n b - 2a > n
which is also a contradiction.
- The only way this fails is if we have:
a2(b+x)>nanda2(4nax)<5n a - 2(b + x) > n \quad \text{and} \quad a - 2(4n - a - x) < -5n
This gives:
3a+2x<3n<3(a2b2x)=3a6b6x 3a + 2x < 3n < 3(a - 2b - 2x) = 3a - 6b - 6x
so:
6b+8x<0 6b + 8x < 0
which is a contradiction again. Therefore, Bob can indeed play such that this always holds.

7. Conclusion:
At the end, we have a+b=4n a + b = 4n , so:
b2(4nb)n    b3n b - 2(4n - b) \le n \implies b \le 3n
Thus, a a has at least n n pebbles. Similarly:
4na2a5n    a3n 4n - a - 2a \ge -5n \implies a \le 3n
so b b has at least n n pebbles too. Hence, we are done.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.