Exercise · ZW-GREATEST-COMMON-DIVISOR-001 · ★☆☆ Basic

Compute \(\gcd(12,18)\).

Choose one option.

Show answer
  • C. 6

Explanation

Divisors of 12: 1, 2, 3, 4, 6, 12. Divisors of 18: 1, 2, 3, 6, 9, 18. The largest common one is 6; 36 is the least common multiple.

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-002 →