Starting from a triplet of integers , an operation consists of adding to one of these three integers a multiple of one of the other two (this multiple can be positive or negative). Prove that if are integers that are coprime as a set, one can go from the triplet to the triplet in at most five operations.
Solution
If and are zero, then since , we must have or . In the first case, there is nothing to do. In the second case, by three successive operations, we can go from to , then to , and finally to .
We can therefore assume that or is non-zero.
The goal is to reach a triplet of the form in at most three steps, since with two additional steps, it is then immediate to obtain .
We assume that , the case being treated similarly.
To achieve the above goal, it suffices to find an integer such that and are coprime: indeed, suppose for the moment that such an integer has been determined and see how the conclusion will follow.
We set and, with a first operation, we can go from to . Then, by Bézout's theorem, we know that there exist two integers and such that . After multiplying by , there therefore exist two integers and such that . We then use a second operation to go from to , and a third to go from to .
To conclude, it only remains to prove that such an integer exists.
Let be the set of prime divisors of that also divide at least one number of the form , where .
If then any integer is such that .
Otherwise, we note that is finite because it only contains prime divisors of , with . Next, for each , there exists an integer such that . We note that such a number does not divide because otherwise would also divide , in contradiction with .
By the Chinese remainder theorem, there exists an integer such that for all . Let's prove that this integer works:
- If divides and then does not divide any number of the form and therefore, in particular, does not divide .
- If then .
Thus, no prime divisor of divides , which ensures that and are indeed coprime.
!