Why Must m Be a Power of 2 for 2^m + 1 to Be Prime?

  • Thread starter Thread starter Zurtex
  • Start date Start date
  • Tags Tags
    Form Primes
Click For Summary
SUMMARY

The requirement for m to be a power of 2 for the expression 2^m + 1 to yield a prime number is established through the Lucas-Lehmer primality test. This test utilizes the Lucas-Lehmer sequence defined by S(n) = (S(n-1)^2 - 2) mod M, where S(0) = 4 and M = 2^m - 1. For 2^m + 1 to be prime, the condition S(n) = 0 must hold, which only occurs when m is of the form 2^x for some natural number x. Any other values of m result in S(n) not equating to 0, thus failing to produce a prime.

PREREQUISITES
  • Understanding of the Lucas-Lehmer primality test
  • Familiarity with the Lucas-Lehmer sequence
  • Knowledge of prime number theory
  • Basic modular arithmetic
NEXT STEPS
  • Study the "Lucas-Lehmer Primality Test" by Eric Weisstein on MathWorld
  • Examine "The Lucas-Lehmer Test for Mersenne Primes" by David Cleaver from the University of Western Australia
  • Explore "Prime Numbers and the Lucas-Lehmer Test" by Chris K. Caldwell from the University of Tennessee at Martin
  • Research additional properties of Mersenne primes and their applications
USEFUL FOR

Mathematicians, number theorists, and students interested in prime number research and the properties of Mersenne primes.

Zurtex
Science Advisor
Homework Helper
Messages
1,118
Reaction score
1
I've been asked to research primes of the form 2^m + 1, I've found all the known primes but now I've been asked to find out why m must be of the form 2^x for some natrual number x for 2^m + 1 to be prime. I've found quite a lot on this but nothing that clearly proves it, can anyone give me a good link or something please.
 
Physics news on Phys.org
Never mind, worked it out myself :biggrin: :biggrin:
 


The reason why m must be of the form 2^x for 2^m + 1 to be prime is known as the Lucas-Lehmer primality test. This test is based on the Lucas-Lehmer sequence, which is a sequence of numbers generated by the formula:
S(n) = (S(n-1)^2 - 2) mod M, where S(0) = 4 and M = 2^m - 1.

If the resulting value of S(n) is equal to 0, then 2^m - 1 is a prime number. However, if the value of S(n) is not equal to 0, then 2^m - 1 is not a prime number.

Now, if we consider the specific case of 2^m + 1, we can see that it can be written as 2^m - (-1)^m. Therefore, for 2^m + 1 to be prime, we need to find a value of m for which 2^m - (-1)^m is a prime number.

Using the Lucas-Lehmer primality test, we can see that for 2^m - (-1)^m to be prime, the value of S(n) must be equal to 0. And for S(n) to be equal to 0, m must be of the form 2^x for some natural number x. This is because, for any other value of m, the resulting value of S(n) will not be equal to 0 and therefore, 2^m - (-1)^m will not be a prime number.

To learn more about the Lucas-Lehmer primality test and its proof, you can refer to the following resources:

1. "Lucas-Lehmer Primality Test" by Eric Weisstein, MathWorld. Available at: https://mathworld.wolfram.com/Lucas-LehmerPrimalityTest.html

2. "The Lucas-Lehmer Test for Mersenne Primes" by David Cleaver, University of Western Australia. Available at: https://www.maths.uwa.edu.au/~dcleaver/chap6.pdf

3. "Prime Numbers and the Lucas-Lehmer Test" by Chris K. Caldwell, University of Tennessee at Martin. Available at: https://primes.utm.edu/notes/proofs/Lucas-Le
 

Similar threads

Replies
8
Views
2K
Replies
12
Views
4K
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
5
Views
2K