Tips and Tricks for LCM (original) (raw)

Last Updated : 23 Jul, 2025

**LCM (Least Common Multiple) is the smallest positive integer that is divisible by each of the given numbers. Generally, we use prime factorization or division method to find LCM, but for large numbers, it can take a lot of time to find all the prime factors. In such cases, we can use the relationship between GCD and LCM to quickly find the LCM of the required numbers.

In this, we use the following formula:

LCM(a,b) = ∣a×b∣​/GCD(a,b)

For example, find the LCM of 18 and 24.

Solution:

To find the **GCD of 18 and 24, we use the Euclidean algorithm:

So, the **GCD(18, 24) = 6.

Now, LCM(18,24) = (18 × 24)/6 ​= 432/6 ​= 72

The **LCM of 18 and 24 is 72.

Other Tricks for LCM

Some other tips and tricks to find LCM are:

**Read More,