Least Common Multiple of Two Positive Integers
Find the least common multiple of two positive integers, whether you need a common denominator or the first time two repeating cycles coincide.
Formula & assumptions
lcm(a,b) = ab ÷ gcd(a,b)
The least common multiple is useful for finding a common denominator.
Worked example
- First integer
- 12
- Second integer
- 18
- LCM
- 36
Interpreting the result
For cycles starting together, the LCM gives the interval until both next return to their starting point together.