CombinatoricsDifficulty 7.8National Olympiad, round 2Prove itMiddle European Mathematical Olympiad (MEMO)
Problem:
Let n⩾2 be an integer. There are n 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 n for which it is always possible to get n identical integers in a finite number of steps.
Solution
Solution:
Starting from the n-tuple (2,2,1,1,…,1) with any n⩾3, we get always an n-tuple in which the number of maximal values is even. Hence no odd n⩾3 is as required.
Let us show by induction that any even n⩾2 is satisfactory, which is obvious if n=2. For an even n⩾4, by the induction hypothesis, we can transform any initial n-tuple to (a,a,…,a,b,b). If a=b, we apply repeatedly some of the following series of steps, which always lead to an n-tuple of type (ka,…,a,n−kb,…,b) in which the number k may differ from the initial value k=n−2 (remaining to be even): series α:(ka,…,a,n−kb,…,b)→(k2a,…,2a,n−kb,…,b), series β:(ka,…,a,n−kb,…,b)→(ka,…,a,n−k2b,…,2b),series γ1(if k⩽n−k):(ka,…,a,n−kb,…,b)→(2ka+b,…,a+b,n−2kb,…,b),series γ2(if k⩾n−k):(ka,…,a,n−kb,…,b)→(2k−na,…,a,2(n−k)a+b,…,a+b). To describe our procedure, we introduce the notation c=2P(c)N(c) for any positive integer c, where P(c)⩾0 and N(c) is odd. To each n-tuple (ka,…,a,n−kb,…,b) with a=b, let us apply ▹ series α if P(a)<P(b), ▹ series β if P(a)>P(b), ▹ series γ1 or γ2 if P(a)=P(b) (and hence N(a)=N(b)).
Using the series α and β, the numbers N(a),N(b) do not change, while the series γ1 and γ2 cause the changes exactly one of them, namely N(b)→2mN(a)+N(b),orN(b)→2mN(a)+N(b)respectively where m=P(N(a)+N(b))⩾1 and hence 2mN(a)+N(b)⩽2N(a)+N(b)<max(N(a),N(b)) (recall that N(a)=N(b)). Consequently, throughout our procedure, the value of 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), or N(a)⩽N(b). This excludes either series γ1, or series γ2 from future applications, in which, therefore, all possible changes of the parameter k are either k→2k, or (n−k)→2(n−k). Since this can repeat only r times, where 2r⩽n, at the end we always get an n-tuple (a,…,a,b,…,b) for which (if a=b) the continuation of our procedure reduces only to the series α and β. Applying now either α, or β exactly ∣P(a)−P(b)∣ times, we get an n-tuple (a′,…,a′,b′,…,b′) with P(a′)=P(b′). Since γ1,γ2 are already excluded, we have a′=b′, which completes the induction proof.
Another solution (German team, adapted):
We show without induction on n that any even n=2k is satisfactory. At the beginning in the initial 2k-tuple (a1,…,a2k) we replace every pair (a2i−1,a2i) (for i=1,…,k) by the pair (a2i−1+a2i,a2i−1+a2i). From now on, we shall have always identical numbers on the (2i−1)th and (2i)th position. Hence because of brevity we shall work with k-tuples (x,y,z,…) instead of 2k-tuples (x,x,y,y,z,z,…). We are allowed to do the following transformations on the k-tuples:
▹ choose two of the numbers x,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,…) performed on the 2k-tuple);
▹ choose one number x and multiply it by 2 (this corresponds with one step (…,x,x,…)→(…,x+x,x+x,…));
▹ divide all numbers by 2 (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 k 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 2.
Clearly, after each iteration, the maximum number among all k 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 M and does not change anymore. From now on, look at the number N of M's in the k-tuple.
Obviously M is odd (otherwise it would decrease in the third step in the next iteration). If N<k, then there is at least one number m with m<M. If m is odd, after the next iteration N decreases. As it is impossible to increase N in the iterations, it must be constant after a finite number of steps and there must be only even m with m<M. But every even m is divided by 2 in each iteration and after some iterations some odd number less than M must appear. So there are no numbers less than M, 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.