PrimeCount

25 July

Mersenne prime

In mathematics, a Mersenne number is a number that is one less than a power of two,

Mn = 2n − 1.

A Mersenne prime is a Mersenne number that is a prime number. As of August 2007, only 44 Mersenne primes are known; the largest known prime number (232,582,657−1) is a Mersenne prime and in modern times the largest known prime has nearly always been a Mersenne prime. Like several previous Mersenne primes, it was discovered by a distributed computing project on the Internet, known as the Great Internet Mersenne Prime Search (GIMPS).

About Mersenne primes

Many fundamental questions about Mersenne primes remain unresolved. It is not even known whether there is a largest Mersenne prime, which would mean that the set of Mersenne primes is finite. The Lenstra-Pomerance-Wagstaff conjecture asserts that, on the contrary, there are infinitely many Mersenne primes and predicts their order of growth. It is also not known whether infinitely many Mersenne numbers with prime exponents are composite, although this would follow from widely believed conjectures about prime numbers, for example, the infinitude of Sophie Germain primes.

A basic theorem about Mersenne numbers states that in order for Mn to be a Mersenne prime, the exponent n itself must be a prime number. This rules out primality for numbers such as M4 = 24−1 = 15: since the exponent 4=2×2 is composite, the theorem predicts that 15 is also composite; indeed, 15 = 3×5. The three smallest Mersenne primes are

M2 = 3, M3 = 7, M5 = 31.

While it is true that only Mersenne numbers Mp, where p = 2, 3, 5, … could be prime, it may nevertheless turn out that Mp is not prime even for a prime exponent p. The smallest counterexample is the Mersenne number

M11 = 211 − 1 = 2047 = 23 × 89,

which is not a Mersenne prime, even though 11 is a prime number. The lack of an obvious rule to determine whether a given Mersenne number is prime makes the search for Mersenne primes an interesting task, which becomes difficult very soon, since Mersenne numbers grow very fast. The Lucas–Lehmer test for Mersenne numbers is an efficient primality test that greatly aids this task. Search for the largest known prime has somewhat of a cult following. Consequently, a lot of computer power has been expended searching for new Mersenne primes, much of which is now done using distributed computing.

Mersenne primes are used in pseudorandom number generators such as Mersenne Twister and Park–Miller RNG.

Searching for Mersenne primes

The identity

2^{ab}-1=(2^a-1)\cdot \left(1+2^a+2^{2a}+2^{3a}+\dots+2^{(b-1)a}\right)

shows that Mn can be prime only if n itself is prime—that is the primeness of n is necessary but not sufficient for Mn to be prime—which simplifies the search for Mersenne primes considerably. (This follows very simply from the Mersenne property of the sequence of numbers of the form xnyn. This states that xaya | xbyb if and only if a|b.) The converse statement, namely that Mn is necessarily prime if n is prime, is false. The smallest counterexample is 211−1 = 23×89, a composite number.

Fast algorithms for finding Mersenne primes are available, and the largest known prime numbers as of 2007 are Mersenne primes.

The first four Mersenne primes M2 = 3, M3 = 7, M5 = 31 and M7 = 127 were known in antiquity. The fifth, M13 = 8191, was discovered anonymously before 1461; the next two (M17 and M19) were found by Cataldi in 1588. After nearly two centuries, M31 was verified to be prime by Euler in 1772. The next (in historical, not numerical order) was M127, found by Lucas in 1876, then M61 by Pervushin in 1883. Two more (M89 and M107) were found early in the 20th century, by Powers in 1911 and 1914, respectively.

The best method presently known for testing the primality of Mersenne numbers is based on the computation of a recurring sequence, as developed originally by Lucas in 1856 and improved by Lehmer in the 1930s, now known as the Lucas-Lehmer test for Mersenne numbers. Specifically, it can be shown that (for n > 2) Mn = 2n − 1 is prime if and only if Mn divides Sn−2, where S0 = 4 and for k > 0, S_k=S_{k-1}^2-2.

Mersenne prime found graph

 

The search for Mersenne primes was revolutionized by the introduction of the electronic digital computer. The first successful identification of a Mersenne prime, M521, by this means was achieved at 10:00 P.M. on January 30, 1952 using the U.S. National Bureau of Standards Western Automatic Computer (SWAC) at the Institute for Numerical Analysis at the University of California, Los Angeles, under the direction of Lehmer, with a computer search program written and run by Prof. R.M. Robinson. It was the first Mersenne prime to be identified in thirty-eight years; the next one, M607, was found by the computer a little less than two hours later. Three more — M1279, M2203, M2281 — were found by the same program in the next several months. M4253 is the first Mersenne prime that is titanic, M44497 is the first gigantic, and M6,972,593 was the first megaprime to be discovered, being a prime with at least 1,000,000 digits. All three were the first known prime of any kind of that size.

Reference: http://wikipedia.org

Leave a Reply