mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-09-03, 23:42   #23
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3·457 Posts
Default

Quote:
Originally Posted by a1call View Post
Well, p-1 < p
and
for any given prime

p ! a^(p-1)-1 for all a coprime to p.

See Fermat's little Theorem which pops up here periodically.
Yes indeed! so 2^(p-1) - 1 has p as a factor,
and also 2^((p-1) * k) - 1 has p as a factor.
preda is offline   Reply With Quote
Old 2018-09-03, 23:56   #24
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

137110 Posts
Default

Quote:
Originally Posted by preda View Post
Yes indeed! so 2^(p-1) - 1 has p as a factor,
and also 2^((p-1) * k) - 1 has p as a factor.
Based on this, I can do a theoretical characterization of the the strength of the PRP-1:
Doing the PRP for M(exp), we compute 3^(2^k) for all k < Exp.

In the extreme we do the "trial P-1" multiplication at every iteration of the PRP-1 (that's why this is "theoretical" vs. "practical"). So we cover all the primes p < exp.

If we start with Base=3^powerSmooth(B1), with the PRP-1 we also cover all the primes p<exp (at least individually), which is at least as strong as a P-1 test with bounds B1, and B2=Exp.

Last fiddled with by preda on 2018-09-03 at 23:58
preda is offline   Reply With Quote
Old 2018-09-04, 00:01   #25
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

http://www.mersenneforum.org/showthread.php?t=17126 if you need it.
science_man_88 is offline   Reply With Quote
Old 2018-09-04, 00:19   #26
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

25338 Posts
Default

Quote:
Originally Posted by preda View Post
Yes indeed! so 2^(p-1) - 1 has p as a factor,
and also 2^((p-1) * k) - 1 has p as a factor.
This also suggests a practical approach for selecting the iterations k at which to apply the "P-1 trial".

Let d(i) (i=1..n) be the divisors of k. (The divisors d(i) can be composite)

For a prime "p", we say that "k covers p" if p-1 is a divisor of k. i.e. there exists "i" such that p == d(i) + 1.

The goal becomes to build a small set of Ks that together cover all the primes < Exp (when testing M(Exp)).

Last fiddled with by preda on 2018-09-04 at 00:24
preda is offline   Reply With Quote
Old 2018-09-04, 00:32   #27
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

137110 Posts
Default

Quote:
Originally Posted by preda View Post
This also suggests a practical approach for selecting the iterations k at which to apply the "P-1 trial".

Let d(i) (i=1..n) be the divisors of k. (The divisors d(i) can be composite)

For a prime "p", we say that "k covers p" if p-1 is a divisor of k. i.e. there exists "i" such that p == d(i) + 1.

The goal becomes to build a small set of Ks that together cover all the primes < Exp (when testing M(Exp)).
A greedy approach would be: as the PRP-1 progresses, so k iterates from 1 to Exp-1, regularly select a k that covers a large number of primes not yet covered by any previously selected Ks.

the set cover(k) = {p prime, such that p-1 | k}
preda is offline   Reply With Quote
Old 2018-09-04, 00:32   #28
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by preda View Post
This also suggests a practical approach for selecting the iterations k at which to apply the "P-1 trial".

Let d(i) (i=1..n) be the divisors of k. (The divisors d(i) can be composite)

For a prime "p", we say that "k covers p" if p-1 is a divisor of k. i.e. there exists "i" such that p == d(i) + 1.

The goal becomes to build a small set of Ks that together cover all the primes < Exp (when testing M(Exp)).
no prime in that range can divide it.
science_man_88 is offline   Reply With Quote
Old 2018-09-04, 00:38   #29
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

55B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
no prime in that range can divide it.
In particular, any prime p is covered by k==p-1.
preda is offline   Reply With Quote
Old 2018-09-04, 00:47   #30
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by preda View Post
In particular, any prime p is covered by k==p-1.
my point was that no prime less than 2p+1 where p is the prime exponent can divide a Mersenne with that prime exponent. Maybe I misunderstand you.
science_man_88 is offline   Reply With Quote
Old 2018-09-04, 02:04   #31
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

55B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
my point was that no prime less than 2p+1 where p is the prime exponent can divide a Mersenne with that prime exponent. Maybe I misunderstand you.
I'm not talking about factors of M(p). I'm talking about factors that go into the Pollard's P-1 algorithm.
preda is offline   Reply With Quote
Old 2018-09-04, 09:42   #32
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by preda View Post
I'm not talking about factors of M(p). I'm talking about factors that go into the Pollard's P-1 algorithm.
roght but if you want to factor a mersennes using it those other types of factors only come up in composite exponents.

Last fiddled with by science_man_88 on 2018-09-04 at 09:43
science_man_88 is offline   Reply With Quote
Old 2018-09-06, 04:27   #33
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3×457 Posts
Default

Quote:
Originally Posted by a1call View Post
Well, p-1 < p
and
for any given prime

p ! a^(p-1)-1 for all a coprime to p.

See Fermat's little Theorem which pops up here periodically.
I see that for some primes p, there is k < p-1 such that p | 2^k - 1. (if k is the smallest such that p | 2^k - 1, then k | p - 1).

For which primes does this happen? (i.e. for which p prime, there exists k < p - 1 such that p | 2^k - 1)

An example is p==7, where 7 | 2^3 - 1.

Last fiddled with by preda on 2018-09-06 at 04:37 Reason: fix
preda is offline   Reply With Quote
Reply



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


Fri Jul 16 18:03:23 UTC 2021 up 49 days, 15:50, 1 user, load averages: 2.55, 1.77, 1.56

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.