HowManyNumbers Logo

Least Common Multiple (LCM) of 31 and 40

The least common multiple (LCM) of 31 and 40 is 1240.

What is the Least Common Multiple (LCM)?

The LCM of two integers is the smallest positive integer that is divisible by both numbers. It is often used to find common denominators and solve problems involving periodic events.

Formula for LCM

The LCM of two numbers can be calculated using their GCD:

LCM(a, b) = |a × b| ÷ GCD(a, b)

How to Calculate the LCM of 31 and 40?

First, calculate the GCD of 31 and 40 using the Euclidean algorithm. Then use the formula above to find the LCM.

Step-by-Step GCD Calculation

StepCalculation
1 31 ÷ 40 = 0 remainder 31
2 40 ÷ 31 = 1 remainder 9
3 31 ÷ 9 = 3 remainder 4
4 9 ÷ 4 = 2 remainder 1
5 4 ÷ 1 = 4 remainder 0

Examples of LCM Calculations

NumbersLCM
157 and 132041
198 and 19419206
47 and 1547238
122 and 764636
52 and 211092

Try Calculating LCM of Other Numbers







Related Calculators