Chapter 8 Number Theory190
Proof. By the Division Theorem 8.1.5,
aDqbCr (8.2)
whererDrem.a;b/. Soais a linear combination ofbandr, which implies that
any divisor ofbandris a divisor ofaby Lemma 8.1.3.2. Likewise,ris a linear
combination,a qb, ofaandb, so any divisor ofaandbis a divisor ofr. This
means thataandbhave the same common divisors asbandr, and so they have
the samegreatestcommon divisor.
Lemma 8.2.1 is useful for quickly computing the greatest common divisor of
two numbers. For example, we could compute the greatest common divisor of
1147 and 899 by repeatedly applying it:
gcd.1147;899/Dgcd