Exercise 1.2

If r 0 , we can find q 1 and r 1 such that b = q 1 r + r 1 , with 0 r 1 < r . Show that ( a , b ) = ( r , r 1 ) . This process can be repeated. Show that it must end in finitely many steps. Show that the last nonzero remainder must equal ( a , b ) . The process looks like

a = bq + r , 0 r < b b = q 1 r + r 1 , 0 r 1 < r r = q 2 r 1 + r 2 , 0 r 2 < r 1 r k 1 = q k + 1 r k + r k + 1 , 0 r k + 1 < r k r k = q k + 2 r k + 1

Then r k + 1 = ( a , b ) . This process of finding ( a , b ) is known as the Euclidian algorithm.

Answers

Proof. The Euclidian division of b by r gives b = q 1 r + r 1 , 0 r 1 < r . The result of exercise 1.1 applied to the couple ( b , r ) shows that

b r = r r 1 .

Let N . While the remainders r i , i N , are not equal to 0, we can define the sequences ( q i ) , ( r i ) by

r 1 = a , r 0 = b , r i 1 = q i + 1 r i + r i + 1 , 0 r i + 1 < r i 0 i N

.

If no r i , i , is equal to 0, we can continue this construction indefinitely. So we obtain a strictly decreasing sequence ( r i ) i of positive numbers : it is impossible. Therefore, there exists an index k such as r k + 2 = 0 , this is the end of the algorithm.

a = bq + r , 0 r < b b = q 1 r + r 1 , 0 r 1 < r r = q 2 r 1 + r 2 , 0 r 2 < r 1 r k 1 = q k + 1 r k + r k + 1 , 0 r k + 1 < r k r k = q k + 2 r k + 1 , r k + 2 = 0

From exercise 1, r i 1 r i = r i r i + 1 , 0 i k , so

a b = b r = = r k r k + 1 = r k + 1 r k + 2 = r k + 1 0 = r k + 1 .

The last non zero remainder is the gcd of a , b . □

User profile picture
2022-07-19 00:00
Comments