An alternative to the Euclidean algorithm uses subtraction

Chapter 4, Problem 24E

(choose chapter or problem)

Get Unlimited Answers
QUESTION:

An alternative to the Euclidean algorithm uses subtraction rather than division to compute greatest common divisors. (After all, division is repeated subtraction.) It is based on the following lemma:

Lemma 4.8.3

If a \(\geq\) b > 0, then gcd(a, b) = gcd(b, a − b).

a. Prove Lemma 4.8.3.

b. Trace the execution of Algorithm 4.8.3 for A = 630 and B = 336.

c. Trace the execution of Algorithm 4.8.3 for A = 768 and B = 348.

Text Transcription:

geq

Questions & Answers

QUESTION:

An alternative to the Euclidean algorithm uses subtraction rather than division to compute greatest common divisors. (After all, division is repeated subtraction.) It is based on the following lemma:

Lemma 4.8.3

If a \(\geq\) b > 0, then gcd(a, b) = gcd(b, a − b).

a. Prove Lemma 4.8.3.

b. Trace the execution of Algorithm 4.8.3 for A = 630 and B = 336.

c. Trace the execution of Algorithm 4.8.3 for A = 768 and B = 348.

Text Transcription:

geq

ANSWER:

Solution:Step 1:Here we have to prove that, if a b > 0, then gcd(a, b) = gcd(b, a b). Also trace the execution of Algorithm 4.8.3 for given values of and .

Add to cart


Study Tools You Might Need

Not The Solution You Need? Search for Your Answer Here:

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back