Least Common Multiples and Where They Show Up
Find least common multiples three ways and see them at work in fractions, timetables, gears, calendars and repeating cycles.
Key takeaways
- The least common multiple is the first positive number appearing in the multiplication lists of all the given numbers.
- With prime factorizations, take the highest power of every prime that appears in any of the numbers.
- For two positive numbers, lcm(a, b) = a × b ÷ gcd(a, b), but that shortcut does not extend directly to three.
- Every common multiple is a multiple of the least one, so a combined cycle repeats exactly at those intervals.
The least common multiple of two positive whole numbers is the smallest positive number that both of them divide. For 4 and 6 it is 12. You meet it whenever two repeating things need to line up: two bus routes leaving a station together again, two gears returning to their starting teeth, or two fractions needing a shared denominator.
It is written lcm(a, b). A multiple of a is a times a whole number, so the multiples of 4 are 4, 8, 12, 16 and so on. A common multiple appears in both lists, and the least one is the first they share.
Method 1: list the multiples
For small numbers, writing lists is the clearest way to see what is going on.
multiples of 12: 12, 24, 36, 48, 60, 72
multiples of 18: 18, 36, 54, 72
common: 36, 72, ...
lcm(12, 18) = 36 Notice that the next common multiple, 72, is twice the first. That is no accident. If m is any common multiple and L is the least one, divide m by L. The remainder is still a multiple of both numbers and is smaller than L, so it must be 0. Every common multiple is therefore a multiple of the least.
A faster version lists only the multiples of the larger number and stops at the first one the smaller divides: 18 fails, 36 works.
Method 2: use prime factors
Write each number as a product of primes. A common multiple must contain every prime power found in either number, and the least one contains nothing extra.
360 = 2³ × 3² × 5
84 = 2² × 3 × 7
lcm = 2³ × 3² × 5 × 7 = 2520
gcd = 2² × 3 = 12 For the least common multiple take the larger exponent of each prime. For the greatest common divisor take the smaller. This works because prime factorization is unique.
Method 3: go through the greatest common divisor
Look at the two results above: 2520 × 12 = 30,240, and 360 × 84 = 30,240. For each prime, the larger exponent plus the smaller exponent equals the sum of the two original exponents. Hence, for positive a and b:
lcm(a, b) × gcd(a, b) = a × b This is the practical method for large numbers, because the Euclidean algorithm finds the gcd quickly without any factoring. To keep numbers small, divide first and then multiply.
gcd(1071, 462) = 21
lcm = (1071 ÷ 21) × 462 = 51 × 462 = 23,562 If two numbers share no factor beyond 1, their gcd is 1 and their least common multiple is simply their product. So lcm(8, 15) = 120.
Adding fractions
The most familiar use is finding a lowest common denominator. To add 5/12 and 7/18, both fractions must be cut into pieces of the same size.
lcm(12, 18) = 36
5/12 = 15/36 multiply top and bottom by 3
7/18 = 14/36 multiply top and bottom by 2
sum = 29/36 You could use 12 × 18 = 216 instead. The answer 174/216 is correct, but it then needs reducing by 6. Using the least common multiple keeps the arithmetic lighter. It does not always give a fraction already in lowest terms: 1/6 + 1/10 = 5/30 + 3/30 = 8/30, which reduces to 4/15.
Timetables and gears
Suppose one bus leaves every 12 minutes and another every 18 minutes, and both leave at 8:00. They next leave together 36 minutes later, at 8:36, and again at 9:12. In that first interval the first bus has made 3 departures after 8:00 and the second 2.
Gears behave the same way. Mesh a wheel of 24 teeth with one of 36 teeth and mark the touching pair. The marks meet again after 72 teeth have passed the contact point, since lcm(24, 36) = 72. That is 3 turns of the small wheel and 2 of the large one.
Engineers sometimes choose tooth counts with no common factor, such as 24 and 35. Then a given tooth meets every tooth on the other wheel before the pattern repeats, which tends to spread wear.
Hypothetical example: the numbers are made up to show the method, not a quote or an average.
Calendars and cycles
Many calendar systems combine cycles of different lengths. The traditional Chinese cycle pairs 10 heavenly stems with 12 earthly branches, advancing both together. The pairing repeats after lcm(10, 12) = 60 steps. Only 60 of the 120 conceivable pairs ever occur, because the gcd of 10 and 12 is 2.
The Maya combined a 260-day ritual count with a 365-day year.
gcd(260, 365) = 5
lcm(260, 365) = 260 × 365 ÷ 5 = 18,980 days
18,980 ÷ 365 = 52 years of 365 days That 52-year period is known as the Calendar Round.
Nature offers a much-discussed example. Some cicadas emerge every 13 or 17 years. A predator with a 4-year cycle would coincide with a 17-year brood only every lcm(4, 17) = 68 years, against every 12 years for a hypothetical 12-year brood. Whether this explains the prime cycles is a hypothesis, weighed in cicadas and the prime number idea.
More than two numbers
Work in pairs: lcm(a, b, c) = lcm(lcm(a, b), c). For 4, 6 and 10, first lcm(4, 6) = 12, then lcm(12, 10) = 60.
The product formula does not carry over. For 2, 4 and 6 the least common multiple is 12 and the greatest common divisor is 2, giving 24, while the product of the three numbers is 48.
The least common multiple of a whole run of numbers grows quickly.
| Numbers | Least common multiple |
|---|---|
| 1 to 6 | 60 |
| 1 to 10 | 2520 |
| 1 to 20 | 232,792,560 |
So 2520 is the smallest number divisible by every whole number from 1 to 10. Its factorization is 2³ × 3² × 5 × 7: the highest power of 2 up to 10 is 8, of 3 is 9, and 5 and 7 appear once.
Decimals, patterns and repeating blocks
Least common multiples also control how combined patterns repeat. Suppose a string of beads cycles through 4 colors while the bead shapes cycle through 6. The combined look repeats every lcm(4, 6) = 12 beads, so only 12 of the 24 conceivable color and shape pairs ever appear.
The same thing happens with repeating decimals. The fraction 1/3 has a repeating block of length 1, and 1/11 = 0.090909... has a block of length 2. Now look at 1/7 = 0.142857142857..., with a block of length 6, beside 1/37 = 0.027027..., with a block of length 3. Their sum repeats every lcm(6, 3) = 6 digits at most.
In music and rhythm, playing 3 even beats against 4 over the same span gives a pattern best counted in 12 equal pulses. One part strikes on pulses 1, 5 and 9, and the other on pulses 1, 4, 7 and 10. The two meet only at the start of each cycle, because 3 and 4 share no common factor.
Why every common multiple is built from the least
The fact that common multiples are exactly the multiples of the least one is what makes these cycles regular. Once two periodic events coincide, the situation is the same as at the start, so the whole history repeats.
It also gives a neat rule for divisibility. A number is divisible by both 4 and 6 exactly when it is divisible by 12, not necessarily by 24. The number 36 shows the difference. When two divisors are coprime, such as 4 and 9, the least common multiple is the product, so being divisible by both really does mean being divisible by 36.
This is why a test for divisibility by 6 can combine the tests for 2 and 3, while a test for divisibility by 8 cannot be assembled from 2 and 4. The second pair overlaps, and lcm(2, 4) is only 4.
A puzzle that uses it
A box of tiles leaves 1 over when counted in groups of 4, 5 or 6, and holds fewer than 100 tiles but more than 1. How many are there?
Subtract the leftover tile. What remains is divisible by 4, 5 and 6, so it is a multiple of lcm(4, 5, 6) = 60. The only count in range is 61.
A close relative asks for a count that is 1 short each time: 3 over in groups of 4, 4 over in groups of 5 and 5 over in groups of 6. Add one imaginary tile and the total is again divisible by all three sizes, so the real count is 59, then 119, and so on every 60. Spotting a shared surplus or shortage is often the whole trick.
When the leftovers differ from group to group, the idea extends to the Chinese remainder theorem, where the least common multiple of the group sizes tells you how often solutions repeat.
Choosing a method
All three methods give the same answer, so pick by the size and shape of the numbers. For numbers below about 50, listing multiples of the larger one is usually quickest and hardest to get wrong. When you already have factorizations, or need to combine several numbers at once, the prime power method shows exactly what each number contributes.
For large numbers with no obvious factors, take the greatest common divisor route. Try it on 4,757 and 4,891. The first division gives a remainder of 134, then 4,757 = 35 × 134 + 67, then 134 = 2 × 67. So the gcd is 67, and the least common multiple is (4,757 ÷ 67) × 4,891 = 71 × 4,891 = 347,261. Finding the factor 67 by trial division would have taken far longer.
Common mistakes
- Confusing the two ideas. The gcd is never larger than the smaller number, while the lcm of positive numbers is never smaller than the larger one.
- Multiplying the numbers and stopping there. That gives a common multiple, which is the least only when the numbers are coprime.
- Adding exponents in the prime method. Take the maximum, not the sum.
- Applying the two-number product formula to three numbers.
Common questions
Is there a greatest common multiple?
No. Any common multiple can be doubled to get a larger one, which is why the interesting end of the list is the smallest.
What about zero or negative numbers?
The usual convention sets lcm(a, 0) = 0, since 0 is the only multiple of 0. For negative numbers, take absolute values and proceed as before.