Maths Olympiad Prep

Track / Stage 7 / 159 of 300 #2039 of 2444

Problem 2039

National Olympiad second round; IMO P1/P4
Algebra Difficulty 7.5 Prove it Italy competition problems · Italy

A mysterious machine contains a secret combination consisting of 2016 integers x1,,x2016x_{1}, \ldots, x_{2016}. We know that all the numbers in the combination are equal except one. It is possible to query the machine by submitting to it a sequence of 2016 integers y1,,y2016y_{1}, \ldots, y_{2016}. The machine answers by revealing the value of the sum

x1y1++x2016y2016. x_{1} y_{1}+\cdots+x_{2016} y_{2016} \text{.}

After answering the first question, the machine accepts a second question, then a third, and so on. How many questions are necessary to determine the combination:
(a) knowing that the different number is equal to zero?
(b) not knowing which is the different number?

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

Solution:

The answer to both requests of the exercise is two questions. To completely solve the exercise it suffices to exhibit a method for determining the combination in two questions, and to show that, even knowing that the different number is zero, one question is not sufficient. For illustrative purposes, we will also give a simpler method to solve specifically part (a).

In what follows, we will denote by uu and dd the values of the equal number and of the different number respectively, and by tt the index of the different number (that is, xt=dx_{t}=d and xi=ux_{i}=u for iti \neq t). Given a question y1,,y2016y_{1}, \ldots, y_{2016}, we observe that the answer is (Σyt)u+ytd\left(\Sigma-y_{t}\right) u+y_{t} d, where Σ\Sigma denotes the sum of the numbers of the question y1++y2016y_{1}+\cdots+y_{2016}.

METHOD FOR PART (a).
As the first question, we submit to the machine the numbers 1,,11, \ldots, 1. In this way the machine will answer 2015u2015 u, from which we can obtain the value of uu. Now we still need to figure out what the index tt is. The second question is 1,2,3,,20161,2,3, \ldots, 2016. We obtain the answer (Σt)u(\Sigma-t) u, with Σ=1+2++2016\Sigma=1+2+\cdots+2016. Observing that uu cannot be zero (because the two numbers of the combination are different), it is immediate to obtain tt.

ONE QUESTION IS NOT ENOUGH.
We must show that for every possible question there exist two different combinations that give the same answer. Consider a question y1,,y2016y_{1}, \ldots, y_{2016} (with sum Σ\Sigma). If two of these numbers are equal to each other, yi=yjy_{i}=y_{j}, then the two combinations that have equal number 1 and different number 0 in position ii and jj respectively produce the same answer. Hence we may assume that the numbers of the question are all different. In particular, we can take iji \neq j such that yiy_{i} and yjy_{j} are different from Σ\Sigma. Suppose that the combination is xi=0x_{i}=0 and xk=Σyjx_{k}=\Sigma-y_{j} for kik \neq i. The answer, then, would be (Σyi)(Σyj)\left(\Sigma-y_{i}\right)\left(\Sigma-y_{j}\right). One sees that the combination with ii and jj swapped (xj=0x_{j}=0 and xk=Σyix_{k}=\Sigma-y_{i} for kjk \neq j) would give the same answer.

METHOD FOR PART (b).
The first question is 1,1,1,1,1,-1,1,-1, \ldots, and we call RR the answer. We observe that, setting Δ=ud\Delta=u-d, we have R=(1)tΔR=(-1)^{t} \Delta. Now we choose the second question y1,,y2016y_{1}, \ldots, y_{2016} in such a way that:
(1) the numbers RR and Σ=y1++y2016\Sigma=y_{1}+\cdots+y_{2016} are coprime (and Σ\Sigma is nonzero);
(2) the numbers yi(1)iy_{i}(-1)^{i} are pairwise non-congruent modulo Σ\Sigma.
For example, these conditions are satisfied by choosing y1=1y_{1}=1 and yi=Riy_{i}=|R| i for i>1i>1 (note that Δ0\Delta \neq 0, hence R0R \neq 0). The answer that we obtain, then, is
R=(Σyt)u+ytd=ΣuytΔ=Σuyt(1)tR. R' = (\Sigma-y_{t}) u + y_{t} d = \Sigma u - y_{t} \Delta = \Sigma u - y_{t}(-1)^{t} R \text{.}
From this answer we can deduce the class of yt(1)tRy_{t}(-1)^{t} R modulo Σ\Sigma. Since RR and Σ\Sigma are coprime, the class of yt(1)ty_{t}(-1)^{t} modulo Σ\Sigma is also uniquely determined. By construction, however, the numbers yi(1)iy_{i}(-1)^{i} are pairwise non-congruent modulo Σ\Sigma, consequently, knowing the class of yt(1)ty_{t}(-1)^{t}, we can deduce tt. Once tt is known, it is immediate to compute uu from the equation for RR' written above, then Δ\Delta from R=(1)tΔR=(-1)^{t} \Delta, and finally dd.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty, ordering) added by this project.