
The Least Common Multiple of two or more numbers is the smallest number that is a multiple of all the numbers.
I'll illustrate with some examples:
Find the LCM of the following numbers: 24, 180, 54. Their prime factorizations are:
24 = 2^{3 } × 3^{1 } × 5^{0} 180 = 2^{2 } × 3^{2 } × 5^{1} 54 = 2^{1 } × 3^{3 } × 5^{0}
Now add a row to this table that shows the maximum exponent of each base:
24 = 2^{3 } × 3^{1 } × 5^{0} 180 = 2^{2 } × 3^{2 } × 5^{1} 54 = 2^{1 } × 3^{3 } × 5^{0} Maximum 2^{3 } × 3^{3 } × 5^{1}
The maximum exponent of each base gives 2^{3 }3^{3 }5^{1} = 1080. Here is the table, completely filled out.
24 = 2^{3 } × 3^{1 } × 5^{0} 180 = 2^{2 } × 3^{2 } × 5^{1} 54 = 2^{1 } × 3^{3 } × 5^{0} Maximum (LCM) 1080 = 2^{3 } × 3^{3 } × 5^{1}
Practice this method with a few different sets of numbers, and you will see how it works. If you have a question about this method, send me an email (click the link at the bottom of this page).
Take any two numbers, call them "x" and "y", and multiply them together. Save that product for future reference.
Now, find the GCD of x and y, and also find the LCM of x and y. Multiply the GCD and the LCM together  what do you discover? That's right. The GCD times the LCM are equal to x times y.
Let's take a close look at what's happening here. I'll take 24 and 180 as my examples. The GCD has all the primes with the minimum exponent of that prime in either number; the LCM has all the primes with the maximum exponent of that prime in either number:
24 = 2^{3 } × 3^{1 } × 5^{0} 180 = 2^{2 } × 3^{2 } × 5^{1} Minimum (GCD) 12 = 2^{2 } × 3^{1 } × 5^{0} Maximum (LCM) 360 = 2^{3 } × 3^{2 } × 5^{1}
Now you may not know this yet, but I'll tell you now, you can find the product 2^{3} and 2^{2} by adding their exponents, so the product is 2^{5}, which is 32. So the product of 24 and 180 is given by this calculation:
24 = 2^{3 } × 3^{1 } × 5^{0} 180 = 2^{2 } × 3^{2 } × 5^{1} 24 × 180 = 2^{5 } × 3^{3 } × 5^{1}
I just added up the exponents. 24 × 180 happens to be 4320, and its prime factorization happens to be 2^{5 } × 3^{3 } × 5^{1}  you can check these facts for yourself. (And you should!) Now, let's find the product of the GCD and LCM the same way:
(GCD) 12 = 2^{2 } × 3^{1 } × 5^{0} (LCM) 360 = 2^{3 } × 3^{2 } × 5^{1} GCD × LCM = 2^{5 } × 3^{3 } × 5^{1}
Is it just a coincidence that the product of the GCD and LCM of 24 and 180 are exactly equal to the product of 24 and 180? Try some other numbers, and see if you can spot the pattern.
Once you spot the pattern, then how does this help you?
Well, it's quite a bit easier to spot the GCD than the LCM. For example, take 66 and 77  you can see they're both multiples of 11, so 11 is the GCD. But what is the LCM? Simple: LCM = 66 × 77 � 11, which is 66 × 7, or 462.
How to do Prime Factorization
The webmaster and author of this Math Help site is Graeme McRae.