mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-08-12, 23:58   #331
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I find all the terms except the first have a digital root of 4 or 1 just like the Mersenne primes >7 if we could confirm something like a pattern (I think starting at the 4th term they may take on the opposite to the series for the Mersenne primes>31) if this was ever proven true it could let us look 4 Mersenne primes in the future(that's why I'm doubtful).
Digital roots are essentially the number mod 9. Mersenne numbers other than 3 are of the form 2^(2k+1) - 1 = 4^k * 2 - 1, which is 1 mod 3. Thus Mersenne numbers other than 3 are 1, 4, or 7 mod 9. Further, the numbers are 7 mod 9 only when the exponent is a multiple of 3, which for Mersenne primes happens only with M_3 = 7. So the product of two Mersenne primes, both greater than 7, will be 1*1, 1*4, 4*1, or 4*4 mod 9, that is, will have digital root 1, 4, or 7.

You only gave the first two possibilities, but the third happens with
(289 - 1)(2107 - 1) = 100433627766186892221372630609062766858404681029709092356097
and presumably occurs infinitely often.
CRGreathouse is offline   Reply With Quote
Old 2010-08-13, 00:00   #332
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
The law of small numbers, at work again. Unless you can definitively prove this, it is nothing more than a guess.
It seems to show that science_man_88's intuition is pretty sharp vis-a-vis the strong law of small numbers, actually. Although he did miss one case, I guess because it wasn't listed in A165223.
CRGreathouse is offline   Reply With Quote
Old 2010-08-13, 00:03   #333
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by CRGreathouse
It seems to show that science_man_88's intuition is pretty sharp vis-a-visthe strong law of small numbers, actually. Although he did miss one case, I guess because it wasn't listed in A165223.
Remember: Just because it works for three examples, doesn't mean it works forever.

Last fiddled with by 3.14159 on 2010-08-13 at 00:04
3.14159 is offline   Reply With Quote
Old 2010-08-13, 00:07   #334
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Remember: Just because it works for three examples, doesn't mean it works forever.
funny I checked every one it the sequence.
science_man_88 is offline   Reply With Quote
Old 2010-08-13, 00:15   #335
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Also: Are there any sieving programs for n * k! + 1 ?

Nevermind: PARI does the work here. I'll set up a program which can act as an amateur sieve:

kfacsieve(x, n, a, m) = {
for(p=x,n,
if((x*n+1)%p==0, ...

Last fiddled with by 3.14159 on 2010-08-13 at 00:20
3.14159 is offline   Reply With Quote
Old 2010-08-13, 00:25   #336
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Also: Are there any sieving programs for n * k! + 1 ?

Nevermind: PARI does the work here. I'll set up a program which can act as an amateur sieve:

kfacsieve(x, n, a, m) = {
for(p=x,n,
if((x*n+1)%p==0, ...
I got
Code:
for(n=1,100,for(k=1,100,if(isprime(n*k!+1),print(n","k))))
science_man_88 is offline   Reply With Quote
Old 2010-08-13, 00:37   #337
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Without using (isprime(x))

Also: @CRG: I tried this:

Code:
 d(a,n,x,m)=for(n=a,x,if(t(n*m!+1)!=n,print("trivial composite","factor is",t(n*m!+1)));if(t(n*m!+1)==n,print(n*m!+1)))
Where t(n) is trial division up to nextprime(10^6).

I get the error: "Too many parameters in user-defined function".

I don't see where the excess params are at: I introduced no new variables into the commands. Or is it treating t as a variable?

Last fiddled with by 3.14159 on 2010-08-13 at 00:49
3.14159 is offline   Reply With Quote
Old 2010-08-13, 00:38   #338
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Also: Are there any sieving programs for n * k! + 1 ?
What's fixed?
CRGreathouse is offline   Reply With Quote
Old 2010-08-13, 00:50   #339
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
What's fixed?
k is fixed, n is variable.

Reason: Primeform too slow!

Last fiddled with by 3.14159 on 2010-08-13 at 00:52
3.14159 is offline   Reply With Quote
Old 2010-08-13, 00:55   #340
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
k is fixed, n is variable.

Reason: Primeform too slow!
I got
Code:
 not a function: `t'.
posting it into pari.
science_man_88 is offline   Reply With Quote
Old 2010-08-13, 01:01   #341
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

69016 Posts
Default

Because you have not defined t yet. I have.
3.14159 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:37.


Fri Aug 6 22:37:58 UTC 2021 up 14 days, 17:06, 1 user, load averages: 3.65, 3.67, 3.46

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.