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
AI Thread Summary
For 2^m + 1 to be prime, m must be of the form 2^x, where x is a natural number. This requirement is derived from the Lucas-Lehmer primality test, which utilizes a specific sequence to determine the primality of numbers of the form 2^m - 1. The test shows that for 2^m - (-1)^m to be prime, the sequence must yield a result of zero, which only occurs when m is a power of two. Other values of m do not satisfy this condition, leading to non-prime results. Understanding this relationship is crucial for exploring the properties of primes in this form.
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
 
Thread 'Collision of a bullet on a rod-string system: query'
In this question, I have a question. I am NOT trying to solve it, but it is just a conceptual question. Consider the point on the rod, which connects the string and the rod. My question: just before and after the collision, is ANGULAR momentum CONSERVED about this point? Lets call the point which connects the string and rod as P. Why am I asking this? : it is clear from the scenario that the point of concern, which connects the string and the rod, moves in a circular path due to the string...
Back
Top