Olympiad Maths Prep

Track / Stage 9 / 78 of 80 #1958 of 2000

Problem 1958

IMO P2/P5; hard shortlist
Number theory Difficulty 9.2 Prove it 2022 China Team Selection Test for IMO · China · 2022

Fix an integer n2n \ge 2. Find all nn-tuples (a1,a2,,an)(a_1, a_2, \dots, a_n) of integers satisfying the following two conditions:
(1) a1a_1 is odd, 1<a1a2an1 < a_1 \le a_2 \le \dots \le a_n, and M=12n(a11)a2anM = \frac{1}{2^n}(a_1 - 1)a_2 \dots a_n is an integer; and
(2) there exist MM different nn-tuples (ci,1,ci,2,,ci,n)(c_{i,1}, c_{i,2}, \dots, c_{i,n}) with i=1,2,,Mi = 1, 2, \dots, M, such that for all 1i<jM1 \le i < j \le M, there exists k{1,2,,n}k \in \{1, 2, \dots, n\} such that
ci,kcj,k≢1,0,1(modak). c_{i,k} - c_{j,k} \not\equiv -1, 0, 1 \pmod{a_k}.

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

The nn-tuples we seek are the ones satisfying the following condition:
if there are exactly rr odd numbers in a2,,ana_2, \dots, a_n, then 2ra112^r \mid a_1 - 1. ()(*)

We first verify the necessity of ()(*). For this, we drop the condition anan1a1a_n \ge a_{n-1} \ge \dots \ge a_1 and assume that a1,,ara_1, \dots, a_r are odd and ar+1,,ana_{r+1}, \dots, a_n are even. Suppose that we are given the MM tuples satisfying the requirement (2). For each sZs \in \mathbb{Z}, denote Bs={i1iM,ci,ns(modan)}B_s = \{i \mid 1 \le i \le M, c_{i,n} \equiv s \pmod{a_n}\}. Then
B1+B2++Ban=M. |B_1| + |B_2| + \dots + |B_{a_n}| = M.
Consequently, there exists an index ss such that Bs+Bs+1Man/2|B_s| + |B_{s+1}| \ge \frac{M}{a_n/2}. This means that we can choose at least Man/2\frac{M}{a_n/2} tuples such that the differences between their nn-th coordinates ci,nc_{i,n} are all congruent to 00 or ±1\pm 1 modulo ana_n.

By running the same argument for all the tuples inductively, i.e., to consider the (n1)(n-1)th coordinates modulo an1a_{n-1}, the (n2)(n-2)th coordinates modulo an2a_{n-2}, etc., it eventually shows that there are at least Man2a22=a112\frac{M}{\frac{a_n}{2} \dots \frac{a_2}{2}} = \frac{a_1-1}{2} tuples such that for each two of them, the differences between their kkth coordinates ci,kc_{i,k}'s are congruent to 00 or ±1\pm 1 modulo aka_k, where 2kn2 \le k \le n. However, the given conditions imply that the difference between the first coordinates of these tuples can not be 00 or ±1\pm 1 (mod a1a_1); there are at most a112\frac{a_1-1}{2} such tuples. This means that all equalities must hold in the argument above. Namely, for each tt we have exactly Man2at2\frac{M}{\frac{a_n}{2} \dots \frac{a_t}{2}} different tuples. In particular, taking t=r+1t = r + 1 leads to
Man2ar+12=12r(a11)a2arZ. \frac{M}{\frac{a_n}{2} \dots \frac{a_{r+1}}{2}} = \frac{1}{2^r} (a_1 - 1)a_2 \dots a_r \in \mathbb{Z}.
It forces that 2ra112^r \mid a_1 - 1.

In the following, we construct the needed MM tuples under the condition 2ra112^r \mid a_1 - 1. For convenience, we first weaken the condition anan1a1a_n \ge a_{n-1} \ge \dots \ge a_1 to only requiring a1=min{a1,,an}a_1 = \min\{a_1, \dots, a_n\}. Whenever there is any even number in a2,,ana_2, \dots, a_n, say ana_n without loss of generality. Suppose that we may construct the needed tuples for a1,,an1a_1, \dots, a_{n-1}, say (ci,1,ci,2,,ci,n1)(c_{i,1}, c_{i,2}, \dots, c_{i,n-1}) with 1iM=12n1(a11)a2an=2anM1 \le i \le M' = \frac{1}{2^{n-1}}(a_1 - 1)a_2 \dots a_n = \frac{2}{a_n}M. Then it suffices to take (ci,1,ci,2,,ci,n1,2c)(c_{i,1}, c_{i,2}, \dots, c_{i,n-1}, 2c) with 1iM1 \le i \le M' and 1can21 \le c \le \frac{a_n}{2}.

Now it remains to prove for the case when all a2,a3,,ana_2, a_3, \dots, a_n are odd. Let us write a1=2nt+1a_1 = 2^n t + 1 and consider the case when a1=a2==ana_1 = a_2 = \dots = a_n first. In this case, M=ta1n1M = t a_1^{n-1}. Define the function f(x1,x2,,xn1)=i=1n12ixif(x_1, x_2, \dots, x_{n-1}) = \sum_{i=1}^{n-1} 2^i x_i and take the following M=ta1n1M = t a_1^{n-1} tuples:
(x1,x2,,xn1,f(x1,,xn1)+2ns), (x_1, x_2, \dots, x_{n-1}, f(x_1, \dots, x_{n-1}) + 2^n s),
where x1,,xn1{1,2,,a1},s{1,,t}x_1, \dots, x_{n-1} \in \{1, 2, \dots, a_1\}, s \in \{1, \dots, t\}. We now show that these tuples satisfy the desired conditions. Consider the above tuple together with another one: (x1,x2,,xn1,f(x1,,xn1)+2ns)(x'_1, x'_2, \dots, x'_{n-1}, f(x'_1, \dots, x'_{n-1}) + 2^n s'). If for every kk, the difference between their kkth coordinate 0,±1(moda1)\equiv 0, \pm 1 \pmod{a_1}, then
xixi0,±1(moda1),i=1,,n1; and x_i - x'_i \equiv 0, \pm 1 \pmod{a_1}, \quad i = 1, \dots, n-1; \text{ and}
i=1n12i1(xixi)+2n(ss)0,±1(moda1).() \sum_{i=1}^{n-1} 2^{i-1}(x_i - x'_i) + 2^n(s - s') \equiv 0, \pm 1 \pmod{a_1}. \quad (*)
The first equality implies that i=1n12i(xixi)\sum_{i=1}^{n-1} 2^i(x_i - x'_i) can be only congruent to 2n11,2n21,,12n1(moda1)2^{n-1} - 1, 2^{n-2} - 1, \dots, 1 - 2^{n-1} \pmod{a_1}. On the other hand, ss{1t,2t,,t1}s - s' \in \{1 - t, 2 - t, \dots, t - 1\}. So ss is forced to be equal to ss' by ()(*), and i=1n12i1(xixi)=0(moda1)\sum_{i=1}^{n-1} 2^{i-1}(x_i - x'_i) = 0 \pmod{a_1}. By the uniqueness of binary expansion, we get xi=xi(moda1)x_i = x'_i \pmod{a_1}, which implies that the two tuples are the same. This verifies that the constructed tuples satisfy the needed conditions.

For the general case where a1,,ana_1, \dots, a_n are all odd numbers, we claim that if a2>a1a_2 > a_1, the construction can be reduced to the case with a1,a22,a3,,ana_1, a_2-2, a_3, \dots, a_n. Hence by induction, it suffices to consider the case where all aia_i are equal, which is discussed above.

Assume now there exist M=12n(a11)(a22)a3anM' = \frac{1}{2^n}(a_1 - 1)(a_2 - 2)a_3 \cdots a_n tuples as desired when a1=a1,a2=a22,a3=a3,,an=ana'_1 = a_1, a'_2 = a_2 - 2, a'_3 = a_3, \dots, a'_n = a_n. We may assume that for each kk, the kkth coordinates of all these tuples belong the set {0,1,,ak1}\{0, 1, \dots, a'_k - 1\}.

We then define the M=12n(a11)a2a3anM = \frac{1}{2^n}(a_1 - 1)a_2a_3 \cdots a_n tuples as follows. One can first choose the MM' tuples that are already defined. As for x2=a22x_2 = a_2 - 2, we choose to add the tuple (x1,a22,x3,,xn)(x_1, a_2 - 2, x_3, \dots, x_n) if and only if the tuple (x1,a24,x3,,xn)(x_1, a_2 - 4, x_3, \dots, x_n) was selected; and for x2=a21x_2 = a_2 - 1, we choose to add the tuple (x1,a21,x3,,xn)(x_1, a_2 - 1, x_3, \dots, x_n) if and only if the tuple (x1,a23,x3,,xn)(x_1, a_2 - 3, x_3, \dots, x_n) was selected. It is easy to check that these tuples satisfy our requirement. Also, using the proof for 2ra112^r|a_1 - 1 by induction, the condition for equality implies the following: Among the MM' tuples we have selected before, the number of tuples whose second coordinate is either a21a_2 - 1 or a22a_2 - 2 is M2a22M' \cdot \frac{2}{a_2-2}. Hence we can the number of new tuples is M+M2a22=MM' + M' \cdot \frac{2}{a_2-2} = M. This completes the construction of the tuples.

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