mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-08-12, 14:55   #309
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Assumptions: m, t, p, n are positive integers, p > 1.

Quote:
Originally Posted by science_man_88 View Post
24m= 6tp+(p-7)\right m=px+c
 24m=6tp-(p+7)\right m=px+c ?
So we have 24m + 7 being an integer with 24m+7=p(6t\pm1) as appropriate.

Quote:
Originally Posted by science_man_88 View Post
if(px+c==(4^n-1)/3,(4^\strike n -1)/3
So if m is of the form (4^n-1)/3, you're saying that 2n+3 is not a Mersenne exponent. That is, if 24 * (4^n-1)/3 + 7 is composite, 2n+3 is not a Mersenne exponent. That is, if 8 * (2^(2n) - 1) + 7 is composite, 2n+3 is not a Mersenne exponent. That is, if 2^(2n+3) - 1 is a composite, 2n+3 is not a Mersenne exponent.

Last fiddled with by CRGreathouse on 2010-08-12 at 14:55
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 15:21   #310
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Assumptions: m, t, p, n are positive integers, p > 1.



So we have 24m + 7 being an integer with 24m+7=p(6t\pm1) as appropriate.



So if m is of the form (4^n-1)/3, you're saying that 2n+3 is not a Mersenne exponent. That is, if 24 * (4^n-1)/3 + 7 is composite, 2n+3 is not a Mersenne exponent. That is, if 8 * (2^(2n) - 1) + 7 is composite, 2n+3 is not a Mersenne exponent. That is, if 2^(2n+3) - 1 is a composite, 2n+3 is not a Mersenne exponent.

something tells me you are getting at a trivial answer ?
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 15:32   #311
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
What script are you using to check? My isSPRP gives
Nono, it's not PARI. It's a separate application. It's supposed to be an implementation of the Miller-Rabin primality test. I in fact used PARI to verify that it was indeed an error.

Last fiddled with by 3.14159 on 2010-08-12 at 15:32
3.14159 is offline   Reply With Quote
Old 2010-08-12, 15:36   #312
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
So if m is of the form (4^n-1)/3, you're saying that 2n+3 is not a Mersenne exponent. That is, if 24 * (4^n-1)/3 + 7 is composite, 2n+3 is not a Mersenne exponent. That is, if 8 * (2^(2n) - 1) + 7 is composite, 2n+3 is not a Mersenne exponent. That is, if 2^(2n+3) - 1 is a composite, 2n+3 is not a Mersenne exponent.
Those are all trivially correct. There is no grand discovery here.

Last fiddled with by 3.14159 on 2010-08-12 at 15:38
3.14159 is offline   Reply With Quote
Old 2010-08-12, 15:41   #313
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Those are all trivially correct. There is no grand discovery here.
The difficult discovery that I made was determining sm88's method. Once that was accomplished, it was not hard to determine that the method came down to "Mersenne numbers are prime iff they are prime".
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 15:42   #314
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Nono, it's not PARI. It's a separate application. It's supposed to be an implementation of the Miller-Rabin primality test. I in fact used PARI to verify that it was indeed an error.
Really? Interesting.
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 15:45   #315
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

22·727 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
That is, if 2^(2n+3) - 1 is a composite, 2n+3 is not a Mersenne exponent.
But this is the other way round: M(n)=2^n-1 can be prime, so n must be a prime!

Last fiddled with by kar_bon on 2010-08-12 at 15:46
kar_bon is offline   Reply With Quote
Old 2010-08-12, 15:54   #316
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

32208 Posts
Default

Quote:
Originally Posted by CRGreathouse
The difficult discovery that I made was determining sm88's method. Once that was accomplished, it was not hard to determine that the method came down to "Mersenne numbers are prime iff they are prime".
Wow. That was all that it was? A tautology/circular argument? !

Quote:
Originally Posted by CRGreathouse
Really? Interesting.
You can get it for yourself here.

I suspect it of being a kook site, but, seeing as their applets work correctly to some extent, I am undecided on that matter.

Try testing it out quickly (Note: Small integers only, please), and if you can catch 25326001 as an error, please note it!

Last fiddled with by 3.14159 on 2010-08-12 at 15:57
3.14159 is offline   Reply With Quote
Old 2010-08-12, 15:56   #317
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by kar_bon
But this is the other way round: M(n)=2^n-1 can be prime, so n must be a prime!
Karsten, I found that you were right about the differences in testing times based on the k-values used.
3.14159 is offline   Reply With Quote
Old 2010-08-12, 16:01   #318
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by kar_bon View Post
But this is the other way round: M(n)=2^n-1 can be prime, so n must be a prime!
The claim (once all the window-dressing was removed) was that if 2^n - 1 is prime, then 2^n - 1 is prime.

Or rather, it was a restricted case of this: if n > 3 is an odd number such that 2^n - 1 is prime, then 2^n - 1 is prime.
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 16:03   #319
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
The claim (once all the window-dressing was removed) was that if 2^n - 1 is prime, then 2^n - 1 is prime.
Call the press! We're going to be filthy rich!

Amirite?

Bullshit aside..

CRG, have you managed to do some testing on 25326001 using that app? Does it say that it's a 7-SPRP?

Last fiddled with by 3.14159 on 2010-08-12 at 16:09
3.14159 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I sometimes see all the <> formatting commands when I quote or edit? cheesehead Forum Feedback 3 2013-05-25 12:56
Passing commands to PARI on Windows James Heinrich Software 2 2012-05-13 19:19
Ubiquity commands Mini-Geek Aliquot Sequences 1 2009-09-22 19:33
64-bit Pari? CRGreathouse Software 2 2009-03-13 04:22
Are these commands correct? jasong Linux 2 2007-10-18 23:40

All times are UTC. The time now is 21:15.


Fri Aug 6 21:15:12 UTC 2021 up 14 days, 15:44, 1 user, load averages: 2.54, 2.52, 2.52

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.