Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-005
Step-by-step solved exercise: Recurrences and arithmetic
Compute \(\displaystyle \gcd(84,126)\).
Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-005
Compute \(\displaystyle \gcd(84,126)\).
Factor \(\displaystyle 84\) into primes.
Factor \(\displaystyle 126\) into primes.
The common primes are \(\displaystyle 2\), \(\displaystyle 3\) and \(\displaystyle 7\). Take the smaller exponent of each.
Multiply. Therefore, \(\displaystyle \gcd(84,126)=42\).
42