GCD and LCM Calculator: Greatest Common Divisor & Least Common Multiple
Learn how to calculate GCD and LCM, understand their applications, and master these fundamental mathematical concepts.
2024-12-284 min
What is GCD?
The Greatest Common Divisor (GCD) is the largest positive integer that divides two or more numbers without a remainder.
Example: GCD of 12 and 18
What is LCM?
The Least Common Multiple (LCM) is the smallest positive integer that is divisible by two or more numbers.
Example: LCM of 4 and 6
Calculation Methods
Euclidean Algorithm for GCD
GCD(a, b) = GCD(b, a mod b)
Stop when b = 0, GCD = aGCD-LCM Relationship
LCM(a, b) = (a × b) / GCD(a, b)Real-World Applications
GCD Uses
LCM Uses
Example Problems
Simplify 24/36
GCD(24, 36) = 12
24/36 = (24÷12)/(36÷12) = 2/3
When will buses arrive together?
Bus A: every 15 min, Bus B: every 20 min
LCM(15, 20) = 60 minutes