# Difference between revisions of "Least common multiple"

m (boldfacing least common multiple) |
m (making latex nicer) |
||

Line 16: | Line 16: | ||

The LCM of two or more numbers can also be found using [[prime factorization]]. Try to find how this and the method above are related. The best way to explain this method is by example. | The LCM of two or more numbers can also be found using [[prime factorization]]. Try to find how this and the method above are related. The best way to explain this method is by example. | ||

Using 8 and 12: | Using 8 and 12: | ||

− | + | ||

− | + | <math>12=2^2\times3</math><br> | |

+ | <math>\ 8=2^3</math><br> | ||

Now we find prime factors that are common to both: | Now we find prime factors that are common to both: | ||

− | + | ||

+ | <math>\ 2^2</math><br> | ||

(Notice this is GCD) | (Notice this is GCD) | ||

Now find those not common: | Now find those not common: | ||

− | + | ||

+ | <math>2\times3</math><br> | ||

Now we multiply: | Now we multiply: | ||

− | + | ||

+ | <math>2^2\times2^1\times3</math><br> | ||

This equals '''24''' and we have our LCM. | This equals '''24''' and we have our LCM. |

## Revision as of 17:25, 24 June 2006

The **least common multiple** (LCM) of two or more numbers is the lowest multiple common to both. Any set of numbers have an infinite amount of common multiples, but only one LCM.

## How to find

The most primitive way to find the LCM of a set of numbers is to list out the multiples of each until you find a multiple that is common to all of them. This is a tedious method, so it is usually only used when the numbers are small. For example, suppose we wanted to find the LCM of two numbers, 4 and 6. We would begin by listing the multiples of 4 and 6 until we find the smallest number in both lists, as shown below.

4 8 **12**

6 **12**

12 is the LCM of 4 and 6.

The LCM of two numbers can be found more easily by first finding the greatest common divisor (GCD). Once the GCD is known, the LCM is calculated by the following equation, .

Let's use the above example again. The GCD of 4 and 6 is 2, since and . Using the above equation, we find .

The LCM of two or more numbers can also be found using prime factorization. Try to find how this and the method above are related. The best way to explain this method is by example. Using 8 and 12:

Now we find prime factors that are common to both:

(Notice this is GCD)
Now find those not common:

Now we multiply:

This equals **24** and we have our LCM.