mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2006-05-30, 12:52   #45
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2·683 Posts
Default

For Mersenne primes we have:

q = 2^p-1 where both p and q are primes.

From Fermat's Little Theorem we have a^{q-1} \equiv 1 \pmod q

The question now is to find r \equiv a^{(q-1)/p} \pmod q

From both equations we have:

r^p \equiv 1\pmod q

This diophantine equation has at most p roots because the polynomial modulo a prime has degree p. It's easy to see that all roots have the form 2^n\pmod q for 0\le n<p because:

(2^n)^p \equiv (2^p)^n \equiv 1^n \equiv 1\pmod q

Notice that the numbers 2^n\pmod q in the given range of n are all different because 2^n < q.

Since we found p roots these are the complete set of possible values of r. Of course r is one of these roots.

So r must be a power of 2 modulo q as stated in the conjecture.

Last fiddled with by alpertron on 2006-05-30 at 12:55
alpertron is offline   Reply With Quote
Old 2006-05-30, 15:13   #46
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2·683 Posts
Default

For prime numbers of the form q=(2^p+1)/3 where p is prime:

From Fermat's Little Theorem we have a^{q-1} \equiv 1\pmod q

The question now is to find r = a^{(q-1)/p}

r^p \equiv 1\pmod q

The polynomial r^p - 1 modulo a prime has at most p roots because its degree is p. It's easy to see that the roots have the form 2^{2n}\pmod q for 0\le n<p because:

(2^{2n})^p \equiv (2^{2p})^n \equiv ((2^{2p}-1)+1)^n \equiv ((2^p-1)(2^p+1)+1)^n \equiv 1^n \equiv 1.

The penultimate step is correct because 2^p+1 \equiv 0\pmod q.

Now notice that 2^p+1 \equiv 0, so 2^p \equiv -1. Then 2^{2n} \equiv -2^{2n-p}

So the roots have the form 2^{2n} or -2^{2n-p}

Since all exponents are in the range 0\le n<p, all values are different.

Since we found p roots these are the complete set of possible values of r. Of course r is one of these roots.

So r must be a power of 2 or the negative of a power of 2. In the last case the result mod q will be odd (because odd - even = odd).
alpertron is offline   Reply With Quote
Old 2006-05-30, 16:12   #47
AntonVrba
 
AntonVrba's Avatar
 
Jun 2005

2·72 Posts
Default

The Conjecture could be generalised

Let p be a prime integer and
Q = (b^p-1)/(b-1) or Q=(b^p+1)/(b+1)

Let x=(Q-1)/p and y be an integer GCD[y,b]==1

y^x = r (mod Q)

if b even and r is odd then r=Q-r

if b odd and r is even then r=Q-r

Q is prime iff r==b^z , z a integer.

Last fiddled with by AntonVrba on 2006-05-30 at 16:47
AntonVrba is offline   Reply With Quote
Old 2006-05-30, 16:26   #48
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

55616 Posts
Default

The new conjecture appears to be wrong.

Let b=3 and p=5. We get q=(35+1)/(3+1) = 61. So all numbers are prime.

Now let y = 4, so gcd(y, b) = 1 as stated.

x = (q-1)/p = (61-1)/5 = 12
r = y^x = 4^12 = 20 (mod 61)

Since b is odd and r is even we take r = 61-20 = 41 which is not a power of 3.
alpertron is offline   Reply With Quote
Old 2006-05-30, 18:21   #49
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103·113 Posts
Default

Editorial Note: I've merged all these related threads into a single one. -EWM
ewmayer is offline   Reply With Quote
Old 2006-05-30, 19:07   #50
T.Rex
 
T.Rex's Avatar
 
Feb 2004
France

22·229 Posts
Default

Quote:
Originally Posted by ewmayer
Editorial Note: I've merged all these related threads into a single one. -EWM
Hummm. I'm not sure this is a good idea.
The first posts talk about a conjecture about a test equivalent to LLT but based on Cycles of the LLT, and about an "idea" that could speed up proving a Mersenne number is composite. Then Anton and I found other examples (for Wagstaff and Fermat numbers) of a LLT-like test using Cycles.
Now, starting with post #46 of Anton, it seems we are starting another discussion about another conjecture, not based on LLT, and with no relationship with first posts.
So I would like this thread to be separated into 2 threads. Do you agree ?
Tony
T.Rex is offline   Reply With Quote
Old 2006-05-30, 19:33   #51
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

25268 Posts
Default

Tony is right. The latest posts use pseudoprimality tests and are related to a conjecture that states that the Mersenne numbers and the numbers of the form (2^p+1)/3 are primes if they pass these tests.

This is not related in any way to LLT.
alpertron is offline   Reply With Quote
Old 2006-05-30, 20:05   #52
AntonVrba
 
AntonVrba's Avatar
 
Jun 2005

9810 Posts
Default

Quote:
Originally Posted by alpertron
The new conjecture appears to be wrong.

Let b=3 and p=5. We get q=(35+1)/(3+1) = 61. So all numbers are prime.

Now let y = 4, so gcd(y, b) = 1 as stated.

x = (q-1)/p = (61-1)/5 = 12
r = y^x = 4^12 = 20 (mod 61)

Since b is odd and r is even we take r = 61-20 = 41 which is not a power of 3.
Oh Oh - the generalised form is a bit more dificult but you might have noticed that 20+61=81 which is a power of three.

and y=7 then r=7^12 = 34 (mod 61)
and 61-34 = 27

and for y=19 then r=3
AntonVrba is offline   Reply With Quote
Old 2006-05-30, 20:14   #53
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2×683 Posts
Default

You can use the same steps that I've given above in order to show that:

For prime Q = (bp-1)/(b-1) you get r = bn (mod Q)

For prime Q = (bp+1)/(b+1) you get r = b2n (mod Q) or r = -b2n-p (mod Q)

Last fiddled with by alpertron on 2006-05-30 at 20:15
alpertron is offline   Reply With Quote
Old 2006-05-30, 20:14   #54
AntonVrba
 
AntonVrba's Avatar
 
Jun 2005

9810 Posts
Default

Quote:
Originally Posted by T.Rex
Now, starting with post #46 of Anton, it seems we are starting another discussion about another conjecture, not based on LLT, and with no relationship with first posts.
So I would like this thread to be separated into 2 threads. Do you agree ?
Tony
Fully agree - sorry for starting the second thread so soon.
AntonVrba is offline   Reply With Quote
Old 2006-05-31, 17:15   #55
T.Rex
 
T.Rex's Avatar
 
Feb 2004
France

16248 Posts
Default

Quote:
Originally Posted by AntonVrba
Mersenne:
Conjecture:
Let p be a prime integer and M = (2^p-1).

S(0) = (M-10)/3 and
S(i+1) = S(i)^2 - 2 (mod M) ;

M is prime iff S(p-1) == S(0) .
How did you find this starting value (M-10)/3 ???
About the S(0)=(9+1/9) I proposed, with: S(i+1)=S(i)^2-2 (mod M_q) as usual, there is a proof saying: if M_q is prime then S(q-1)=S(0) .
Do you have such a proof ?

Tony
T.Rex is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying the Lucas Lehmer Primality Test into a fast test of nothing Trilo Miscellaneous Math 25 2018-03-11 23:20
Conjectured Primality Test for Specific Class of Mersenne Numbers primus Miscellaneous Math 1 2014-10-12 09:25
Conjectured Primality Test for Specific Class of k6^n-1 primus Computer Science & Computational Number Theory 16 2014-08-15 01:15
there is another way to test the primality of a no shawn Miscellaneous Math 5 2007-07-17 17:55
A primality test for Fermat numbers faster than Pépin's test ? T.Rex Math 0 2004-10-26 21:37

All times are UTC. The time now is 18:26.


Fri Jul 16 18:26:23 UTC 2021 up 49 days, 16:13, 1 user, load averages: 2.53, 2.57, 2.34

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.