Euler Hall — free maths guides

The lcm is the smallest number both divide, and it comes from the gcd

A plain-language explanation of the least common multiple. The idea in plain words, a worked example, and a check with the answers shown — part of the free Quantitative Reasoning guides.

ab / gcd(a,b)

The least common multiple ofaa andbb is the smallest positive number that bothaa andbb divide.

The fast route is through the gcd:

lcm⁡(a,b)=a⋅bgcd⁡(a,b).\operatorname{lcm}(a,b) = \frac{a \cdot b}{\gcd(a,b)}.

Fora=6a = 6,b=8b = 8:gcd⁡=2\gcd = 2, solcm⁡=48/2=24\operatorname{lcm} = 48/2 = 24. Checking by listing the multiples of 8 — 8, 16, 24 — the first one 6 also divides is 24. The formula and the listing agree, which is the check to run.

From factorisations the rule is the mirror of the gcd's: take each prime that appears in EITHER number, to the LARGER exponent.

The producta⋅b=48a \cdot b = 48 is also a common multiple, and it is the least one only when the numbers share no factor. That is the error the product distractor models.

Why dividing by the gcd gives the least one

The producta⋅ba \cdot b counts every shared prime TWICE: once fromaa and once frombb. Dividing by the gcd removes the duplicate copies, leaving each shared prime to the larger of its two exponents — which is exactly what an lcm needs.

More precisely: for each primepp, let its exponents inaa andbb beα\alpha andβ\beta. The product has exponentα+β\alpha + \beta; the gcd hasmin⁡(α,β)\min(\alpha,\beta); so the quotient hasα+β−min⁡(α,β)=max⁡(α,β)\alpha + \beta - \min(\alpha,\beta) = \max(\alpha,\beta). An lcm takes each prime to the larger exponent, so the quotient is the lcm.

That is also why the formula fails if you divide by the wrong thing. Dividing by something smaller than the gcd leaves duplicate copies and overshoots; dividing by more undershoots.

The lcm is the companion of the gcd:gcd⁡(a,b)⋅lcm⁡(a,b)=ab\gcd(a,b) \cdot \operatorname{lcm}(a,b) = ab for positive integers, which is a useful cross-check.

Worked example: lcm three ways

Findlcm⁡(18,24)\operatorname{lcm}(18, 24) three ways.

Way one — from the gcd.gcd⁡(18,24)\gcd(18, 24):24=1⋅18+624 = 1 \cdot 18 + 6,18=3⋅6+018 = 3 \cdot 6 + 0, so the gcd is 6. Thenlcm⁡=18⋅24/6=432/6=72\operatorname{lcm} = 18 \cdot 24 / 6 = 432 / 6 = 72.

Way two — from factorisations.18=2⋅3218 = 2 \cdot 3^2 and24=23⋅324 = 2^3 \cdot 3. Each prime to the larger exponent:23⋅32=8⋅9=722^3 \cdot 3^2 = 8 \cdot 9 = 72. Agrees.

Way three — by listing. Multiples of 24: 24, 48, 72. The first that 18 divides:72÷18=472 \div 18 = 4, exact. So 72. Agrees.

Why the three must agree. They compute the same number by three routes, and the factorisation argument says the gcd route gives each prime its larger exponent — which is the definition of the lcm. If any two disagreed, one of the computations would be wrong; all three agreeing is strong evidence.

By the end you can
  • Find an lcm from the gcd
  • Find an lcm from prime factorisations
  • Say why the product is the lcm only for coprime numbers
Check yourself
  1. 1. Findlcm⁡(8,12)\operatorname{lcm}(8, 12).
  2. 2. Findlcm⁡(5,9)\operatorname{lcm}(5, 9).
  3. 3. Is the lcm ever smaller than the larger of the two numbers?
Answers
  1. 1. 24:gcd⁡=4\gcd = 4, so96/4=2496/4 = 24.
  2. 2. 45: they are coprime, so the product.
  3. 3. No. Both numbers divide the lcm, so it cannot be less than either of them.
Work out where to start — free, no accountAnswer six real questions — free, no account