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
Exercise · ZW-GREATEST-COMMON-DIVISOR-006 · ★★☆ Intermediate
Choose one option.
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\).
The greatest common divisor \(\gcd(a,b)\) of two integers \(a\) and \(b\), not both zero, is the largest integer that divides both.
← ZW-GREATEST-COMMON-DIVISOR-005 ZW-GREATEST-COMMON-DIVISOR-007 →