{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
Find the number of ordered pairs $(m, n)$ such that $m$ and $n$ are positive integers in the set $\{1, 2, ..., 30\}$ and the greatest common divisor of $2^m + 1$ and $2^n - 1$ is not $1$.
Let $d=\gcd(m,n)$. Then $\gcd(2^n-1,2^{2m}-1)=2^{\gcd(n,2m)}-1$. A prime dividing $2^m+1$ and $2^n-1$ divides $2^{2m}-1$ but not $2^m-1$, so it needs $\gcd(n,2m)=2d$, i.e.\ $\frac nd$ even. Conversely, if $\frac nd$ is even, $2^{2d}-1\mid2^n-1$ and $2^d+1\mid2^m+1$ ($\frac md$ odd), so $2^d+1$ is a common factor.
$\frac nd$ is even exactly when $n$ has more factors of $2$ than $m$, i.e.\ $v_2(n)>v_2(m)$.
Count by $e=v_2(m)$, where $e=0,1,2,3,4$ for $15,8,4,2,1$ values of $m$, and then $n$ is a multiple of $2^{e+1}$, giving $15,7,3,1,0$ values. Total $225+56+12+2=295$.
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$.