Number theoryDifficulty 7.7National olympiad, round 2Prove it
8. Prove: If a and b are two coprime positive integers, then there exist two integers x,y such that ax+by=1
Solution
8. Proof: The proof is divided into three steps. (i) Suppose R1 and R2 are two integers that can be written in the form ax+by, where a and b are fixed positive integers, and x and y are integers. Then k1R1+k2R2(k1,k2 are integers) can also be written in the form ax+by. This is because if R1=ax1+by1,R2=ax2+by2
then k1Ri+k2R2=a(k1x1+k2x2)+b(k1y1+k2y2)
Since k1x1+k2x2 and k1y1+k2y2 are both integers, k1R1+k2R2 is also a number of the form ax+by. (ii) According to Lemma 4 of Chapter 1, if a and b are positive integers, and a>b, then there must exist q1>0 such that a=bq1+r1, and 0⩽r1<b
Since b>r1, there exists q2>0 such that b=r1q2+r2, and 0⩽r2<r1
Continuing this process, since the remainders r1,r2,⋯ decrease successively, after a finite number of steps, the remainder will eventually be 0. Therefore, we have a⇒bq1+r1,b=r1q2+r2,r1=r2q3+r3,⋯⋯⋯⋯rn−2=rn−1qn+rn,rn−1=rnqn+1,0<r1<b0<r2<r10<r3<r20<rn<rn−1;⎭⎬⎫
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), from the second equation we have (b,r1)=(r1,r2), from the third equation we have (r1,r2)=(r2,r3), and so on, until the last equation we have (rn−1,rn)=rn. Therefore, we have: (a,b)=(b,r1)=(r1,r2)=⋯=(rn−1,rn)=rn
That is, the last remainder rn is the greatest common divisor of a and b, which is the principle of the Euclidean algorithm. Since a and b are coprime, rn=1. (iii) Rewrite (1) as: r1r2r3rn=a−q1b=b−q2r1=r1−q3r2…⋯⋯=rn−2−qnrn−1
Here q1,⋯,qn are all integers. From the discussion in (i), since a and b themselves are numbers of the form ax+by, from the first equation in (2), r1 is a number of the form ax+by; from the second equation, b and r1 are numbers of the form ax+by, so r2 is a number of the form ax+by; from the third equation, r1 and r2 are numbers of the form ax+by, so r3 is a number of the form ax+by. Continuing this, from the last equation, since rn−2 and rn−1 are numbers of the form ax+by, rn is a number of the form ax+by. From the discussion in (ii), we know that rn=1, so there must exist two integers x and y such that ax+by=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.