© 2025 Astra.si. All rights reserved.
"For the next generation"
The Greatest Common Divisor (GCD) of two or more integers is the largest integer that divides all of them without leaving a remainder.
The Least Common Multiple (LCM) of two or more integers is the smallest positive integer that is divisible by all of these numbers.
Several methods exist for calculating the Greatest Common Divisor and the Least Common Multiple. Among them, the most well-known are:
Let's calculate the Greatest Common Divisor (GCD) and the Least Common Multiple (LCM) for the numbers 18 and 12.
First, we find the prime factorization of the numbers:
The common prime factors are 2 and 3.
The Greatest Common Divisor is the product of the lowest powers of these common prime factors:
GCD(18, 12) = 2¹ × 3¹ = 2 × 3 = 6.
Method 1: Using the product and GCD
First, calculate the product of the numbers: 18 × 12 = 216.
Then, calculate the LCM as the product of the numbers divided by their GCD:
LCM(18, 12) = 216 / 6 = 36.
Method 2: Using prime factorization
The Least Common Multiple is the product of the highest powers of all prime factors present in either number:
Prime factors involved are 2 and 3.
Highest power of 2 is 2² (from 12).
Highest power of 3 is 3² (from 18).
LCM(18, 12) = 2² × 3² = 4 × 9 = 36.