Maths Olympiad Prep

Track / Stage 7 / 205 of 300 #1605 of 1964

Problem 1605

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

1・183 Given any set of nn integers a1,a2,,ana_{1}, a_{2}, \cdots, a_{n}, from it we can obtain a new set: \square
a1+a22,a2+a32,,an1+an2,a1+an2;\frac{a_{1}+a_{2}}{2}, \frac{a_{2}+a_{3}}{2}, \cdots, \frac{a_{n-1}+a_{n}}{2}, \frac{a_{1}+a_{n}}{2};

From this set, according to the same rule, we can obtain a new set \cdots \cdots. Prove that if all the resulting numbers are integers, then all the initial numbers are either equal or equal at alternate positions.

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.

Official solution

[Proof] If the nn initial numbers are not all equal, then after nn steps, the maximum number in this set must decrease, and the minimum number must increase.

Since the maximum and minimum numbers obtained at each step are integers, after a finite number of steps, a set of equal numbers (a,a,,a)(a, a, \cdots, a) can certainly be obtained.

Assume that from a set of numbers z1,z2,,znz_{1}, z_{2}, \cdots, z_{n} that are not all equal, we first obtain a set of identical numbers
z1+z22=z2+z32==zn1+zn2=zn+z12\frac{z_{1}+z_{2}}{2}=\frac{z_{2}+z_{3}}{2}=\cdots=\frac{z_{n-1}+z_{n}}{2}=\frac{z_{n}+z_{1}}{2}

Then the numbers ziz_{i} are equal at every other position. When nn is odd, this is impossible. Therefore, nn must be even.
Let z2i1=a,z2i=b(1in2)z_{2 i-1}=a, z_{2 i}=b\left(1 \leqslant i \leqslant \frac{n}{2}\right). If the array z1,z2,,znz_{1}, z_{2}, \cdots, z_{n} is directly obtained from the array y1,y2,,yny_{1}, y_{2}, \cdots, y_{n}, then we have
y1+y22=y3+y42==yn1+yn2=ay2+y32=y4+y52==yn+y12=b\begin{array}{l} \frac{y_{1}+y_{2}}{2}=\frac{y_{3}+y_{4}}{2}=\cdots=\frac{y_{n-1}+y_{n}}{2}=a \\ \frac{y_{2}+y_{3}}{2}=\frac{y_{4}+y_{5}}{2}=\cdots=\frac{y_{n}+y_{1}}{2}=b \end{array}

From (1), we get y1+y2++yn=12nay_{1}+y_{2}+\cdots+y_{n}=\frac{1}{2}^{n a},
From (2), we get y2+y3++yn+y1=12nby_{2}+y_{3}+\cdots+y_{n}+y_{1}=\frac{1}{2}^{n b},
Thus, a=ba=b.
This contradicts the fact that z1,z2,,znz_{1}, z_{2}, \cdots, z_{n} are not all equal. This proves that the array a,b,a,b,,a,ba, b, a, b, \cdots, a, b is the initial array, hence the conclusion of the problem is established.

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