Least common multiple by listing
Two lighthouses flash at the same moment. One flashes every four seconds and the other every six. When do they next flash together?
Where you are 4 in Greatest common factor and least common multiple
When you reach for it
Rosa stands on a cliff between two lighthouses. The North light flashes every 4 seconds and the South light every 6 seconds, and both flash at the moment she starts her stopwatch. Counting from then, the North light flashes at these times, in seconds:
These are the multiples of 4. The South light flashes at the multiples of 6:
The two flash together whenever a time is on both lists. Those times, 12, 24, 36 and so on, are the common multiples of 4 and 6, and the first of them, 12 seconds, answers Rosa’s question.
The least common multiple of two whole numbers, neither of them 0, is the smallest positive number that is a multiple of both. It is written \text{LCM}(a, b), so \text{LCM}(4, 6) = 12. Three or more numbers have one too: the smallest positive number that is a multiple of all of them. The word “positive” matters, because 0 = 4 \times 0 is a multiple of every number, and without it every least common multiple would be 0.
Reach for it whenever things repeat on different cycles and you want the first time they line up again: lights, bells, rotas, or a pile of 6 cm tiles beside a pile of 8 cm tiles. One quick sign that a question wants it: the answer is built by repeating the given numbers, so it is at least as big as the larger of them.
The procedure
A multiple of a whole number b is b times a whole number. Here only the positive ones count: b \times 1, b \times 2, b \times 3 and so on, as in factors and multiples. Each list climbs in steps of b, so it is already in increasing order. Every step below rests on that.
Listing both
Write out the multiples of each number in order, and stop at the first number that appears on both lists. That number is a common multiple, because it is on both lists. It is the least one, because a smaller common multiple would have come earlier on both lists, and you would have stopped there instead.
The lists always meet. The product a \times b is on the list for a (it is a times the whole number b) and on the list for b (it is b times a, by the commutative property). So the search never runs past a \times b. It often stops sooner: 4 \times 6 = 24 is on both lists above, but 12 came first.
Listing only the larger number
You need not write the second list at all. A number is a multiple of a exactly when a divides it with nothing left over. So list the multiples of the larger number and test each one by dividing by the smaller: the first that divides exactly is the least common multiple. Starting from the larger number saves work, because its list climbs faster and reaches the answer in fewer entries. For 4 and 6: 6 \div 4 leaves a remainder of 2, and 12 \div 4 = 3 exactly, so the answer is 12.
This also shows that the least common multiple is never smaller than the larger number b, since the smallest positive multiple of b is b itself. When the smaller number divides the larger, that first entry already passes the test, so the least common multiple is the larger number: for example \text{LCM}(5, 15) = 15.
For three or more numbers, list the multiples of the largest and test each one against all the others.
Every time they line up
At 12 seconds Rosa’s two lights have both just flashed, exactly as at the start. From there each repeats its own pattern, so the next shared flash comes 12 seconds later, at 24, then 36, and so on. There is none in between: a shared flash at 12 + t seconds would mean the pattern, run from the start, gives a shared flash at t seconds, earlier than 12, which is impossible. So the lights line up exactly at the multiples of the least common multiple.
GCF or LCM?
The greatest common factor is the other number two numbers share, and word problems mix the two. The question to ask is whether things are being cut up or built up.
- Splitting given amounts into equal parts, as large as possible or as many as possible, asks for the greatest common factor. The answer divides each number, so it is no bigger than the smaller one.
- Repeating cycles, or stacking until two totals match, asks for the least common multiple. The answer is a multiple of each number, so it is no smaller than the larger one.
Worked examples
Listing both
Find the least common multiple of 8 and 12.
SolutionThe multiples of 8 are 8, 16, 24, 32, 40, 48, \dots and the multiples of 12 are 12, 24, 36, 48, \dots. The first number on both lists is 24, so \text{LCM}(8, 12) = 24.
The number 48 is on both lists as well. It is a common multiple, but not the least one, and it is 2 \times 24, as the section on lining up predicts. Check: 24 \div 8 = 3 and 24 \div 12 = 2, both exact.
When one divides the other, and when it does not
Find \text{LCM}(6, 18) and \text{LCM}(8, 9).
SolutionSince 18 \div 6 = 3 exactly, 18 is itself a multiple of 6, and it is the first multiple of 18. So \text{LCM}(6, 18) = 18.
For 8 and 9, list the multiples of the larger number, 9, and test each by dividing by 8. Each of 9, 18, 27, 36, 45, 54, 63 leaves a remainder (for instance 36 = 8 \times 4 + 4), and 72 = 8 \times 9 is the first that divides exactly. So \text{LCM}(8, 9) = 72.
This time the least common multiple is the whole product 8 \times 9, while for 6 and 18 it is far less than 6 \times 18 = 108. Which happens depends on the factors the two numbers share, and Finding them from prime factorizations makes that exact.
Three numbers
Find the least common multiple of 4, 6 and 10.
SolutionList the multiples of the largest, 10, and test each against both 4 and 6.
| Multiple of 10 | divides by 4? | divides by 6? |
|---|---|---|
| 10 | no | no |
| 20 | yes | no |
| 30 | no | yes |
| 40 | yes | no |
| 50 | no | no |
| 60 | yes | yes |
The first that passes both tests is 60, so \text{LCM}(4, 6, 10) = 60. Notice that 20 works for 4 and 10, and 30 for 6 and 10, but neither works for all three.
Two lighthouses
Kai watches two lights. Gull Point flashes every 8 seconds and Seal Rock every 10 seconds, and both flash as he starts timing.
- When do they next flash together?
- How many times has each light flashed by then, not counting the start?
- How many times do they flash together in the first two minutes, counting a shared flash at exactly two minutes but not the start?
- The flash times are multiples of 8 and of 10, so the first shared one is \text{LCM}(8, 10). List the multiples of 10 and test by 8: 10, 20 and 30 leave remainders, and 40 = 8 \times 5. They next flash together after 40 seconds.
- Gull Point has flashed 40 \div 8 = 5 times and Seal Rock 40 \div 10 = 4 times; the last flash of each is the shared one.
- Two minutes is 2 \times 60 = 120 seconds. The lights line up at the multiples of 40, which are 40, 80 and 120 up to that point. That is 3 times.
GCF or LCM?
- Thandiwe, a lighthouse keeper, has a red rope 20 m long and a blue rope 28 m long. She cuts both into pieces of one equal length, a whole number of meters, with nothing left over, and wants the pieces as long as possible. How long is each piece?
- Nikolai sees two lights that flash every 20 seconds and every 28 seconds, together at the start. When do they next flash together?
- The ropes are being cut up, so this is a greatest common factor question. The piece length must divide both 20 and 28. The factors of 20 are 1, 2, 4, 5, 10, 20 and those of 28 are 1, 2, 4, 7, 14, 28, so the largest shared one is 4. Each piece is 4 m: 5 red pieces and 7 blue ones.
- The flashes repeat until they line up, so this is a least common multiple question. List the multiples of 28 and test by 20: 28, 56, 84 and 112 all fail, since a multiple of 20 ends in 0, and 140 = 20 \times 7. They next flash together after 140 seconds.
The same two numbers give 4 one way and 140 the other. The first is no bigger than 20, the second no smaller than 28, which is the quick check that the right one was chosen.
Working backwards
Sana’s lighthouse flashes every 6 seconds. A second light flashes less often, every whole number of seconds. Both flash at the start, and they next flash together exactly 30 seconds later. How often can the second light flash?
SolutionSay the second light flashes every p seconds, with p greater than 6. It flashes at 30 seconds, so 30 is a multiple of p, which means p is a factor of 30. The factors of 30 are 1, 2, 3, 5, 6, 10, 15, 30, and the ones greater than 6 are 10, 15 and 30.
Being a common multiple is not enough: 30 must be the least one. Test each choice.
- p = 10: the multiples 10 and 20 are not multiples of 6, and 30 is, so \text{LCM}(6, 10) = 30.
- p = 15: 15 is not a multiple of 6, and 30 is, so \text{LCM}(6, 15) = 30.
- p = 30: 30 is a multiple of 6, so \text{LCM}(6, 30) = 30.
The second light flashes every 10, 15 or 30 seconds. The test matters: had faster lights been allowed, p = 3 is a factor of 30, yet \text{LCM}(6, 3) = 6, so those lights would meet after 6 seconds, not 30.
Boundaries
The method needs whole numbers other than 0. The only multiple of 0 is 0, which the definition rules out, so 0 has no least common multiple here.
Listing is slow when the numbers are large and share no factor but 1. For 23 and 29 the list of multiples of 29 runs to 23 entries, the last of them \text{LCM}(23, 29) = 667. Prime factorizations find it without any list.
In a “when do they line up” problem the least common multiple answers the question only when both cycles start together. If one light flashes at 1, 5, 9, 13, \dots seconds (every 4, starting at 1) and the other at 0, 6, 12, 18, \dots, the first list holds only odd numbers and the second only even ones, so the lights never flash together at all.
Where this goes next
Adding \displaystyle \frac{1}{4} and \displaystyle \frac{1}{6} needs a denominator that both 4 and 6 divide, and the smallest one is \text{LCM}(4, 6) = 12. That is the least common denominator, and it is what makes adding fractions with unlike denominators work with small numbers. For larger numbers, Finding them from prime factorizations finds the least common multiple from prime factorizations and shows how it is tied to the greatest common factor.
Exercises
Find the least common multiple
- 4 and 10
- 6 and 9
- 5 and 8
- 12 and 16
- 14 and 21
- 9 and 27
- 10 and 25
- 16 and 20
Three numbers
- 2, 5 and 6
- 3, 4 and 8
- 6, 8 and 9
When do they line up?
In each, everything happens together at the start.
- Bruno sees two lighthouses flash every 6 seconds and every 14 seconds. When do they next flash together?
- Two beams flash every 9 seconds and every 12 seconds. Give the next three times they flash together.
- A lighthouse flashes every 15 seconds and a bell buoy rings every 20 seconds. When do they next happen together, and how many times has the lighthouse flashed by then?
- Nikolai watches lights that flash every 12 seconds and every 18 seconds. How many times do they flash together in the first 5 minutes, counting a shared flash at exactly 5 minutes but not the start?
- Bruno cleans the North lamp every 6 days and Rosa cleans the South lamp every 10 days. Both clean today. In how many days do they next clean on the same day?
- Three lighthouses flash every 4, 5 and 6 seconds. When do all three next flash together?
GCF or LCM?
Say which one each question needs, then answer it.
- Sana stacks red tiles 6 cm thick in one pile and blue tiles 8 cm thick in another, until the piles are the same height. What is the smallest such height, and how many tiles of each color does it use?
- Bruno has 21 red flags and 35 white flags. He makes identical bundles using every flag, as many bundles as possible. How many bundles, and what is in each?
- Rosa hears a foghorn every 35 seconds and sees a beam every 10 seconds, together at the start. When are they next together?
- Kai cuts strips 45 cm and 60 cm long into pieces of one equal length, a whole number of centimeters, with nothing left over, as long as possible. How long is each piece, and how many are there?
Working backwards
- One light flashes every 4 seconds. Another flashes every p seconds, where p is a whole number greater than 4 and less than 12. Both flash at the start, and they next flash together after 20 seconds. Find every possible p.
Reasoning
- Explain why the least common multiple of two numbers is never smaller than the larger of them, and say when it equals the larger one.
- Explain why a \times b is always a common multiple of a and b. Give a pair of numbers for which it is not the least common multiple.
- Thandiwe says: “The lights flash every 6 and every 9 seconds, so they flash together every 6 + 9 = 15 seconds.” Explain what is wrong, and give the correct time.
Answers
- 20. Multiples of 10: 10 fails (10 \div 4 leaves 2), 20 = 4 \times 5.
- 18. Multiples of 9: 9 fails, 18 = 6 \times 3.
- 40. Multiples of 8: 8, 16, 24, 32 fail, 40 = 5 \times 8.
- 48. Multiples of 16: 16 and 32 fail, 48 = 12 \times 4.
- 42. Multiples of 21: 21 fails, 42 = 14 \times 3.
- 27. 27 = 9 \times 3, so 9 divides 27.
- 50. Multiples of 25: 25 fails, 50 = 10 \times 5.
- 80. Multiples of 20: 20, 40, 60 fail, 80 = 16 \times 5.
- 30. Multiples of 6: 6, 12, 18, 24 fail the test by 5, and 30 passes by 2 and 5.
- 24. Multiples of 8: 8 and 16 fail the test by 3, and 24 passes by 3 and 4.
- 72. Multiples of 9: 9 to 63 each fail by 6 or by 8, and 72 = 6 \times 12 = 8 \times 9.
- After 42 seconds. Multiples of 14: 14 and 28 fail, 42 = 6 \times 7.
- At 36, 72 and 108 seconds. \text{LCM}(9, 12) = 36, and the lights line up at its multiples.
- After 60 seconds, by which time the lighthouse has flashed 60 \div 15 = 4 times. \text{LCM}(15, 20) = 60.
- 8 times. \text{LCM}(12, 18) = 36; five minutes is 300 seconds, and 36 \times 8 = 288 while 36 \times 9 = 324 is too late.
- In 30 days. Multiples of 10: 10 and 20 fail, 30 = 6 \times 5.
- After 60 seconds. Multiples of 6: none before 60 is divisible by both 4 and 5.
- LCM: 24 cm, using 4 red tiles and 3 blue tiles. \text{LCM}(6, 8) = 24.
- GCF: 7 bundles, each with 3 red and 5 white flags. The greatest common factor of 21 and 35 is 7.
- LCM: after 70 seconds. Multiples of 35: 35 fails, 70 = 10 \times 7.
- GCF: 15 cm, giving 3 pieces from the shorter strip and 4 from the longer, 7 in all.
- p = 5 or p = 10. p must be a factor of 20 between 4 and 12, so 5 or 10, and \text{LCM}(4, 5) = 20 and \text{LCM}(4, 10) = 20. The other values fail: for instance \text{LCM}(4, 6) = 12 and \text{LCM}(4, 8) = 8.
- The least common multiple is a multiple of the larger number b, and the smallest positive multiple of b is b \times 1 = b. It equals b exactly when the smaller number divides b.
- a \times b is a times the whole number b, and, by the commutative property, b times the whole number a, so it is on both lists. For 6 and 8 the product is 48 but the least common multiple is 24.
- A shared flash time must be a multiple of both 6 and 9, and 15 is a multiple of neither. The correct time is \text{LCM}(6, 9) = 18 seconds: 9 fails and 18 = 6 \times 3.