Olympiad Maths Prep

Track / Stage 6 / 79 of 400 #1079 of 2000

Problem 1079

National olympiad, first round
Combinatorics Difficulty 6.1 Prove it 69th NMO Selection Tests for JBMO · Romania

Consider nn weights, n2n \ge 2, of masses m1,m2,,mnm_1, m_2, \dots, m_n, where mkm_k are positive integers such that 1mkk1 \le m_k \le k for all k{1,2,,n}k \in \{1, 2, \dots, n\}. Prove that we can place the weights on the two pans of a balance such that the pans stay in equilibrium if and only if the number m1+m2++mnm_1 + m_2 + \dots + m_n is even.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solutions — 2

Solution 1

Obviously, if the two pans can stay in equilibrium, the sum of the masses must be even (namely twice the sum of the masses of the weights placed on one of the pans of the balance).

Conversely, we prove by "strong" induction after nn that, if the sum of the masses is even, then one can place the weights conveniently. Assume the statement to be true for any k<nk < n weights whose total mass is even. We distinguish two cases:

• if mn1=mnm_{n-1} = m_n, then m1+m2++mn2m_1 + m_2 + \dots + m_{n-2} is even, hence, according to the inductive hypothesis for k=n2k = n-2, we can place these weights on the two pans of the balance such that the balance stays in equilibrium. Now we simply add the two weights of mass mnm_n, one in each pan, and the balance remains in equilibrium.

• If mnmn1m_n \neq m_{n-1}, instead of the two weights we produce a new one of mass m=mnmn1m = |m_n - m_{n-1}|. Then 1mn11 \le m \le n-1 and the sum of the masses of these n1n-1 weights,
m1+m2++mn2+m=m1+m2++mn2min{mn1,mn}, m_1 + m_2 + \dots + m_{n-2} + m = m_1 + m_2 + \dots + m_n - 2 \cdot \min\{m_{n-1}, m_n\},
is even. From the inductive hypothesis for k=n1k = n-1 it follows that we can place these n1n-1 weights on the pans of the balance such that the balance stays in equilibrium. Now, instead of the weight of mass mnmn1|m_n - m_{n-1}| we put the weight max{mn1,mn}\max\{m_{n-1}, m_n\}, and on the other pan we put the weight of mass min{mn1,mn}\min\{m_{n-1}, m_n\}; the balance stays in equilibrium.

The statement is thus proven.

Solution 2

Obviously, if the two pans can stay in equilibrium, the sum of the masses must be even (namely twice the sum of the masses of the weights placed in one of the pans of the balance).

Conversely, assume that the total mass is even. We place the weight of mass mnm_n on one of the pans. The modulus of the difference of the total weights of the two pans is mnnm_n \le n. We place successively the weights of masses mn1,mn2,,m1m_{n-1}, m_{n-2}, \dots, m_1 on the pan whose total mass is smaller. (In case the two pans are in equilibrium, we place the weight on any of two pans.) After placing the weight of mass mkm_k, the difference between the total masses on the two pans is at most kk. Proceeding this way, we insure that in the end, after placing the weight of mass m1=1m_1 = 1, the modulus of the difference between the two pans is at most 1. But the total mass being even, it follows that the difference is 0, which is what we wanted.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.