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

Compute \(\gcd(1023,63)\), that is, \(\gcd(2^{10}-1,\,2^{6}-1)\).

Choose one option.

Show answer
  • D. 3

Explanation

With \(1023=16\cdot63+15\), \(\gcd(1023,63)=\gcd(63,15)=\gcd(15,3)=3\). This matches \(2^{\gcd(10,6)}-1=2^2-1=3\).

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-005 ZW-GREATEST-COMMON-DIVISOR-007 →