Maths Olympiad Prep

Track / Stage 9 / 45 of 52 #2565 of 2604

Problem 2565

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

Fix an integer n≥2n \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<a1≤a2≤⋯≤an1 < a_1 \le a_2 \le \dots \le a_n, and M=12n(a1−1)a2…anM = \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 1≤i<j≤M1 \le i < j \le M, there exists k∈{1,2,…,n}k \in \{1, 2, \dots, n\} such that
ci,k−cj,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, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

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 2r∣a1−12^r \mid a_1 - 1. (∗)(*)

We first verify the necessity of (∗)(*). For this, we drop the condition an≥an−1≥⋯≥a1a_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 s∈Zs \in \mathbb{Z}, denote Bs={i∣1≤i≤M,ci,n≡s(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+1∣≥Man/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 (n−1)(n-1)th coordinates modulo an−1a_{n-1}, the (n−2)(n-2)th coordinates modulo an−2a_{n-2}, etc., it eventually shows that there are at least Man2…a22=a1−12\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 2≤k≤n2 \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 a1−12\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 Man2…at2\frac{M}{\frac{a_n}{2} \dots \frac{a_t}{2}} different tuples. In particular, taking t=r+1t = r + 1 leads to
Man2…ar+12=12r(a1−1)a2…ar∈Z. \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 2r∣a1−12^r \mid a_1 - 1.

In the following, we construct the needed MM tuples under the condition 2r∣a1−12^r \mid a_1 - 1. For convenience, we first weaken the condition an≥an−1≥⋯≥a1a_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,…,an−1a_1, \dots, a_{n-1}, say (ci,1,ci,2,…,ci,n−1)(c_{i,1}, c_{i,2}, \dots, c_{i,n-1}) with 1≤i≤M′=12n−1(a1−1)a2…an=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,n−1,2c)(c_{i,1}, c_{i,2}, \dots, c_{i,n-1}, 2c) with 1≤i≤M′1 \le i \le M' and 1≤c≤an21 \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=ta1n−1M = t a_1^{n-1}. Define the function f(x1,x2,…,xn−1)=∑i=1n−12ixif(x_1, x_2, \dots, x_{n-1}) = \sum_{i=1}^{n-1} 2^i x_i and take the following M=ta1n−1M = t a_1^{n-1} tuples:
(x1,x2,…,xn−1,f(x1,…,xn−1)+2ns), (x_1, x_2, \dots, x_{n-1}, f(x_1, \dots, x_{n-1}) + 2^n s),
where x1,…,xn−1∈{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′,…,xn−1′,f(x1′,…,xn−1′)+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
xi−xi′≡0,±1(moda1),i=1,…,n−1; and x_i - x'_i \equiv 0, \pm 1 \pmod{a_1}, \quad i = 1, \dots, n-1; \text{ and}
∑i=1n−12i−1(xi−xi′)+2n(s−s′)≡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=1n−12i(xi−xi′)\sum_{i=1}^{n-1} 2^i(x_i - x'_i) can be only congruent to 2n−1−1,2n−2−1,…,1−2n−1(moda1)2^{n-1} - 1, 2^{n-2} - 1, \dots, 1 - 2^{n-1} \pmod{a_1}. On the other hand, s−s′∈{1−t,2−t,…,t−1}s - s' \in \{1 - t, 2 - t, \dots, t - 1\}. So ss is forced to be equal to s′s' by (∗)(*), and ∑i=1n−12i−1(xi−xi′)=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,a2−2,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(a1−1)(a2−2)a3⋯anM' = \frac{1}{2^n}(a_1 - 1)(a_2 - 2)a_3 \cdots a_n tuples as desired when a1′=a1,a2′=a2−2,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,…,ak′−1}\{0, 1, \dots, a'_k - 1\}.

We then define the M=12n(a1−1)a2a3⋯anM = \frac{1}{2^n}(a_1 - 1)a_2a_3 \cdots a_n tuples as follows. One can first choose the M′M' tuples that are already defined. As for x2=a2−2x_2 = a_2 - 2, we choose to add the tuple (x1,a2−2,x3,…,xn)(x_1, a_2 - 2, x_3, \dots, x_n) if and only if the tuple (x1,a2−4,x3,…,xn)(x_1, a_2 - 4, x_3, \dots, x_n) was selected; and for x2=a2−1x_2 = a_2 - 1, we choose to add the tuple (x1,a2−1,x3,…,xn)(x_1, a_2 - 1, x_3, \dots, x_n) if and only if the tuple (x1,a2−3,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 2r∣a1−12^r|a_1 - 1 by induction, the condition for equality implies the following: Among the M′M' tuples we have selected before, the number of tuples whose second coordinate is either a2−1a_2 - 1 or a2−2a_2 - 2 is M′⋅2a2−2M' \cdot \frac{2}{a_2-2}. Hence we can the number of new tuples is M′+M′⋅2a2−2=MM' + M' \cdot \frac{2}{a_2-2} = M. This completes the construction of the tuples.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.