Two numbers raise two natural questions. What is the biggest number that divides both of them, and what is the smallest number that both of them divide? The first answer is the GCD and the second is the LCM. The prime fingerprints from 3.3 give you both.
Problem
A maker has ribbons of 56 cm and 70 cm. She wants to cut both into equal whole-centimeter pieces with no scrap. List the divisors of each and find the longest piece length that works for both.
Show a hint
- A piece length works for a ribbon only if it divides that ribbon's length with nothing left over. So write the divisors of 56 and the divisors of 70, then look for the numbers that show up on both lists.
- The divisors of 56 are and the divisors of 70 are . Which numbers sit on both lists, and which of those is biggest?
Show the full solution
A piece length works on a ribbon only if it divides that length evenly, so write out both divisor lists. The numbers on both lists are and , and the largest is centimeters. That gives and , four pieces from one ribbon and five from the other with no scrap.
Problem
Use the fingerprints and to find . Take each shared prime to its lower power.
Show a hint
- Go prime by prime. For the prime , the number carries three of them and carries two. A divisor of both can lean on at most the smaller count, two. Do the same for , and then ask whether or can appear at all.
- A prime that lives in only one fingerprint cannot divide the other number, so it cannot appear in the gcd. Take each shared prime to the smaller of its two powers, then multiply those together.
Show the full solution
Go prime by prime and keep the smaller power. For , that is . For , it is . The sits only in and the only in , so neither can divide both numbers. A common divisor can only use primes both numbers carry, and never more copies than the smaller supply has.
Problem
A volunteer has 90 soap bars and 126 seed packets. Every kit holds the same counts with no leftovers. With , find the greatest number of identical kits she can build.
Show a hint
- The number of kits must divide evenly, so the soap splits with none left over, and it must also divide evenly for the seeds. So the kit count is a common divisor of and , and she wants the greatest one.
- Take each shared prime to its lower power. Both numbers carry , both carry , but belongs only to and only to . Multiply the shared part.
Show the full solution
The kit count has to divide both totals evenly, so it is a common divisor of and , and she wants the greatest one. Both carry one and both carry , while belongs to alone and to alone. Each kit holds bars and packets. Splitting two quantities into as many identical full shares as possible is always a gcd question.
Problem
Two gears have 24 and 35 teeth, with and . They share no prime factor. How many teeth must pass the meshing point before the red teeth touch again?
Show a hint
- The red teeth realign after a count of teeth that both and divide evenly, so you want the smallest number that is a multiple of both. Start listing multiples of and check which is the first that also divides.
- Because and share no prime factor, a number divisible by both must carry all of 's primes and all of 's primes with no overlap to save on. The smallest such number is just .
Show the full solution
The red teeth meet again at the first tooth count both gears divide evenly. Since and share no prime, a number divisible by both has to carry all four primes, and the smallest one that does is their product. That is full turns of the -tooth gear and of the -tooth one. Coprime numbers have nothing to share, so their lcm is just the two multiplied together.
That problem was the second question, the smallest count that both numbers divide evenly. When two numbers share no factors, that count is just their product. When they do share factors, it comes out smaller.
Problem
Two beacons flash every 9 seconds and every 12 seconds. List the flash times and find the first second after the start when both flash together.
Show a hint
- The first beacon flashes at the multiples of , the second at the multiples of . You want the first number that shows up on both lists of multiples.
- Multiples of are and multiples of are . What is the smallest number appearing on both?
Show the full solution
The first beacon flashes at the multiples of and the second at the multiples of , so walk both lists. The first number on both is second , where one beacon has flashed four times and the other three. That beats because and share a factor of that does not need counting twice.
Problem
Use and to find . Take each prime to its higher power, including primes in only one fingerprint.
Show a hint
- Go prime by prime again, but this time take the larger demand. For , the number wants while only wants , so the lcm must supply to satisfy . Do the same for every prime that appears in either number.
- Every prime in either fingerprint must appear in the lcm, each to the highest power demanded by either number. Collect , , , and , then multiply.
Show the full solution
A number that both and divide has to meet the larger demand for every prime. For that is , from . For it is , from . The and the each show up in only one number but still have to appear. Check that . The lcm takes each prime to the higher power, the mirror of the gcd taking the lower.
Problem
Three subway lines depart every 12, 18, and 30 minutes. Build from the fingerprints and report how many minutes until all three lines next leave together.
Show a hint
- Each line departs at the multiples of its own period, so all three leave together at a common multiple of , , and . You want the smallest such number, the least common multiple of all three.
- Write , , and . For each prime that appears, take the highest power any of the three numbers demands, then multiply.
Show the full solution
All three lines leave together at the common multiples of , , and , so take each prime to the highest power any of the three demands. That is from , from , and from . And indeed . The rule stretches to any number of values, always the highest power demanded by any of them.
Problem
A locksmith knows two numbers have and , and one number is 48. Use the relationship to find the other number.
Show a hint
- Try multiplying a few pairs of numbers and comparing the product to the gcd times the lcm of the same pair. For example take and : their product is , their gcd is , and their lcm is . What do you notice about ?
- For any two numbers, the gcd times the lcm equals the two numbers multiplied together. So here . Solve for the other number.
Show the full solution
For any pair, , so the two numbers multiply to . Dividing out the known one, Checking, and share , and their lcm is . The rule holds because for each prime the gcd takes the lower power and the lcm takes the higher, so between them they use exactly the two powers the numbers had.
Problem
Dividing marbles into groups of 4, 6, or 9 always leaves exactly 1 over. What is the smallest number of marbles greater than 1 that behaves this way?
Show a hint
- If you set the one leftover marble aside, the rest divide perfectly into groups of , of , and of . So the count minus is a common multiple of , , and .
- The smallest number that , , and all divide is . Find it, then add back the single leftover marble.
- With , , and , the lcm is . The marble count is one more than the smallest common multiple above zero.
Show the full solution
Lift the one leftover marble away and what remains divides evenly into groups of , of , and of , so the count minus is a common multiple of all three. Put the stranded marble back and the count is . A number leaving the same remainder under several divisors sits that fixed step above a common multiple, so the smallest one is the lcm plus the remainder.
Problem
A bakery wants the smallest four-digit batch number divisible by 6, 8, and 9 at once. Find , then find its smallest four-digit multiple.
Show a hint
- A number divisible by , , and is exactly a common multiple of the three, so the ones that qualify are the multiples of . Find that lcm first.
- With , , and , the lcm is . Now find the smallest four-digit multiple of by dividing by and rounding up.
Show the full solution
Divisible by , , and at once means being a multiple of their lcm. Since , thirteen s land at , still three digits, so the next multiple is the first to clear the line. Hitting several divisors at once collapses the search into one list, the multiples of a single number.
Problem
Two pendulums swing every 21 and 28 seconds (, ). Find their lcm, then count how many times both start a swing together in the first 600 seconds.
Show a hint
- The first pendulum starts a swing at the multiples of , the second at the multiples of . They begin together exactly at the common multiples of and , which are the multiples of . Find that lcm first.
- With and , the lcm is . Now count how many multiples of land in the window from just after up to .
- Count the whole multiples of that are at most . Since and , see how many steps of fit before passing .
Show the full solution
The pendulums start together at the common multiples of and , which are the multiples of their lcm. Stepping by gives , and the next would be , past . That is shared starts. Counting coincidences in a window is just counting multiples of one number, the lcm of the two periods.
Both ideas come from the same two fingerprints. The overlap gives the gcd, everything across both gives the lcm, and ties them together. The common multiples of a pair are exactly the multiples of their lcm, which sends you back to the multiple counting of 3.1.
Practice these ideas
Practice
Find using and . Take each shared prime to its lower power.
Show the solution
Keep each shared prime at its lower power. For that is , and for it is . The appears only in , so it contributes nothing. Check that and , both whole.
Practice
Using and , find by taking each prime to its higher power.
Show the solution
Take each prime to its higher power, including one carried by just a single number. For that is , for it is , and the from has to come along. The gcd was , and , exactly as promises.
Practice
With and , do these numbers share any prime factor? Report their greatest common divisor.
Show the solution
is built only from , and carries no at all. With no prime in common, the only number dividing both is . Two numbers that share no prime are called coprime, and their gcd is always .
Practice
Two numbers have and . One number is 45. Find the other.
Show the solution
Since , the two numbers multiply to . Dividing out the known one, Checking, and share , and their lcm is .
Practice
Two ferries leave together and return every 16 and 24 minutes. How many minutes until both depart together again?
Show the solution
The ferries leave together at the common multiples of and , and the first one is their lcm. Check that , both whole.
Practice
Stacking badges leaves 1 over for groups of 5, 6, or 8. What is the smallest badge count greater than 1 with this property?
Show the solution
Set the leftover badge aside and the rest divides evenly into stacks of , , and , so the count minus is a common multiple of the three. With and , Adding the badge back gives . Check that .
Practice
Two readings of two fingerprints. The gcd takes each shared prime to its lower power, and the lcm takes every prime to its higher power. They satisfy . Common multiples are multiples of the lcm.
Practice
Two rhythms of 9 and 12 beats loop together. Find the largest common multiple of 9 and 12 below 300.
Show the solution
A loop that is a whole number of both rhythms is a common multiple of and , so it is a multiple of their lcm. Since , the largest multiple staying under is , and the next one, , sails past. The common multiples of two numbers are exactly the multiples of their lcm, so a hunt like this only ever scans one list.
Practice
A poster shop prints only in runs divisible by 4, 5, and 6 at once. Find and its smallest three-digit multiple.
Show the solution
A run divisible by all three is a common multiple of , , and , so it is a multiple of their lcm. The multiples of run , and the first with three digits is . Check that .
Practice
Two lights flash every 10 and 15 seconds. In 300 seconds after the start, how many times do both flash together?
Show the solution
The lights coincide at the common multiples of and , which are the multiples of their lcm. So they flash together every seconds, and of those land in the window, at , on up to .
Practice
A crowd leaves 1 person over for teams of 2, 3, 4, or 5. What is the smallest crowd greater than 1 with this property?
Show the solution
Set the leftover person aside and the rest splits evenly into teams of , , , and , so the crowd minus is a common multiple of all four. Adding that person back gives . Check that leaves exactly over for each of the four team sizes.
Practice
A wall is 132 cm by 198 cm. Using and , find the side length of the largest square tile that fits exactly.
Show the solution
A tile of side fits exactly only when divides both and , so the largest tile is the gcd. Each shared prime goes to its lower power, giving one , one , and one . The tile is cm on a side, fitting across and up. The largest square that tiles a whole-number rectangle is always the gcd of the two sides.
Practice
A number leaves remainder 3 when divided by 4, remainder 5 when divided by 6, and remainder 7 when divided by 8. Notice each remainder is one less than its divisor. What is the smallest such number?
Show the solution
Each remainder is one less than its divisor, so adding would make the number divide evenly by , , and at once. That puts it one below a common multiple. So the number is . Check that .
Practice
GCD and LCM are the engines of fractions. Reducing divides by the gcd, and adding different-denominator fractions uses the lcm as common denominator. Master these now and fraction work becomes routine.
QuanticaPrealgebraOpen in the course