Take a test Sign in 中文
← Exercise 627 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Digits (23)
Primes (14)
Divisors, GCD, and LCM (28)
Divisibility (22)
Fractions, Decimals, and the Floor Function (14)
Bases (19)
Modular Arithmetic (30)
Integer Equations (29)

Exercises and their solutions

Exercise 627
Find the number of ordered pairs $(m, n)$ such that $m$ and $n$ are positive integers in the set $\{1, 2, ..., 40\}$ and the greatest common divisor of $2^m + 1$ and $2^n - 1$ is not $1$.
← Back to Problem 627
Solution
  1. $\gcd(2^m+1,2^n-1)>1$ iff $v_2(n)>v_2(m)$, i.e.\ $\frac{n}{\gcd(m,n)}$ is even.
  2. Counting: for each $m$ with $v_2(m)=e$, $n$ must be a multiple of $2^{e+1}$.
  3. That gives $20\cdot20+10\cdot10+5\cdot5+2\cdot3+1\cdot1=532$ (for $e=0,1,2,3,4$).
  4. The answer is $\boxed{532}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1996 (1 problems)
1991 (1 problems)