Maths Olympiad Prep

Library / /512 of 520

Number theory Difficulty 7.7 National olympiad, round 2 Prove it

8. Prove: If aa and bb are two coprime positive integers, then there exist two integers x,yx, y such that
ax+by=1a x + b y = 1

Solution

8. Proof: The proof is divided into three steps.
(i) Suppose R1R_{1} and R2R_{2} are two integers that can be written in the form ax+bya x + b y, where aa and bb are fixed positive integers, and xx and yy are integers. Then k1R1+k2R2(k1,k2k_{1} R_{1} + k_{2} R_{2} \left(k_{1}, k_{2}\right. are integers) can also be written in the form ax+bya x + b y. This is because if
R1=ax1+by1,R2=ax2+by2R_{1} = a x_{1} + b y_{1}, \quad R_{2} = a x_{2} + b y_{2}

then
k1Ri+k2R2=a(k1x1+k2x2)+b(k1y1+k2y2)k_{1} R_{\mathrm{i}} + k_{2} R_{2} = a \left(k_{1} x_{1} + k_{2} x_{2}\right) + b \left(k_{1} y_{1} + k_{2} y_{2}\right)

Since k1x1+k2x2k_{1} x_{1} + k_{2} x_{2} and k1y1+k2y2k_{1} y_{1} + k_{2} y_{2} are both integers, k1R1+k2R2k_{1} R_{1} + k_{2} R_{2} is also a number of the form ax+bya x + b y.
(ii) According to Lemma 4 of Chapter 1, if aa and bb are positive integers, and a>ba > b, then there must exist q1>0q_{1} > 0 such that
a=bq1+r1, and 0r1<ba = b q_{1} + r_{1}, \text{ and } 0 \leqslant r_{1} < b

Since b>r1b > r_{1}, there exists q2>0q_{2} > 0 such that
b=r1q2+r2, and 0r2<r1b = r_{1} q_{2} + r_{2}, \text{ and } 0 \leqslant r_{2} < r_{1}

Continuing this process, since the remainders r1,r2,r_{1}, r_{2}, \cdots decrease successively, after a finite number of steps, the remainder will eventually be 0. Therefore, we have
abq1+r1,0<r1<bb=r1q2+r2,0<r2<r1r1=r2q3+r3,0<r3<r2rn2=rn1qn+rn,0<rn<rn1;rn1=rnqn+1,}\left.\begin{array}{cc} a \Rightarrow b q_{1} + r_{1}, & 0 < r_{1} < b \\ b = r_{1} q_{2} + r_{2}, & 0 < r_{2} < r_{1} \\ r_{1} = r_{2} q_{3} + r_{3}, & 0 < r_{3} < r_{2} \\ \cdots \cdots \cdots \cdots \\ r_{n-2} = r_{n-1} q_{n} + r_{n}, & 0 < r_{n} < r_{n-1} ; \\ r_{n-1} = r_{n} q_{n+1}, & \end{array}\right\}

The remainder in the last equation is 0. According to Lemma 8 of Chapter 1, from the first equation in (1) we have (a,b)=(b,r1)(a, b) = (b, r_{1}), from the second equation we have (b,r1)=(r1,r2)(b, r_{1}) = (r_{1}, r_{2}), from the third equation we have (r1,r2)=(r2,r3)(r_{1}, r_{2}) = (r_{2}, r_{3}), and so on, until the last equation we have (rn1,rn)=rn(r_{n-1}, r_{n}) = r_{n}. Therefore, we have:
(a,b)=(b,r1)=(r1,r2)==(rn1,rn)=rn(a, b) = (b, r_{1}) = (r_{1}, r_{2}) = \cdots = (r_{n-1}, r_{n}) = r_{n}

That is, the last remainder rnr_{n} is the greatest common divisor of a\boldsymbol{a} and b\boldsymbol{b}, which is the principle of the Euclidean algorithm. Since a\boldsymbol{a} and b\boldsymbol{b} are coprime, rn=1r_{n} = 1.
(iii) Rewrite (1) as:
r1=aq1br2=bq2r1r3=r1q3r2rn=rn2qnrn1\begin{aligned} r_{1} & = a - q_{1} b \\ r_{2} & = b - q_{2} r_{1} \\ r_{3} & = r_{1} - q_{3} r_{2} \\ & \ldots \cdots \cdots \\ r_{n} & = r_{n-2} - q_{n} r_{n-1} \end{aligned}

Here q1,,qnq_{1}, \cdots, q_{n} are all integers. From the discussion in (i), since a\boldsymbol{a} and b\boldsymbol{b} themselves are numbers of the form ax+bya x + b y, from the first equation in (2), r1r_{1} is a number of the form ax+bya x + b y; from the second equation, bb and r1r_{1} are numbers of the form ax+bya x + b y, so r2r_{2} is a number of the form ax+bya x + b y; from the third equation, r1r_{1} and r2r_{2} are numbers of the form ax+bya x + b y, so r3r_{3} is a number of the form ax+bya x + b y. Continuing this, from the last equation, since rn2r_{n-2} and rn1r_{n-1} are numbers of the form ax+bya x + b y, rnr_{n} is a number of the form ax+bya x + b y. From the discussion in (ii), we know that rn=1r_{n} = 1, so there must exist two integers xx and yy such that ax+by=1a x + b y = 1.

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.