[Home]Least common multiple

HomePage | Recent Changes | Preferences

Showing revision 2
The least common multiple (LCM) of two integers a and b is the smallest integer that is a multiple of both a and b.

The least common multiple can be computed by using the greatest common divisor (or GCD) of a and b,

a b
LCM(a, b) =
GCD(a, b)

Thus, Euclid's algorithm for GCD gives us a fast algorithm for LCM. As an example, the LCM of 12 and 15 is 12 * 15 / 3 = 60.


HomePage | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited August 4, 2001 5:47 pm by Buttonius (diff)
Search: