![]() |
|
|
#34 | |
|
Jan 2005
Transdniestr
50310 Posts |
Quote:
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 |
|
|
|
|
|
|
#35 | |
|
Einyen
Dec 2003
Denmark
2·1,579 Posts |
Quote:
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 |
|
|
|
|
|
|
#36 |
|
Jan 2005
Transdniestr
503 Posts |
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). |
|
|
|
|
|
#37 | ||
|
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
Quote:
Sorry m_f_h it is not related. Quote:
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
|
||
|
|
|
|
|
#38 | |
|
Feb 2007
24·33 Posts |
Quote:
.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 ? |
|
|
|
|
|
|
#39 | |
|
Bronze Medalist
Jan 2004
Mumbai,India
40048 Posts |
Quote:
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
|
|
|
|
|
|
|
#40 | |
|
Apr 2006
11001112 Posts |
Quote:
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. |
|
|
|
|
|
|
#41 |
|
Jan 2005
Transdniestr
1F716 Posts |
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 |
|
|
|
|
|
#42 |
|
Apr 2006
103 Posts |
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) |
|
|
|
|
|
#43 |
|
Jan 2005
Transdniestr
50310 Posts |
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. |
|
|
|
|
|
#44 | |
|
Jan 2005
Transdniestr
7678 Posts |
Quote:
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 |
|
|
|
|
![]() |
| 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 |