logo

Mersenne Primes 📂Number Theory

Mersenne Primes

Definition 1

If Mn=2n1M_{n} = 2^{n} - 1 is a prime number, MnM_{n} is called a Mersenne Prime.

Explanation

The discovery of Mersenne primes begins with the exploration of whether p=xn1p=x^{n}-1 is a prime number. One immediately realizes that if xx is odd, except for p=2p=2, it cannot be a prime. Also, since xn1=(x1)(xn1+xn2++x2+x+1) x^{n}-1 = (x-1) ( x^{n-1} + x^{n-2} + \cdots + x^2 + x + 1 ) , no matter what number (xn1+xn2++x2+x+1)( x^{n-1} + x^{n-2} + \cdots + x^2 + x + 1 ) is, at least (x1)(x-1) must be specifically 11 to be considered a prime. That means xx must be not just even but precisely 22, and hence we only need to concern ourselves with forms of p=2n1p= 2^{n} - 1.

As of May 2018, there have been a total of 5050 Mersenne primes discovered, with the largest being M77,232,917M_{77,232,917}. This number is significant, reaching up to 23,249,42523,249,425 digits. Meanwhile, examining the first few Mersenne primes reveals some interesting points.

M2=221=3M3=231=7M5=251=31M7=271=127M13=2131=8191 \begin{align*} M_{2} &= 2^{2} - 1 = 3 \\ M_{3} &= 2^{3} - 1 = 7 \\ M_{5} &= 2^{5} - 1 = 31 \\ M_{7} &= 2^{7} - 1 = 127 \\ M_{13} &= 2^{13} - 1 = 8191 \end{align*}

Theorem

For the Mersenne prime MnM_{n}, nn is prime.

Proof

For the Mersenne prime Mn=2n1M_{n} = 2^{n} - 1, if we assume two integers a,ba,b, such that n=abn=ab, then 2ab1=(2a1)(2a(b1)+2a(b2)++2a+1) 2^{ab} - 1 = (2^{a} - 1) ( 2^{a(b-1)} + 2^{a(b-2)} + \cdots + 2^{a} + 1 ) That is, 2ab12^{ab} - 1 would be a composite number, which contradicts the assumption.

A counterexample that shows the converse is not true is when n=11n=11. M11:=2111=2047M_{11} : = 2^{11} - 1 = 2047 is the product of 2323 and 8989, where M11M_{11} is not a Mersenne prime.


  1. Silverman. (2012). A Friendly Introduction to Number Theory (4th Edition): p96. ↩︎