The Greatest Common Divisor (GCD) and Lowest Common Multiple (LCM) are fundamental number theory concepts with practical uses in fractions, scheduling, engineering, and music. The GCD is the largest integer that divides two or more numbers without a remainder. The LCM is the smallest positive integer that is divisible by all of the given numbers. Both are computed efficiently using the Euclidean algorithm.
The Euclidean Algorithm — How GCD Is Calculated
The Euclidean algorithm works by repeatedly taking the remainder of dividing the larger number by the smaller, until the remainder is zero. The last non-zero remainder is the GCD.
Example: GCD(48, 18). 48 ÷ 18 = 2 remainder 12. 18 ÷ 12 = 1 remainder 6. 12 ÷ 6 = 2 remainder 0. GCD = 6.
Once you have the GCD, LCM follows from: LCM(a, b) = (a × b) ÷ GCD(a, b). LCM(48, 18) = (48 × 18) ÷ 6 = 864 ÷ 6 = 144.
Real-World Uses of GCD and LCM
- Simplifying fractions: To simplify 48/18, divide numerator and denominator by GCD(48, 18) = 6. Result: 8/3.
- Adding fractions: To add 1/4 + 1/6, find LCM(4, 6) = 12 as the common denominator. 3/12 + 2/12 = 5/12.
- Scheduling problems: Two buses leave the same stop, one every 12 minutes, one every 18 minutes. LCM(12, 18) = 36 minutes — they will both be at the stop again in 36 minutes.
- Tile and grid patterns: To tile a 48 cm × 18 cm floor with square tiles of the largest possible size without cutting: tile size = GCD(48, 18) = 6 cm.
- Music: Rhythmic patterns that repeat on different cycles synchronise at the LCM of their lengths — a 4-beat pattern and a 6-beat pattern re-align every 12 beats.