Skip to main content

AMC 12 Mock Exam 3 Problem 9

Problem 9 of 25

What is the greatest common divisor of 230−12^{30}-1 and 242−12^{42}-1?

Answer choices

Show solution

Solution

For a>ba>b, 2a−1=2a−b(2b−1)+(2a−b−1)2^a-1=2^{a-b}(2^b-1)+(2^{a-b}-1), so gcd⁡(2a−1,2b−1)=gcd⁡(2b−1,2a−b−1)\gcd(2^a-1,2^b-1)=\gcd(2^b-1,2^{a-b}-1): the exponents follow the Euclidean algorithm. Since gcd⁡(42,30)=gcd⁡(30,12)=gcd⁡(12,6)=6\gcd(42,30)=\gcd(30,12)=\gcd(12,6)=6, the answer is 26−1=632^6-1=\boxed{63}.

Tagged: gcd of numbers of the form $2^m-1$