12, 18
from 12, 18
✓ Checked
Show steps
Integers · Prime factorization + Euclidean algorithm
Method 1: prime factorization
12=2^2*3 18=2*3^2
Break each nonzero magnitude into prime powers. The number 1 has no prime factors.
Keep the shared prime powers
GCF=2*3=6
A common divisor can use only primes found in every nonzero number, with at most the smallest exponent. Multiplying those powers gives the greatest one.
Method 2: Euclidean algorithm
12=18*0+12 18=12*1+6 12=6*2+0 GCD(12,18)=6
Replace each pair by the divisor and remainder; this preserves its common divisors. The last nonzero remainder is the GCD. Continue with each additional number.
Check each original integer
12=6*(2) 18=6*(3)
Multiplying the GCF by each integer quotient recovers the original number. Both exact methods above establish that no larger positive common divisor exists. ✓