Maths Olympiad Prep

Library / /26 of 29

Combinatorics Difficulty 7.8 National Olympiad, round 2 Prove it Middle European Mathematical Olympiad (MEMO)

Problem:

Let n2n \geqslant 2 be an integer. There are nn positive integers written on a blackboard. In each step we choose two of the numbers on the blackboard and replace each of them by their sum. Determine all values of nn for which it is always possible to get nn identical integers in a finite number of steps.

Solution

Solution:

Starting from the nn-tuple (2,2,1,1,,1)(2,2,1,1, \ldots, 1) with any n3n \geqslant 3, we get always an nn-tuple in which the number of maximal values is even. Hence no odd n3n \geqslant 3 is as required.

Let us show by induction that any even n2n \geqslant 2 is satisfactory, which is obvious if n=2n=2. For an even n4n \geqslant 4, by the induction hypothesis, we can transform any initial nn-tuple to (a,a,,a,b,b)(a, a, \ldots, a, b, b). If aba \neq b, we apply repeatedly some of the following series of steps, which always lead to an nn-tuple of type (a,,ak,b,,bnk)(\underbrace{a, \ldots, a}_{k}, \underbrace{b, \ldots, b}_{n-k}) in which the number kk may differ from the initial value k=n2k=n-2 (remaining to be even):
series α:(a,,ak,b,,bnk)(2a,,2ak,b,,bnk), \text{series } \alpha:(\underbrace{a, \ldots, a}_{k}, \underbrace{b, \ldots, b}_{n-k}) \rightarrow (\underbrace{2a, \ldots, 2a}_{k}, \underbrace{b, \ldots, b}_{n-k}),
series β:(a,,ak,b,,bnk)(a,,ak,2b,,2bnk),series γ1(if knk):(a,,ak,b,,bnk)(a+b,,a+b2k,b,,bn2k),series γ2(if knk):(a,,ak,b,,bnk)(a,,a2kn,a+b,,a+b2(nk)). \begin{array}{r} \text{series } \beta:(\underbrace{a, \ldots, a}_{k}, \underbrace{b, \ldots, b}_{n-k}) \rightarrow (\underbrace{a, \ldots, a}_{k}, \underbrace{2b, \ldots, 2b}_{n-k}), \\ \text{series } \gamma_{1}(\text{if } k \leqslant n-k):(\underbrace{a, \ldots, a}_{k}, \underbrace{b, \ldots, b}_{n-k}) \rightarrow (\underbrace{a+b, \ldots, a+b}_{2k}, \underbrace{b, \ldots, b}_{n-2k}), \\ \text{series } \gamma_{2}(\text{if } k \geqslant n-k):(\underbrace{a, \ldots, a}_{k}, \underbrace{b, \ldots, b}_{n-k}) \rightarrow (\underbrace{a, \ldots, a}_{2k-n}, \underbrace{a+b, \ldots, a+b}_{2(n-k)}). \end{array}
To describe our procedure, we introduce the notation c=2P(c)N(c)c=2^{P(c)} N(c) for any positive integer cc, where P(c)0P(c) \geqslant 0 and N(c)N(c) is odd. To each nn-tuple (a,,ak,b,,bnk)(\underbrace{a, \ldots, a}_{k}, \underbrace{b, \ldots, b}_{n-k}) with aba \neq b, let us apply
\triangleright series α\alpha if P(a)<P(b)P(a)<P(b),
\triangleright series β\beta if P(a)>P(b)P(a)>P(b),
\triangleright series γ1\gamma_{1} or γ2\gamma_{2} if P(a)=P(b)P(a)=P(b) (and hence N(a)N(b)N(a) \neq N(b)).

Using the series α\alpha and β\beta, the numbers N(a),N(b)N(a), N(b) do not change, while the series γ1\gamma_{1} and γ2\gamma_{2} cause the changes exactly one of them, namely
N(b)N(a)+N(b)2m,orN(b)N(a)+N(b)2mrespectively N(b) \rightarrow \frac{N(a)+N(b)}{2^{m}}, \quad \text{or} \quad N(b) \rightarrow \frac{N(a)+N(b)}{2^{m}} \quad \text{respectively}
where m=P(N(a)+N(b))1m=P(N(a)+N(b)) \geqslant 1 and hence
N(a)+N(b)2mN(a)+N(b)2<max(N(a),N(b)) \frac{N(a)+N(b)}{2^{m}} \leqslant \frac{N(a)+N(b)}{2}<\max (N(a), N(b))
(recall that N(a)N(b)N(a) \neq N(b)). Consequently, throughout our procedure, the value of max(N(a),N(b))\max (N(a), N(b)) is a nonincreasing variable, and hence constant after a finite numbers of series. From this moment, we must still have either N(a)N(b)N(a) \geqslant N(b), or N(a)N(b)N(a) \leqslant N(b). This excludes either series γ1\gamma_{1}, or series γ2\gamma_{2} from future applications, in which, therefore, all possible changes of the parameter kk are either k2kk \rightarrow 2k, or (nk)2(nk)(n-k) \rightarrow 2(n-k). Since this can repeat only rr times, where 2rn2^{r} \leqslant n, at the end we always get an nn-tuple (a,,a,b,,b)(a, \ldots, a, b, \ldots, b) for which (if aba \neq b) the continuation of our procedure reduces only to the series α\alpha and β\beta. Applying now either α\alpha, or β\beta exactly P(a)P(b)|P(a)-P(b)| times, we get an nn-tuple (a,,a,b,,b)\left(a', \ldots, a', b', \ldots, b'\right) with P(a)=P(b)P\left(a'\right)=P\left(b'\right). Since γ1,γ2\gamma_{1}, \gamma_{2} are already excluded, we have a=ba'=b', which completes the induction proof.

Another solution (German team, adapted):

We show without induction on nn that any even n=2kn=2k is satisfactory. At the beginning in the initial 2k2k-tuple (a1,,a2k)\left(a_{1}, \ldots, a_{2k}\right) we replace every pair (a2i1,a2ia_{2i-1}, a_{2i}) (for i=1,,ki=1, \ldots, k) by the pair (a2i1+a2i,a2i1+a2i)\left(a_{2i-1}+a_{2i}, a_{2i-1}+a_{2i}\right). From now on, we shall have always identical numbers on the (2i1)(2i-1)th and (2i)(2i)th position. Hence because of brevity we shall work with kk-tuples (x,y,z,)(x, y, z, \ldots) instead of 2k2k-tuples (x,x,y,y,z,z,)(x, x, y, y, z, z, \ldots). We are allowed to do the following transformations on the kk-tuples:

\triangleright choose two of the numbers x,yx, y and replace each of them by their sum (this corresponds with two steps (,x,x,,y,y,)(,x+y,x,,x+y,y,)(,x+y,x+y,,x+y,x+y,)(\ldots, x, x, \ldots, y, y, \ldots) \rightarrow (\ldots, x+y, x, \ldots, x+y, y, \ldots) \rightarrow (\ldots, x+y, x+y, \ldots, x+y, x+y, \ldots) performed on the 2k2k-tuple);

\triangleright choose one number xx and multiply it by 22 (this corresponds with one step (,x,x,)(,x+x,x+x,)(\ldots, x, x, \ldots) \rightarrow (\ldots, x+x, x+x, \ldots));

\triangleright divide all numbers by 22 (this obviously does not affect anything; formally we could remember how many times we have performed this dividing and multiply all the numbers by the proper power of two at the end).

Our aim is to obtain kk identical numbers. We reach it by iterating the following algorithm:

1. While there are at least two odd numbers, find the minimum and the maximum odd number and replace each of them by their (even) sum.
2. If there is one odd number left after finishing the first step, multiply it by two.
3. Divide all numbers by 22.

Clearly, after each iteration, the maximum number among all kk numbers either decreases or does not change. As this maximum is permanently a positive integer, after a finite number of iterations, it fixes at the value MM and does not change anymore. From now on, look at the number NN of MM's in the kk-tuple.

Obviously MM is odd (otherwise it would decrease in the third step in the next iteration). If N<kN<k, then there is at least one number mm with m<Mm<M. If mm is odd, after the next iteration NN decreases. As it is impossible to increase NN in the iterations, it must be constant after a finite number of steps and there must be only even mm with m<Mm<M. But every even mm is divided by 22 in each iteration and after some iterations some odd number less than MM must appear. So there are no numbers less than MM, which completes the proof.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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