| Dictionary: least common multiple |
| 5min Related Video: least common multiple |
| Computer Desktop Encyclopedia: LCM |
(Liquid Crystal Monitor) A flat panel display that uses the liquid crystal (LCD) technology. See flat panel display.
Download Computer Desktop Encyclopedia to your iPhone/iTouch
| Veterinary Dictionary: LCM |
Lymphocytic choriomeningitis.
| Wikipedia: Least common multiple |
In arithmetic and number theory, the least common multiple or lowest common multiple (lcm) or smallest common multiple of two integers a and b is the smallest positive integer that is a multiple both of a and of b. Since it is a multiple, it can be divided by a and b without a remainder. If either a or b is 0, so that there is no such positive integer, then lcm(a, b) is defined to be zero.
The definition is sometimes generalized for more than two integers: The lowest common multiple of integers a1, ..., an is the smallest positive integer that is a multiple of a1, ..., an.
Contents |
Multiples of 4 are:
(add 4 to each to get the next multiple).
Multiples of 6 are:
(add 6 to each to get the next multiple).
Common multiples of 4 and 6 are numbers that these two lists share in common:
The least common multiple of 4 and 6 is 12.
When adding, subtracting, or comparing vulgar fractions, it is useful to find the least common multiple of the denominators, often called the lowest common denominator, because each of the fractions can be expressed as a fraction with this denominator. For instance,

where the denominator 42 was used because it is the least common multiple of 21 and 6.
The following formula reduces the problem of computing the least common multiple to the problem of computing the greatest common divisor (GCD):

There are fast algorithms for computing the GCD that do not require the numbers to be factored, such as the Euclidean algorithm. To return to the example above,

Because gcd(a, b) is a divisor of both a and b, it's more efficient to compute the LCM by dividing before multiplying:

This reduces the size of one input for both the division and the multiplication, and reduces the required storage needed for intermediate results. Done this way, the previous example becomes:

The unique factorization theorem says that every positive integer greater than 1 can be written in only one way as a product of prime numbers. The prime numbers can be considered as the atomic elements which, when combined together, make up a composite number.
For example:

Here we have the composite number 90 made up of one atom of the prime number 2, two atoms of the prime number 3 and one atom of the prime number 5.
This knowledge can be used to find the lcm of a set of numbers.
Example: Find the value of lcm(8,9,21).
First, factor out each number and express it as a product of prime number powers.



The lcm will be the product of multiplying the highest power in each prime factor category together. Out of the 4 prime factor categories 2, 3, 5, and 7, the highest powers from each are 23, 32, 50, and 71. Thus,

This method is not as efficient as reducing to the greatest common divisor, since there is no known general efficient algorithm for integer factorization, but is useful in illustrating concepts.
This method can be illustrated using a Venn diagram as follows. Find the prime factorization of each of the two numbers. Put the prime factors into a Venn diagram with one circle for each of the two numbers, and all factors they share in common in the intersection. To find the LCM, just multiply all of the prime numbers in the diagram.
Here is an example:
and what they share in common is two "2"s and a "3":
This also works for the greatest common divisor (GCD), except that instead of multiplying all of the numbers in the Venn diagram, one multiplies only the prime factors that are in the intersection. Thus the GCD of 48 and 180 is 2 × 2 × 3 = 12.
This method works as easily for finding the LCM of several integers.
Let there be a finite sequence of positive integers X = (x1, x2, ..., xn), n > 1. The algorithm proceeds in steps as follows: on each step m it examines and updates the sequence X(m) = (x1(m), x2(m), ..., xn(m)), X(1) = X. The purpose of the examination is to pick up the least (perhaps, one of many) element of the sequence X(m). Assuming xk0(m) is the selected element, the sequence X(m+1) is defined as
In other words, the least element is increased by the corresponding x whereas the rest of the elements pass from X(m) to X(m+1) unchanged.
The algorithm stops when all elements in sequence X(m) are equal. Their common value L is exactly LCM(X). (For a proof and an interactive simulation see reference below, Algorithm for Computing the LCM.)
This method works for any number of factors. You begin by listing all of the numbers vertically in a table like this (We can try 4, 7, 12, 21, and 42):
4
7
12
21
42
The process begins by dividing all of the factors by 2. If any of them divide evenly, write 2 at the top of the table and the result of division by 2 of each factor in the space to the right of each factor and below the 2. If they do not divide evenly, just rewrite the number again. If 2 does not divide evenly into any of the numbers, try 3.
| x | 2 |
|---|---|
| 4 | 2 |
| 7 | 7 |
| 12 | 6 |
| 21 | 21 |
| 42 | 21 |
Now, check if 2 divides again
| x | 2 | 2 |
|---|---|---|
| 4 | 2 | 1 |
| 7 | 7 | 7 |
| 12 | 6 | 3 |
| 21 | 21 | 21 |
| 42 | 21 | 21 |
Once 2 no longer divides, divide by 3. If 3 no longer divides, try 5 and 7. keep going until all of the numbers have been reduced to 1.
| x | 2 | 2 | 3 | 7 |
|---|---|---|---|---|
| 4 | 2 | 1 | 1 | 1 |
| 7 | 7 | 7 | 7 | 1 |
| 12 | 6 | 3 | 1 | 1 |
| 21 | 21 | 21 | 7 | 1 |
| 42 | 21 | 21 | 7 | 1 |
Now, multiply the numbers on the top and you have the LCM. In this case, it is 2 × 2 × 3 × 7 = 84. This is a variation on Euclid's algorithm, as common factors are essentially divided out along the way of dividing all of the numbers at once by each successive factor. You will get to the LCM the quickest if you use prime numbers and start from the lowest prime, 2.
The least common multiple can be defined generally over commutative rings as follows: Let a and b be elements of a commutative ring R. A common multiple of a and b is an element m of R such that both a and b divide m (i.e. there exist elements x and y of R such that ax = m and by = m). A least common multiple of a and b is a common multiple that is minimal in the sense that for any other common multiple n of a and b, m divides n.
In general, two elements in a commutative ring can have no least common multiple or more than one. However, any two least common multiples of the same pair of elements are associates. In a unique factorization domain, any two elements have a least common multiple. In a principal ideal domain, the least common multiple of a and b can be characterised as a generator of the intersection of the ideals generated by a and b (the intersection of a collection of ideals is always an ideal). In principal ideal domains, one can even talk about the least common multiple of arbitrary collections of elements: it is a generator of the intersection of the ideals generated by the elements of the collection.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| Best of the Web: least common multiple |
Some good "least common multiple" pages on the web:
Math mathworld.wolfram.com |
| lcm (abbreviation) | |
| least common denominator (mathematics) | |
| Dionysian period (time) |
| What is the least common multiple of 2149? Read answer... | |
| What is the least common multiple of 1757? Read answer... | |
| What is the least common multiple of 56? Read answer... |
Copyrights:
![]() | Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved. Read more | |
![]() | Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher. © 1981-2009 Computer Language Company Inc. All rights reserved. Read more | |
![]() | Veterinary Dictionary. Saunders Comprehensive Veterinary Dictionary 3rd Edition. Copyright © 2007 by D.C. Blood, V.P. Studdert and C.C. Gay, Elsevier. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Least common multiple". Read more |
Mentioned in