10/10
Mastery
Watch the video
Optional
Do the practice set
Required
Take the mastery quiz
Required

Two questions with one answer between them

Given two numbers, there is a largest number that divides both of them and a smallest number that both of them divide. Neither has to be hunted for. Once you have the prime decompositions, both are read straight off.
You have learned that every natural number has exactly one prime decomposition. That fact is what makes this module easy. Write two numbers as products of primes, set the lists side by side, and the two answers are sitting there: one takes the primes the lists share, the other takes every prime that appears in either list.

The two names are worth pinning down, because they sound alike and mean opposite things. The greatest common divisor, also called the greatest common factor, is a number you divide by, so it is never larger than the numbers you started with. The least common multiple is a number you count up to, so it is never smaller than them. If your GCD comes out bigger than either number, or your LCM smaller, you have swapped them.

Reading the two lists

Poorer for the divisor, greedier for the multiple
Write both numbers as products of primes and line them up. \[60 = 2 \times 2 \times 3 \times 5 \qquad\qquad 72 = 2 \times 2 \times 2 \times 3 \times 3\] For the greatest common divisor, keep only the primes that appear in both lists, and only as many times as the poorer list has them. Both can spare two 2s and one 3, so \(\text{GCD} = 2 \times 2 \times 3 = 12\).

For the least common multiple, take every prime that appears in either list, as many times as the greedier list has it. That is three 2s, two 3s and one 5, so \(\text{LCM} = 2 \times 2 \times 2 \times 3 \times 3 \times 5 = 360\).

Poorer for the divisor, greedier for the multiple. That is the whole method, and it works for three numbers exactly as it does for two: a prime has to appear in every list to count towards the GCD, and in any list to count towards the LCM.

Three ways to catch a mistake

The divisor
≤
the GCD divides both, so it cannot exceed the smaller number
The multiple
≥
the LCM is divisible by both, so it cannot be less than the larger number
Together
×
for two numbers, GCD times LCM equals the two numbers multiplied
That third one is a genuinely useful check. For the pair above, \(12 \times 360 = 4320\), and \(60 \times 72 = 4320\) as well. If your two answers do not multiply to the product of the original numbers, one of them is wrong. Note that this test works for two numbers only; it fails for three, so use the first two checks on those.

The multiple that is not the product

Multiplying gives a common multiple, rarely the least one
Multiplying two numbers always produces something both of them divide, so it is a common multiple. It is the least one only when the two numbers share no prime at all. Whenever they do share something, the product double-counts it and overshoots. \[\text{LCM of } 4 \text{ and } 10 = 20, \text{ not } 40\] Both numbers carry a 2, and the product counts that 2 twice. Taking the greedier count instead, two 2s and one 5, gives 20.
When one number already divides the other
If the larger number is already a multiple of the smaller, the least common multiple is simply the larger number, and the greatest common divisor is the smaller one.

© 2026 S. R. Kingan. All rights reserved. Free for your own study. No copying or redistribution without written permission. Terms of use