Maths Olympiad Prep

Library / /332 of 520

Number theory Difficulty 6.7 National olympiad Prove it

Starting from a triplet of integers (x,y,z)(x, y, z), 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 a,b,ca, b, c are integers that are coprime as a set, one can go from the triplet (a,b,c)(a, b, c) to the triplet (1,0,0)(1,0,0) in at most five operations.

Solution

If bb and cc are zero, then since pgcd(a,b,c)=1\operatorname{pgcd}(a, b, c)=1, we must have a=1a=1 or a=1a=-1. In the first case, there is nothing to do. In the second case, by three successive operations, we can go from (1,0,0)(-1,0,0) to (1,1,0)(-1,1,0), then to (1,1,0)(1,1,0), and finally to (1,0,0)(1,0,0).

We can therefore assume that bb or cc is non-zero.
The goal is to reach a triplet of the form (1, s,t)(1, \mathrm{~s}, \mathrm{t}) in at most three steps, since with two additional steps, it is then immediate to obtain (1,0,0)(1,0,0).

We assume that c0\mathrm{c} \neq 0, the case b0\mathrm{b} \neq 0 being treated similarly.
To achieve the above goal, it suffices to find an integer nn such that cc and b+na\mathrm{b}+\mathrm{na} are coprime: indeed, suppose for the moment that such an integer nn has been determined and see how the conclusion will follow.

We set b=b+nab^{\prime}=b+n a and, with a first operation, we can go from (a,b,c)(a, b, c) to (a,b,c)\left(a, b^{\prime}, c\right). Then, by Bézout's theorem, we know that there exist two integers uu and vv such that ub+vc=1u b^{\prime}+v c=1. After multiplying by a1a-1, there therefore exist two integers xx and yy such that xb+yc=a1x b^{\prime}+y c=a-1. We then use a second operation to go from (a,b,c)\left(a, b^{\prime}, c\right) to (axb,b,c)\left(a-x b^{\prime}, b^{\prime}, c\right), and a third to go from (axb,b,c)\left(a-x b^{\prime}, b^{\prime}, c\right) to (axbyc,b,c)=(1,b,c)\left(a-x b^{\prime}-y c, b^{\prime}, c\right)=\left(1, b^{\prime}, c\right).

To conclude, it only remains to prove that such an integer nn exists.
Let EE be the set of prime divisors of cc that also divide at least one number of the form b+kab+k a, where kZk \in \mathbb{Z}.
If E=E=\emptyset then any integer nn is such that pgcd(c,b+na)=1\operatorname{pgcd}(\mathrm{c}, \mathrm{b}+\mathrm{na})=1.
Otherwise, we note that EE is finite because it only contains prime divisors of cc, with c0c \neq 0. Next, for each pEp \in E, there exists an integer kpk_{p} such that b+kpa=0mod[p]b+k_{p} a=0 \bmod [p]. We note that such a number pp does not divide aa because otherwise pp would also divide bb, in contradiction with pgcd(a,b,c)=1\operatorname{pgcd}(a, b, c)=1.

By the Chinese remainder theorem, there exists an integer nn such that n=kp+1mod[p]n=k_{p}+1 \bmod [p] for all pEp \in E. Let's prove that this integer nn works:

- If pp divides cc and pEp \notin E then pp does not divide any number of the form b+kab+k a and therefore, in particular, does not divide b+nab + na.
- If pEp \in E then b+na=b+kpa+a=a0mod[p]b+n a=b+k_{p} a+a=a \neq 0 \bmod [p].

Thus, no prime divisor of cc divides b+na\mathrm{b}+\mathrm{na}, which ensures that cc and b+na\mathrm{b}+\mathrm{na} are indeed coprime.
!

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.