Exercise 1.2.39 (Properties of Euclid's algorithm )

Suppose that the method used in the proof of Theorem 1.11 is employed to find x and y so that bx + cy = g . Thus b x i + c y i = r i . Show that ( 1 ) i x i 0 and ( 1 ) i y i 0 for i = 1 , 0 , 1 , 2 , , j + 1 . Deduce that | x i + 1 | = | x i 1 | + q i + 1 | x i | and | y i + 1 | = | y i 1 | + q i + 1 | y i | for i = 0 , 1 , , j .

Answers

Proof. We put

r 1 = b , r 0 = c , r j + 1 = 0 ,

so that the equations of Euclid’s algorithm are

r i = r i + 1 q i + 2 + r i + 2 , 1 i j 1 .

Here b > 0 , c > 0 , r i > 0 thus q i 0 for all i .

Then x i and y i , such that r i = b x i + c y i , 1 i j + 1 , satisfy for all i [ [ 1 , j 1 ] ] ,

r i + 2 = r i q i + 2 r i + 1 , (1) x i + 2 = x i q i + 2 x i + 1 , (2) y i + 2 = y i q i + 2 y i + 1 . (3)
  • Note first that

    r 1 = b = b 1 + c 0 , r 0 = c = b 0 + c 1 ,

    thus

    x 1 = 1 , y 1 = 0 , x 0 = 0 , y 0 = 1 ,

    and so

    ( 1 ) 1 x 1 0 , ( 1 ) 1 y 1 0 , ( 1 ) 0 x 0 0 , ( 1 ) 0 y 0 0 .

  • Reasoning by induction, suppose that for some i [ [ 1 , j 1 ] ]

    ( 1 ) i x i 0 , ( 1 ) i y i 0 , ( 1 ) i + 1 x i + 1 0 , ( 1 ) i + 1 y i + 1 0 .

    Then (2) and (3) give, using ( 1 ) i + 2 = ( 1 ) i and q i + 2 0 ,

    ( 1 ) i + 2 x i + 2 = ( 1 ) i x i + q i + 2 ( 1 ) i + 1 x i + 1 0 , ( 1 ) i + 2 y i + 2 = ( 1 ) i y i + q i + 2 ( 1 ) i + 1 y i + 1 0 .
  • The induction is done, thus ( 1 ) i x i 0 , ( 1 ) i y i 0 are true for 1 i j + 1 .

Since ( 1 ) i + 1 x i = | x i | , for i [ [ 1 , j + 1 ] ] ,

| x i + 2 | = ( 1 ) i + 3 x i + 2 = ( 1 ) i + 1 x i + q i + 2 ( 1 ) i + 2 x i + 1 = | x i | + q i + 2 | x i + 1 | ,

and similarly, ( 1 ) i y i = | y i | , thus

| y i + 2 | = ( 1 ) i + 2 y i + 2 = ( 1 ) i y i + q i + 2 ( 1 ) i + 1 y i + 1 = | y i | + q i + 2 | y i + 1 | .

Equivalently,

| x i + 1 | = | x i 1 | + q i + 1 | x i | , | y i + 1 | = | y i 1 | + q i + 1 | y i | .

for i = 0 , 1 , , j . □

User profile picture
2024-10-01 08:10
Comments
  • I believe the line: Reasoning by induction, suppose that for some i\in [-1,j-2] can be replaced by i \in [-1,j-1] ? In other words, i=j-1 makes sense as well.
    BretSherfinski2025-02-14
  • @Bret Sherfinski You are absolutely right. I will correct it right away. I am sure there are hundreds of errors like this in the following problems, and I am glad that you are paying attention to all the details. Thank you very much.
    richardganaye2025-02-15