GCD and LCM of 12, 18 and 30
Three numbers: the primes common to all of them give the GCD.
Step by step
- Break each number into prime factors12 = 22 × 3
18 = 2 × 32
30 = 2 × 3 × 5 - GCD: take only the primes every number shares, each at its lowest powerGCD = 2 × 3 = 6
- LCM: take every prime that appears, each at its highest powerLCM = 22 × 32 × 5 = 180