GCD and LCM travel together

For any two positive integers a and b:
LCM(a, b) = |a × b| ÷ GCD(a, b)So if you know one, you can get the other without listing multiples. This page uses the Euclidean algorithm (repeated remainder) — the same method taught in middle-school number theory, just automated.
Example: GCD(48, 18)
- 48 ÷ 18 = 2 remainder 12
- 18 ÷ 12 = 1 remainder 6
- 12 ÷ 6 = 2 remainder 0 → GCD is 6
Then LCM(48, 18) = 48 × 18 ÷ 6 = 144.