Calculatorism

Least Common Multiple Calculator

Find the LCM of two or three integers.

Input Data

整數。
整數。
設為 0 表示只算 A、B。

Results

36
LCM of [12, 18] = 36

At a glance:The LCM is the smallest positive integer divisible by all given integers. For two numbers LCM(a,b)=|a·b|/GCD(a,b); for three, LCM(a,b,c)=LCM(LCM(a,b),c).

Formula

LCM(a,b) = |a·b| / GCD(a,b).

Multiple numbers: merge pairwise.

How to Use

  1. Enter A, B (and optional C).
  2. Read the LCM.

FAQ

Relation to GCD?

a·b = LCM(a,b)·GCD(a,b), so LCM = product / GCD.

With 0?

LCM of any number and 0 is 0.

Related Tools

References

Content review: Calculatorism Science Team. Results are for reference only.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Least Common Multiple Calculator/math/least-common-multiple)。