Maths Olympiad Prep

Library / /286 of 520

Number theory Difficulty 7.0 National olympiad Prove it

There are nn natural numbers written on the board. Every move, we could erase a,ba,b and change it to gcd(a,b)\gcd(a,b) and lcm(a,b)gcd(a,b)\text{lcm}(a,b) - \gcd(a,b). Prove that in finite number of moves, all numbers in the board could be made to be equal.

Solution

We need to prove that in a finite number of moves, all numbers on the board can be made equal using the given operations. Let's break down the solution step by step.

1. Base Case:
If n=1 n = 1 , then there is only one number on the board, and it is trivially equal to itself. Therefore, the statement holds for n=1 n = 1 .

2. General Case:
Assume n2 n \geq 2 . We will consider two main cases based on the greatest common divisor (gcd) of the numbers.

3. **Case 1: gcd(a,b)=1 \gcd(a, b) = 1 :**
- Take any two numbers a a and b b such that gcd(a,b)=1 \gcd(a, b) = 1 .
- Perform the operation on (a,b) (a, b) to obtain gcd(a,b)=1 \gcd(a, b) = 1 and lcm(a,b)gcd(a,b) \text{lcm}(a, b) - \gcd(a, b) .
- Since gcd(a,b)=1 \gcd(a, b) = 1 , the new numbers are 1 1 and lcm(a,b)1 \text{lcm}(a, b) - 1 .
- Now, we can repeatedly apply the operation on any number x x and 1 1 :
gcd(x,1)=1andlcm(x,1)gcd(x,1)=x1 \gcd(x, 1) = 1 \quad \text{and} \quad \text{lcm}(x, 1) - \gcd(x, 1) = x - 1
- This decreases x x by 1 in each step until x x becomes 1. Thus, all numbers can be reduced to 1.

4. **Case 2: gcd(a,b)1 \gcd(a, b) \neq 1 for all pairs (a,b) (a, b) :**
- Assume there is no pair (a,b) (a, b) such that gcd(a,b)=1 \gcd(a, b) = 1 .
- If there exists a number c c such that gcd(a,c)gcd(b,c) \gcd(a, c) \perp \gcd(b, c) (i.e., gcd(gcd(a,c),gcd(b,c))=1 \gcd(\gcd(a, c), \gcd(b, c)) = 1 ), we can apply the operation on (a,c) (a, c) and then on (gcd(a,c),b) (\gcd(a, c), b) to eventually get 1 on the board. This reduces to Case 1.
- If no such c c exists, then gcd({ai}n)1 \gcd(\{a_i\}_n) \neq 1 for all i i . Let d=gcd({ai}n) d = \gcd(\{a_i\}_n) .
- Take any two numbers a a and b b such that gcd(a,b)=d \gcd(a, b) = d . Perform the operation on (a,b) (a, b) to obtain d d and lcm(a,b)d \text{lcm}(a, b) - d .
- Now, take any number x x and note that:
gcd(d,x)=dandlcm(x,d)gcd(x,d)=xd \gcd(d, x) = d \quad \text{and} \quad \text{lcm}(x, d) - \gcd(x, d) = x - d
- This decreases x x by d d in each step until x x becomes d d . Repeating this process for all numbers, we can make all numbers equal to d d .

Thus, in both cases, we can make all numbers on the board equal in a finite number of moves.

\blacksquare

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.