mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-08-12, 13:43   #298
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

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 ?
If 24m + 7 is composite...

Quote:
Originally Posted by science_man_88 View Post
if(px+c==(4^n-1)/3,(4^\strike n -1)/3
What does the ,(4^\strike n -1)/3 mean?

Quote:
Originally Posted by science_man_88 View Post
for all remaining n that create primes print(2*n+3) these are Mersenne prime exponents.
For all n such that *what* is a prime? 2n + 3?

Last fiddled with by CRGreathouse on 2010-08-12 at 13:46
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 13:52   #299
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
If 24m + 7 is composite...



What does the ,(4^ \strike n -1)/3 mean?



For all n such that *what* is a prime?
(4^n-1)/3 is the equation for A002450

that's what it was supposed to be then \strike n (indexes) that are caught by px+c

what indexes are left over that give prime = 2*index+3 those should if my idea is flawless (never going to happen i'm guessing) be the indexes z such that 2^z-1 are prime and in this case = Mersenne primes.

Last fiddled with by science_man_88 on 2010-08-12 at 14:21
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 13:58   #300
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
(4^n-1)/3 is the equation for A002450

that's what it was supposed to be then \strike n (indexes) that are caught by px+c

what indexes are left over that give prime = 2*index+3 those should if my idea is flawless (never going to happen i'm guessing) be the indexes z such that 2^z-1 are prime and in this case = Mersenne primes.
Not following. I understand equations like
px+c=(4^n-1)/3
but
px+c=(4^n-1)/3,(4^\strike n -1)/3
doesn't mean anything to me.
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 14:04   #301
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
Not following. I understand equations like
px+c=(4^n-1)/3
but
px+c=(4^n-1)/3,(4^ \strike n -1)/3
doesn't mean anything to me.
I was showing striking out the n in the first part with the second part for some reason it prints (4n-1)/3 even though i want n as a striked out exponent and I thought i coded as so.

Last fiddled with by science_man_88 on 2010-08-12 at 14:07
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 14:06   #302
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I was striking out the n in the first part with the second for some reason it prints (4n-1)/3 even though i want n as a striked out exponent and I though i coded as so.
Uh...

Apparently you want do display something, I'm not sure exactly what (the n or the whole part with the n?), with a strike-through. But I don't know what a strike-through would mean in mathematics anyway, so I don't know what the equation is supposed to be.

Similarly, what does the comma mean?

Last fiddled with by CRGreathouse on 2010-08-12 at 14:07
CRGreathouse is offline   Reply With Quote
Old 2010-08-12, 14:10   #303
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
Uh...

Apparently you want do display something, I'm not sure exactly what (the n or the whole part with the n?), with a strike-through. But I don't know what a strike-through would mean in mathematics anyway, so I don't know what the equation is supposed to be.

Similarly, what does the comma mean?
I was using the comma to separate the 2 parts to the last which is if the first equation proved true strike out the exponent n as an index that could give a Mersenne prime.

Last fiddled with by science_man_88 on 2010-08-12 at 14:10
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 14:11   #304
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

by the way you're lucky I even got tex tags working as I didn't know the syntax until I looked it up.
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 14:14   #305
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

...and the last equation the one we are having trouble with comes from px+c being in A002450.
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 14:20   #306
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
Quote:
Originally Posted by science_man_88 View Post
I was using the comma to separate the 2 parts to the last which is if the first equation proved true strike out the exponent n as an index that could give a Mersenne prime.
So if m is of the form (4^n-1)/3, I think you're you're saying one of these:
(a) n is not a Mersenne exponent (by which I mean that n isn't in A000043)
(b) (4n-1)/3 is not a Mersenne exponent
(c) (4^n-1)/3 is not a Mersenne exponent
(d) 2n+3 is not a Mersenne exponent

Could you clear this up?

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

100000110000002 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, I think you're you're saying one of these:
(a) n is not a Mersenne exponent (by which I mean that n isn't in A000043)
(b) (4n-1)/3 is not a Mersenne exponent
(c) (4^n-1)/3 is not a Mersenne exponent
(d) 2n+3 is not a Mersenne exponent

Could you clear this up?
d is pretty much on the button if you say 2n+3 must give a prime though then that seems you leaving only what is in A121290 to start with.
science_man_88 is offline   Reply With Quote
Old 2010-08-12, 14:38   #308
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

now the hard part speeding it up lol. I think including the z I used for 2^z-1 that's 7 variables to deal with.
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


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 22:21.


Fri Aug 6 22:21:57 UTC 2021 up 14 days, 16:50, 1 user, load averages: 2.83, 3.23, 3.15

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.