Olympiad Maths Prep

Library / /5 of 6

, 2011

Combinatorics Difficulty 7.0 National olympiad Prove it Czech-Polish-Slovak Mathematical Match

On the blackboard nn nonnegative integers have been written, such that their greatest common divisor is equal to 11. In one step we can erase two numbers xx, yy such that xyx \ge y, and replace them with numbers xyx - y, 2y2y. Determine, for which sequences of original nn integers one can lead to a situation, in which n1n - 1 numbers on the blackboard are zeroes.

Solution

The answer: the sum of the numbers has to be a power of 22, or they are all zeroes. From this moment we assume that the numbers are not all zeroes, otherwise we are done without making any step.

Let SS be the sum of the numbers on the blackboard and DD be their greatest common divisor at some moment. At the beginning DD is equal to 11, at the end it has to be equal to SS. We now prove that in each step, DD either stays the same or is multiplied by 22. Indeed, let k1,,knk_1, \dots, k_n be the numbers on the blackboard, without losing generality let the operation be performed on (x,y)=(k1,k2)(x, y) = (k_1, k_2). Then we have that
gcd(k1,k2,k3,,kn)=gcd(k1k2,k2,k3,,kn) \text{gcd}(k_1, k_2, k_3, \dots, k_n) = \text{gcd}(k_1 - k_2, k_2, k_3, \dots, k_n)
and gcd(k1k2,k2,k3,,kn)\text{gcd}(k_1 - k_2, k_2, k_3, \dots, k_n) is either 2gcd(k1k2,k2,k3,,kn)2 \text{gcd}(k_1 - k_2, k_2, k_3, \dots, k_n) or gcd(k1k2,k2,k3,,kn)\text{gcd}(k_1 - k_2, k_2, k_3, \dots, k_n) (multiplying one of the arguments by 22 can multiply the greatest common divisor by 22 if all the other arguments have more twos in their prime factorizations, or make it stay the same otherwise). As at the end DD must be equal to SS, SS has to be a power of two.

Now we prove that if SS is a power of two, then it is possible to obtain n1n-1 zeroes. Consider binary representations of all the numbers on the blackboard and write them one over another. Let \ell be the index of the rightmost column that does not consist of only zeroes, i.e., \ell is the smallest number such that not for all ii 2ki2^\ell \mid k_i holds. If n1n-1 numbers are zeroes, then we are already done.

Otherwise, observe that in the \ell-th column the number of ones has to be even (as SS is a power of 22, larger than 22^\ell). Take kikjk_i \ge k_j such that they are not divisible by 22^\ell and perform the operation on them. Observe that after doing the operation all the columns with indices lower than \ell still have only zeroes, however in the \ell-th column the number of ones decrease by 22. Doing such operations we can delete ones from columns one after another, obtaining at the end the situation, in which we cannot apply the described rule. This means that n1n-1 numbers on the blackboard are zeroes.

Looking for a route rather than 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 and solution reproduced as published; topic and difficulty added by this site.