A Variation on the Algorithm for GCD and LCM
Keyword(s):
An algorithm sometimes presented for finding the least common multiple (LCM) of two numbers uses tbe technique of simultaneously finding the prime factors of the numbers. This technique is shown in figure 1. Both numbers are checked for divisibility by 2, then by 3, by 5, and so on. If the divisor does not divide one of the numbers, the number is written on the next line as shown in steps 4 and 5. This process continues until all numbers to the left and on the bottom are prime numbers, or it can be continued, as shown in figure 1, until the numbers across the bottom are all ones. The least common multiple is the product of all of the prime divisors. Thus, LCM (80, 72) = 24 · 32 · 5.
Keyword(s):
Keyword(s):
Keyword(s):
Keyword(s):
2008 ◽
Vol 01
(01)
◽
pp. 77-83
◽
Keyword(s):
Keyword(s):
2017 ◽
Vol 1
(2)
◽
pp. 113
Keyword(s):