Q:

Use the Euclidean algorithm to calculate gcd(259, 621) and gcd(108, 156).

Accepted Solution

A:
Answer:The gcd(259, 621) = 1 and gcd(108, 156) = 12Step-by-step explanation:The Euclidean algorithm solves the problem:Given integers a, b, find d = gcd(a,b)These are the steps of the Euclidean algorithm:Let a = x, b = y.Given x, y use the division algorithm to write [tex]x=y\cdot q+r[/tex] where q is quotient and r is the remainderIf r = 0, stop and output y; this is the gcd of a, b.if r ≠ 0, replace (x, y) by (y,r). Go to step 2.These are the steps for the division algorithm:Subtract the divisor from the dividend repeatedly until we get a result that lies between 0 and the divisorThe resulting number is known as the remainder, and the number of times that the divisor is subtracted is called the quotient.To find the greatest common divisor of 621 and 259 by the Euclidean algorithm you need to:Divide 621 by 259, applying the division algorithm you get [tex]621-259=362\\352 - 259 =103[/tex]        next you need to write the expression [tex]621 = 259 \cdot 2+103[/tex]Divide 259 by 103 to write [tex]259=103\cdot 2 +53[/tex]Divide 103 by 53 to write [tex]103=53\cdot 1+50[/tex]Divide 53 by 50 to write [tex]53=50\cdot 1+3[/tex]Divide 50 by 3 to write [tex]50=3\cdot 16+2[/tex]Divide 3 by 2 to write [tex]3=2\cdot 1+1[/tex]Divide 2 by 1 to write [tex]2=1\cdot 2+0[/tex]The greatest common divisor of 621 and 259 is 1To find the greatest common divisor of 156 and 108 by the Euclidean algorithm you need to:Divide 156 by 108 to write [tex]156=108\cdot 1+48[/tex]Divide 108 by 48 to write [tex]108=48\cdot 2 + 12[/tex]Divide 48 by 12 to write [tex]48=12\cdot 4 +0[/tex]The greatest common divisor of 156 and 108 is 12