mersenneforum.org  

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

Reply
 
Thread Tools
Old 2007-03-30, 17:44   #34
grandpascorpion
 
grandpascorpion's Avatar
 
Jan 2005
Transdniestr

50310 Posts
Default

Quote:
Originally Posted by m_f_h View Post
I don't know if I belong to the folks, but I don't store anything ; your algorithm is based on mine with my idea of iteratively decreasing the upper limit of the second prime p_j (by taking the floor of the sum to 1/e_j) and increasing the lower limit of its exponent e_j (by taking th ceiling of the exponent corresponding to value of p_j).
The difference is that you compare each time if the sums are equal while I only compare it when p_j and e_j didn't change w.r.t. the previous iteration, and you make primality tests which take useless time.

(and, my function restricts the search to a sum in [A,B] by taking the exponent e_i of the first prime p_i only in a certain range, condition which you can drop if you wish.)

PS: I don't mean to be aggressive, somehow my style sometimes might let think the contrary, but its really not intended!
No worries. Sorry, I misread your bit. I thought you were storing data.
Also, my algorithm isn't based on yours intentionally.

The bottom line though is how long our scripts take to run.
It's true I haven't optimized my code regarding the psuedoprime but
it takes 20ms for me to check through 10^6. It takes you 10 seconds, which is 500 times slower. Sorry, if you have improved on this time.

No offense intended here.

Last fiddled with by grandpascorpion on 2007-03-30 at 17:44
grandpascorpion is offline   Reply With Quote
Old 2007-03-30, 18:03   #35
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

2·1,579 Posts
Default

Quote:
However, is it logical to check e.g. a prime on 1e4..1e5 up to a sum of 10^100 without checking primes 1e5..1e6 first ? You might well have 1+nextprime(10e5) equal to the sum corresponding to a big power of some small prime ? But well... provided you allow in your function to resume where a previous search has ended, there's not a big difference (and your results sound more spectacular)
Well, for p1=2 it has to check to exponent 332 but allready after 46 sec at p1=10^5 it only needs to check up to exponent 20. I guess I made it this way because Patrick123 made it like this and it made sense to me, and this way it checks a mixture of small and large values for solutions.

Now I ran the program up to p1=8*10^6 and S=10^100 for each p1, still no other solution.

Last fiddled with by ATH on 2007-03-30 at 18:11
ATH is offline   Reply With Quote
Old 2007-03-31, 02:04   #36
grandpascorpion
 
grandpascorpion's Avatar
 
Jan 2005
Transdniestr

503 Posts
Default

I found one simple way to speed up my program.
I completed an exhaustive search through 10^36. It took about 1 hour to run.

For primes p1 and p2 > 2, if (p1^(x1+1)-1)/(p1-1) = (p2^(x2+1)-1)/(p1-1)
then x1 = x2 (mod 2). Otherwise, one sum will be even, the other odd.

So, the upshot is that only primes through n^(1/4) need to be checked , instead of n^(1/3), because 3 != 2 (mod 2).
grandpascorpion is offline   Reply With Quote
Old 2007-03-31, 04:42   #37
mfgoode
Bronze Medalist
 
mfgoode's Avatar
 
Jan 2004
Mumbai,India

22·33·19 Posts
Cool

Quote:
Originally Posted by m_f_h View Post
I don't see how this is related to the search of two pairs (p,e) which give the same value for s(p,e) = sum( p^k, k=0...e).


Sorry m_f_h it is not related.

Quote:
Originally Posted by mfgoode
I dont understand the various algorithms presented as Im not into programming.

But if it will be of some help to elucidate, *not necessarily this problem,* but its a good general rule to bear in mind.
What Patrick 123 has worked out is correct and those are the only numbers found so far up to date [ref: Wells]

Also the conjecture that if the power of a Mersenne prime is itself a Mersenne prime is countered by the M-prime 8191 which is a counter example.

Mally
mfgoode is offline   Reply With Quote
Old 2007-04-02, 18:39   #38
m_f_h
 
m_f_h's Avatar
 
Feb 2007

24·33 Posts
Default "unrelated facts" contest winner in perspective

Quote:
Originally Posted by mfgoode View Post
Sorry m_f_h it is not related.

What Patrick 123 has worked out is correct and those are the only numbers found so far up to date [ref: Wells]

Also the conjecture that if the power of a Mersenne prime is itself a Mersenne prime is countered by the M-prime 8191 which is a counter example.
This gives you already a power-ful comfortable 2-rounds-ahead advantage w.r.t. any other candidate for the international "confusing through unrelated facts" contest: you may slow down and relax now .

PS: or, provide a power-ful counter-proof for the Catalan series primality conjecture: M2=3, M3=7, M7=127, M127=... all prime, M(M127) prime ?
m_f_h is offline   Reply With Quote
Old 2007-04-03, 16:06   #39
mfgoode
Bronze Medalist
 
mfgoode's Avatar
 
Jan 2004
Mumbai,India

40048 Posts
Thumbs up Unrelated facts

Quote:
Originally Posted by m_f_h View Post
This gives you already a power-ful comfortable 2-rounds-ahead advantage w.r.t. any other candidate for the international "confusing through unrelated facts" contest: you may slow down and relax now .

PS: or, provide a power-ful counter-proof for the Catalan series primality conjecture: M2=3, M3=7, M7=127, M127=... all prime, M(M127) prime ?
Thank you m_f_h for the advantage.

I was just adding my two cent bit!

At present I am trying to crack out C_5 where C_n+1 = 2^C_n+1 -1 on a super computer as C_5 has more than 10^37 digits

Thanks to you again as I learnt what a Catalan number is!

Mally
mfgoode is offline   Reply With Quote
Old 2007-04-05, 11:46   #40
Pascal Ochem
 
Pascal Ochem's Avatar
 
Apr 2006

11001112 Posts
Default

Quote:
Originally Posted by grandpascorpion View Post
I found one simple way to speed up my program.
I completed an exhaustive search through 10^36. It took about 1 hour to run.

For primes p1 and p2 > 2, if (p1^(x1+1)-1)/(p1-1) = (p2^(x2+1)-1)/(p1-1)
then x1 = x2 (mod 2). Otherwise, one sum will be even, the other odd.

So, the upshot is that only primes through n^(1/4) need to be checked , instead of n^(1/3), because 3 != 2 (mod 2).
Also, for odd primes x and y, x^4+x^3+x^2+x+1 = y^2+y+1 has no solution since
y := x^2+(x-1)/2 is too small and y := x^2+(x+1)/2 is too big.

This should mean that only primes through n^(1/5) need to be checked.
Pascal Ochem is offline   Reply With Quote
Old 2007-04-05, 13:28   #41
grandpascorpion
 
grandpascorpion's Avatar
 
Jan 2005
Transdniestr

1F716 Posts
Default

Ah, great point. There's probably similar cases that can be removed from consideration.

For instance, there's no answer for

(x^9-1)/(x-1) = (y^5-1)/(y-1)

because y = (x^2+floor(x/4)) is too low and y = (x^2+floor(x/4) +1) is too high

Last fiddled with by grandpascorpion on 2007-04-05 at 13:57
grandpascorpion is offline   Reply With Quote
Old 2007-04-05, 14:45   #42
Pascal Ochem
 
Pascal Ochem's Avatar
 
Apr 2006

103 Posts
Default

for primes x, y > 3, we also have
(x^9-1)/(x-1) = 0 (mod 3) whereas (y^5-1)/(y-1) != 0 (mod 3)
Pascal Ochem is offline   Reply With Quote
Old 2007-04-05, 16:01   #43
grandpascorpion
 
grandpascorpion's Avatar
 
Jan 2005
Transdniestr

50310 Posts
Default

Yes and on that note:

For primes x, y > 3, in order to find an answer to: (x^(m+1)-1)/(x-1) = (y^(k+1)-1)/(y-1), you must have both sides be have the same remainder when divided by 3 of course.

If x= 6n+1, you only need to check k=m-6s where s> 1

Similarly, by checking other mods you can further pare down the searching.
grandpascorpion is offline   Reply With Quote
Old 2007-04-05, 18:38   #44
grandpascorpion
 
grandpascorpion's Avatar
 
Jan 2005
Transdniestr

7678 Posts
Default

Quote:
for primes x, y > 3, we also have
(x^9-1)/(x-1) = 0 (mod 3) whereas (y^5-1)/(y-1) != 0 (mod 3)
Sorry, I affirmed your statement before but it's not correct:

If x=y=2 (mod 3), (x^9-1)/(x-1) = (y^5-1)/(y-1) = 1 (mod 3)

Example x=5, y=11: (5^9-1)/(5-1) = (11^5-1)/(11-1) = 1 (mod 3)

=============================================

Also,if for (x^(m+1)-1)/(x-1) = (y^(k+1)-1)/(y-1),

and m=5, k=3 the only possible solutions are for x=5b+3,4 and x = 11c + 1,2,7,10

Last fiddled with by grandpascorpion on 2007-04-05 at 19:19
grandpascorpion is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime Powers plandon Math 7 2009-06-30 21:29
Prime Sums #3 davar55 Puzzles 2 2008-08-13 12:37
Prime Sums davar55 Puzzles 11 2008-03-31 05:24
Prime Sums #2 davar55 Puzzles 1 2008-03-19 14:12
Question on prime powers JuanTutors Math 2 2004-07-07 07:07

All times are UTC. The time now is 23:29.


Fri Aug 6 23:29:10 UTC 2021 up 14 days, 17:58, 1 user, load averages: 3.24, 3.74, 3.91

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.