Least common multiple
Encyclopedia : L : LE : LEA : 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 of both a and b. If there is no such positive integer, e.g., if a = 0 or b = 0, then lcm(a, b) is defined to be zero.
When adding or subtracting vulgar fractions, it is useful to find the least common multiple of the denominators, often called the lowest common denominator. Consider for instance
- [+=+=,]
If a and b are not both zero, the least common multiple can be computed by using the greatest common divisor (gcd) of a and b:
- [\operatorname(a,b)=\frac(a,b)}.]
- [\operatorname(21,6)=(21,6)}===42.]
Efficient calculation
The formula
- [\operatorname(a,b)=\frac(a,b)}]
Because (ab)/c = a(b/c) = (a/c)b, one can calculate the lcm using the above formula more efficiently, by first exploiting the fact that b/c or a/c will be easier to calculate than the quotient of the product ab and c, because the fact that c is a factor of both a and b entails that in either fraction, a/c or b/c, one can completely cancel the c. This can be true whether the calculations are performed by a human, or a computer, which may have storage requirements on the variables a, b, c, where the limits may be 4-byte storage - calculating ab may cause an overflow, if storage space is not allocated properly.
Using this, we can then calculate the lcm by either using:
- [\operatorname(a,b)=\left((a,b)}\right)\cdot b]
- [\operatorname(a,b)=a\cdot\left((a,b)}\right).\,]
- [\operatorname(21,6)=(21,6)}\cdot6=\cdot6=7\cdot6=42.]
A way to remember to cancel before multiplying
Those who have taught elementary mathematics sometimes find it frustratingly difficult to get students to remember to cancel before multiplying. The following way of arranging this algorithm has the virtue of making that step impossible to forget in this case (essentially by making it unnecessary to remember). We illustrate it via the example of finding lcm(12, 8).
- First reduce the fraction to lowest terms: [ = .]
- Then "cross-multiply": [12\times 2 = 8\times 3.\,]
- The product 12 × 2 = 8 × 3 = 24 is the lcm.
Alternative method
The unique factorization theorem says that every positive integer number 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:
- [90 = 2^1 \cdot 3^2 \cdot 5^1 = 2 \cdot 9 \cdot 5 \,\!]
We can use this knowledge to easily find the lcm of a group of numbers.
For example: Find the value of lcm(45, 120, 75)
- [45\; \, = 2^0 \cdot 3^2 \cdot 5^1 \,\!]
- [120 = 2^3 \cdot 3^1 \cdot 5^1 \,\!]
- [75\; \,= 2^0 \cdot 3^1 \cdot 5^2. \,\!]
- [\operatorname(45,120,75) = 2^3 \cdot 3^2 \cdot 5^2 = 8 \cdot 9 \cdot 25 = 1800. \,\!]
See also
External links
- [Online LCM calculator]
- [Online lcm calculator]
- [LCM Quiz]
- [LCM and GCF solvers, work shown] These solvers use factorization algorithm described in wikipedia.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
