1

How can you prove that if $p$ and $q$ are distinct primes, then the following holds?:

$$(M_p,M_q)=1$$

Note: $M_n=2^n-1$, with $n$ prime number

benjamin_ee
  • 3,759

3 Answers3

3

Let $z < x < y$ all be integers with $y = kx + z$ for some positive integer $k$.

I claim that $2^y - 1 \equiv 2^z - 1 \pmod{2^x - 1}$.

Proof:

$(2^y - 1) - 2^{y-x}(2^x - 1) = 2^y - 1 - 2^y + 2^{y-x} = 2^{y-x} - 1$, so

$2^y - 1 \equiv 2^{y-x} - 1 \pmod{2^x-1}$. By similar reasoning, it is also congruent to $2^{y-2x} - 1, 2^{y-3x} - 1, \ldots, 2^{y-kx} - 1 = 2^z - 1$.

Hence, $\gcd(2^y - 1, 2^x - 1) = \gcd(2^x - 1, 2^z - 1)$, and you can iterate this to decrease the exponents in a way similar to the numbers in the Euclidean algorithm. I trust you can take it from here.

Dennis Meng
  • 1,397
0

Since $\gcd(a^n-1, a^m-1) =a^{\gcd(n, m)}-1 $ (see $\gcd(b^x - 1, b^y - 1, b^ z- 1,...) = b^{\gcd(x, y, z,...)} -1$), $\gcd(a^p-1, a^q-1) =a^{\gcd(p, q)}-1 =a-1 $ since distinct primes are coprime.

marty cohen
  • 107,799
0

A more general result holds: if $M = 2^p-1$, then for any number that is one less than a power of 2; i.e., $\forall N = 2^q-1$, with $p, q$ co-primes; i.e., $(p, q)=1$ then $(N,M)=1$.

Proof: The binary representation of $M = 11...1$ is the set of $p$ consecutive 1's; the binary representation of $N = 11...1$ is the set of $q$ consecutive 1's.

If $M | N, M \le N$ then there is an integer number of groups of $p$ consecutive 1's within the set of $q$ 1's. Hence $p | q$: contradiction. Hence $M \nmid N$. Similarly, $N \nmid M$.

Andrew
  • 223