mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-08-03, 17:01   #320
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

Quote:
Originally Posted by CRGreathouse
If he wanted to test every integer in the range, it would take time O(n) with an oracle. But even if he could skip over the composites costlessly, and test only the primes with an oracle for Mersenne-ness, it would still take time O(n/log n). This is entirely infeasible, since the competing algorithm is easily O(log^3 n) -- that is, exponentially better.
This would be made far easier when you take the following into account:
Every Mersenne number is of the form 6n + 1, and so is every number of the form 24n + 7. If he's looking for prime Mersenne numbers, he should just test the prime Mersenne numbers to see whether or not subtracting seven yields divisibility by 24 and get his results from there. It'll only take a few minutes.

Quote:
Originally Posted by science_man_88
1) all (6x-/+1)*p are composite so any time they cross 24n+7 it should turn out to be composite.
You mean, whenever they happen to have a GCD of the form (24n + 7)?

Quote:
Originally Posted by science_man_88
2) all possible n needed to find all odd Mersenne numbers (including all Mersenne primes above 7 for 24n+7) should be in the sequence I stated if I understand a method to figure out a(n+1) from a(n).
How are all n needed? You only need the Mersenne numbers themselves to test for whether or not subtracting seven yields divisibility by 24.

Quote:
Originally Posted by science_man_88
3) if we find out what c is in p*n+c that fits the pattern in the sequences above all we need is to figure out when p*n+c and the sequence given are equal if they are we can eliminate that value from our list given the numbers get large we might have to find sequences to follow to knock them out instead of the numbers themselves.
Well, this seems a bit too vague to me. You're going to have to define what c, p, and n are. Next, define the pattern and define the said sequences.
1) I mean when 6n*p+/-p = 24n+7
2) I'n not saying all n are needed I'm saying all n that give odd Mersenne numbers in either 6n+/-1 or 24n+7 are in the sequence given.
3) I don't have a defined value for c but p is a number (I prefer prime) n is a integer>=0 I think and that's about that.
science_man_88 is offline   Reply With Quote
Old 2010-08-03, 17:06   #321
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
If he's looking for prime Mersenne numbers, he should just test the prime Mersenne numbers to see whether or not subtracting seven yields divisibility by 24 and get his results from there. It'll only take a few minutes.
That would be a quick test. I have a quick and equally effective test: do nothing. (2 to the power of any odd number > 1, minus 1, is 7 mod 24.)
CRGreathouse is offline   Reply With Quote
Old 2010-08-03, 17:07   #322
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by science_man_88
1) I mean when 6n*p+/-p = 24n+7
Counterexample: 1567 is prime and it is 6n*p ± p and 24n + 7.

Next counterexample: 5023 is prime and it is 6n*p ± p and 24n + 7.

This one is false because 1567 and 5023 are primes and meet the requirements you made.

Last fiddled with by 3.14159 on 2010-08-03 at 17:22
3.14159 is offline   Reply With Quote
Old 2010-08-03, 17:15   #323
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
That would be a quick test. I have a quick and equally effective test: do nothing. (2 to the power of any odd number > 1, minus 1, is 7 mod 24.)
Hmm.. 2^5-1 = 31 = 7 mod 24
2^11-1 = 2047 = 7 mod 24.

That seems to be correct.
3.14159 is offline   Reply With Quote
Old 2010-08-03, 17:18   #324
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Hmm.. 2^5-1 = 31 = 7 mod 24
2^11-1 = 2047 = 7 mod 24.

That seems to be correct.
8 * 4 = 8 (mod 24), so 2^(2n+1) = 2^(2n+3) (mod 24). Subtract 1 to get the required equality.
CRGreathouse is offline   Reply With Quote
Old 2010-08-03, 17:19   #325
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
Originally Posted by CRGreathouse
8 * 4 = 8 (mod 24), so 2^(2n+1) = 2^(2n+3) (mod 24). Subtract 1 to get the required equality.
The wonders of math.


Quote:
2) I'n not saying all n are needed I'm saying all n that give odd Mersenne numbers in either 6n+/-1 or 24n+7 are in the sequence given.
As CRG's proven, every Mersenne number is 24n + 7. Your conjecture turned out to be trivially true. Also: For your first condition, the law of small numbers was at work there.

Last fiddled with by 3.14159 on 2010-08-03 at 17:22
3.14159 is offline   Reply With Quote
Old 2010-08-03, 17:21   #326
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
Counterexample: 1567 is prime and it is 6n*p ± p and 24n + 7.

Next counterexample: 5023 is prime and it is 6n*p ± p and 24n + 7.
okay you're first counter example seems to me to only work for p=1 I state later p in p*n+c (which by the way should be the same p, is preferably prime) I'll admit i didn't say it had to be also any number that can be expressed as

6n*p+/-p = (6n+/-1)*p I'll admit if p is one it's prime so try it for primes.

anything I have given you that doesn't make sense ?
science_man_88 is offline   Reply With Quote
Old 2010-08-03, 17:26   #327
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by science_man_88
okay you're first counter example seems to me to only work for p=1 I state later p in p*n+c (which by the way should be the same p, is preferably prime) I'll admit i didn't say it had to be also any number that can be expressed as
Nono, P was not 1. The p that was used in the addition was 7. The other p was 13. I ensured N was divisible by 4.

Last fiddled with by 3.14159 on 2010-08-03 at 17:28
3.14159 is offline   Reply With Quote
Old 2010-08-03, 17:28   #328
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
As CRG's proven, every Mersenne number is 24n + 7. Your conjecture turned out to be trivially true.
Not his conjecture, presumably, but Artur Jasinski's: A135659. Of course it was known long before that.
CRGreathouse is offline   Reply With Quote
Old 2010-08-03, 17:31   #329
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
okay you're first counter example seems to me to only work for p=1 I state later p in p*n+c (which by the way should be the same p, is preferably prime) I'll admit i didn't say it had to be also any number that can be expressed as

6n*p+/-p = (6n+/-1)*p I'll admit if p is one it's prime so try it for primes.

anything I have given you that doesn't make sense ?
You write p twice and n twice. Is this intentional? That is, do we need to find a pair (n, p) with
(6n\pm1)p=24n+7
or a quadruple (m, n, p, q) with
6np\pm q=24m+7
or a triple (m, n, p) with
(6n\pm1)p=24m+7
?

My best guess was the last, the literal wording suggests the first, and Pi seems to have guessed the second. OF course other interpretations may be possible.

p and q are primes and m,n natural numbers, presumably.

Last fiddled with by CRGreathouse on 2010-08-03 at 17:32
CRGreathouse is offline   Reply With Quote
Old 2010-08-03, 17:33   #330
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Nono, P was not 1. The p that was used in the addition was 7. The other p was 13. I ensured N was divisible by 4.
oops I forgot about odd multiples of 7 I included that counter in my later codes (I think) thank's for my idiot title Pi.

I'm almost positive anything without these counters work and if we can figure the pattern to p*n+c that work for each p then we just have to find an equation to eliminate when they equal 4x+1 and relate 4x+1 values to n values to plug into a(n+1) = 4*a(n)+1 if I'm right to figure what indexes don't give primes. long road I know.

latest code I used was:

Code:
for(p=5,30,for(n=1,20,if((6*n*p+p)%24==7 || (6*n*p-p)%24==7,print(floor((6*n*p-p)/24)","p))))

Last fiddled with by science_man_88 on 2010-08-03 at 17:37
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wheel Factorization a1call Factoring 11 2017-06-19 14:04
Efficient Test paulunderwood Computer Science & Computational Number Theory 5 2017-06-09 14:02
LL tests more credit-efficient than P-1? ixfd64 Software 3 2011-02-20 16:24
A Wheel storm5510 Puzzles 7 2010-06-25 10:29
Most efficient way to LL hj47 Software 11 2009-01-29 00:45

All times are UTC. The time now is 22:03.


Fri Aug 6 22:03:20 UTC 2021 up 14 days, 16:32, 1 user, load averages: 2.93, 2.80, 2.70

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.