Finding the Least Common Multiple of Two Numbers by Factoring

You can find the least common multiple (LCM) of two numbers by multiplying together the highest power of each factor found in either number.

DETAILS

A faster way to compute the LCM of two numbers a and b is ((a · b)/(gcd(a, b))), which can take advantage of the efficiency of the Euclidean algorithm.

RELATED LINKS

Contributed by: Jesse Nochella

© The Wolfram Demonstrations Project & Contributors   |   Terms of Use