Skip to content
← All questions

What is the general formula for computing the least common multiple of two positive integers using their greatest common divisor?

The general formula for the least common multiple (LCM) of two positive integers a and b is their product divided by their greatest common divisor (GCD): LCM(a,b) = (a∗ba * b) / GCD(a,b).

Conditions

  • a and b are positive integers.

Reasoning, step by step

  1. Identify the two positive integers a and b.
  2. Compute their greatest common divisor, GCD(a,b).
  3. Multiply a and b together.
  4. Divide the product by the GCD to get the LCM.

Example

The video writes 'LCM = a⋅ba\cdot b / GCD' and applies it to 4 and 6: gcd(4,6)=2, so LCM(4,6) = (4∗64*6)/2 = 24/2=1224/2 = 12.

Common misconceptions

  • Forgetting to divide by the GCD, which would incorrectly yield the product instead of the LCM for non-coprime numbers.
  • Confusing the GCD formula with the coprime product shortcut.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.