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
- Enter A, B (and optional C).
- 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.