How Does the Euclidean Algorithm Scale with Multiplication Factors?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 7K views
hilly1
Messages
1
Reaction score
0
Prove that the number of steps of the euclidean algorithm needed to find gcd(km,kn) is exactly the same as the number of steps needed to find gcd(m,n).

any help on this would be appreciated. I'm really lost.
 
Physics news on Phys.org
This a consequence of gcd(ka,kb) = |k|gcd(a,b); after applying the euclidean algorithm to gcd(a,b), multiply each of the lines by |k|, and check that this is a valid sequence of divisions (that is, |k|ri is a valid remainder for each of the divisions). The result follows immediately.