Answer to Question #317984 in Algorithms for asdasd

Question #317984

Solve for the Greatest Common Divisor (GCD) of the following pair of numbers using the Basic Euclidean Algorithm. (Show your complete solution.) 1. GCD (700, 105)


1
Expert's answer
2022-03-25T12:09:55-0400
GCD(700, 105):
initial values: m = 700, n = 105

while n != 0 do  :      105 != 0
    r <- m mod n :      r <- 700 mod 105 = 70
    m <- n       :      m <- 105
    n <- r       :      n <- 70

while n != 0 do  :      70 != 0
    r <- m mod n :      r <- 105 mod 70 = 35
    m <- n       :      m <- 70
    n <- r       :      n <- 35

while n != 0 do  :      35 != 0
    r <- m mod n :      r <- 70 mod 35 = 0
    m <- n       :      m <- 35
    n <- r       :      n <- 0

while n != 0 do  :      0 == 0

return m         :      return 35

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS