Exercise · ZW-GREATEST-COMMON-DIVISOR-005 · ★★☆ Intermediate

Compute \(\gcd(84,126)\).

Choose one option.

Show answer
  • C. 42

Explanation

\(84=2^2\cdot3\cdot7\) and \(126=2\cdot3^2\cdot7\), so the gcd is \(2\cdot3\cdot7=42\). The others either divide 42 without being the largest, or do not divide 126.

Study Discrete mathematics in ZWMath →

Review the concept: Greatest common divisor

The greatest common divisor \(\gcd(a,b)\) of two integers \(a\) and \(b\), not both zero, is the largest integer that divides both.

\[\gcd(a,b)=\max\{d\in\mathbb{Z}:\ d\mid a,\ d\mid b\}\]

More practice problems: greatest common divisor

← ZW-GREATEST-COMMON-DIVISOR-004 ZW-GREATEST-COMMON-DIVISOR-006 →