![]() |
|
|
#45 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
Last fiddled with by science_man_88 on 2014-04-14 at 21:19 |
|
|
|
|
|
|
#46 |
|
Sep 2002
Database er0rr
3,739 Posts |
Using boldi's test 3^((M+1)/2)==-3 (mod M), which is all squaring in left-right exponentiation, is it necessary to do an inverse FFT at each step? Or can we stay in FFT space for a couple or more steps?
Last fiddled with by paulunderwood on 2014-04-14 at 22:25 |
|
|
|
|
|
#47 |
|
Apr 2014
5×17 Posts |
I believe the conjecture is false, or atleast requires some more grand effort to prove true, after working out the symbols. As it turns out, Mersenne primes also have (3/Mp) is equal to -1 when Mp is prime, so we have that if Mp is prime, the congruence holds in one direction.
If 3^(Mp-1)/2 = -1 mod Mp, then 3^(Mp-1) = 1 mod Mp, which implies order mod 3 is M-1 since order does not divide (Mp-1)/2. This would imply that Mp is either prime or a pseudoprime base 3. As someone pointed out, the converse of Fermat's little theorem is not generally true, but we're not quitters, so we use Lehmer's theorem that is true. It says that if the above condition holds, and for all primes q dividing Mp-1 we have 3^(Mp-1)/q != 1, then p is prime. Mp-1 = 2^p-2 = 2*(2^(p-1)-1), so we try using 2. by conjecture above, that's -1, so we're fine. But in order to prove the rest of this, we need to factor 2^(p-1)-1. We know that 3 divides this number for odd primes, but I doubt we can really know for sure that every other factor satisfies for Lehmer's theorem... It's possible, certainly, but I have no idea how to start proving it. The proof is already done here when dealing with Fermat numbers, as (2^(2^n)-1)+1 is a power of 2, and by the original assumption satisfies Lehmer's theorem. To be more precise, if the conjecture is true, we have to prove there are no Mersenne numbers which are pseudoprimes of base 3. If we find even one counter example, it's false. Of course you might be able to modify it into a weaker statement that's true. But I feel like it's just not going to work out, the possible factors are too diverse. Last fiddled with by tapion64 on 2014-04-14 at 22:26 |
|
|
|
|
|
#48 | |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
Quote:
Last fiddled with by science_man_88 on 2014-04-14 at 22:27 Reason: corrected 2^x-1 to both |
|
|
|
|
|
|
#49 |
|
Apr 2014
5×17 Posts |
Yeah, but how can we factor somewhat arbitrary numbers and prove those factors will never cause the Lehmer congruency to hold?
Last fiddled with by tapion64 on 2014-04-14 at 22:29 |
|
|
|
|
|
#50 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
191316 Posts |
Yes, you still need to do an inverse FFT, because you have to propagate the carries to keep the signal values from getting too big for your FP precision. You might be able to do something heroic with the Chinese remainder theorem, but at that point you're not taking advantage of the floating point unit. If you want to do arithmetic modulo [150, 159, 207, 247]*2^42+1 then you could run 2^21 33-bit numbers and get to do two squarings before a carry propagation, but you can do better doing something less baroque.
|
|
|
|
|
|
#51 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
we know the factors of a Mersenne number with a prime exponent are of form 2kp+1 for some value k and some exponent p. so if x is prime we can use that to our advantage.
|
|
|
|
|
|
#52 |
|
Apr 2014
5·17 Posts |
But we're not factoring Mp, we're factoring Mp-1, which is 2*(2^(p-1)-1), and the exponent there is no longer prime. Even so, we're not going to actually factor the number. We just need to show that none of its factors would cause Lehmer's congruence to fail. As far as I know, we haven't figured out how to determine if a number is or isn't a pseudoprime base a.
Last fiddled with by tapion64 on 2014-04-14 at 22:59 |
|
|
|
|
|
#53 | |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
Quote:
|
|
|
|
|
|
|
#54 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
37×263 Posts |
|
|
|
|
|
|
#55 |
|
Apr 2014
5·17 Posts |
No base-3 pseudo-prime divides a prime-exponent Mersenne number.
Conjecture B As far as I know, I was the first to suggest this conjecture, via the Mersenne mailing list soon after it started. Update (4/26/1997): Jon Grantham has sent a message to the mersenne@base.com mailing list with a counter-example based on some work of Peter Montgomery's. To quote part of his message: Take n=193949641=3863*50207. n|2↑1931-1, and 1931 is prime. 3↑n=3 mod n, so it's a base 3 pseudoprime. Found this on the net. So, I'm pretty sure that means the conjecture is false. It would mean that the congruence 3^(M-1) = 1 mod M holds even though M is composite. But M is really large and I don't think I can calculate that by hand >.> Maybe we can use combo of Jacobi symbol and Legendre symbol. Anyways, pseudo primes are rare. But I'd want more speed up than the algorithm gives us for a probabalistic test. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fastest software for Mersenne primality test? | JonathanM | Information & Answers | 25 | 2020-06-16 02:47 |
| New Mersenne primality test | Prime95 | Miscellaneous Math | 19 | 2014-08-23 04:18 |
| LLT Cycles for Mersenne primality test: a draft | T.Rex | Math | 1 | 2010-01-03 11:34 |
| Mersenne Primality Test in Hardware | Unregistered | Information & Answers | 4 | 2007-07-09 00:32 |
| A primality test for Fermat numbers faster than Pépin's test ? | T.Rex | Math | 0 | 2004-10-26 21:37 |