![]() |
|
|
#1 |
|
Aug 2004
Melbourne, Australia
23×19 Posts |
Let N=k.2^n+1 for some k < 2^n. (a Proth number)
Proth's Theorem states: N is prime if there exists a natural number x such that x^((N-1)/2) = -1 mod N. I expect that the converse is not true, (otherwise it would be very well known). But does anyone have a counter-example? I.e. Does anyone know a Proth prime P such that for all 1 < x < P we get x^((P-1)/2) != -1 mod P ? The first few Proth numbers are 3,5,9,13,17,25,33,41,49,57,… Sloane's A080075 2^((3-1)/2) = 2 = -1 mod 3 2^((5-1)/2) = 4 = -1 mod 5 2^((13-1)/2) = 65 = -1 mod 13 ... |
|
|
|
|
|
#2 | |
|
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
Quote:
x^((P-1)/2) == -1 (mod P) iff x is a quadratic non-residue modulo P, and there are always QNR modulo P for P>2, (P-1)/2 of them to be specific. Alex Last fiddled with by akruppa on 2005-04-24 at 06:56 Reason: typo |
|
|
|
|
|
|
#3 |
|
Aug 2004
Melbourne, Australia
9816 Posts |
Hmmm... so it is an "if and only if" theorem then. I wonder why the "only if" is not included, (well at least not where I looked).
Thanks Alex. |
|
|
|
|
|
#4 | |
|
Oct 2007
1438 Posts |
Quote:
I am writing a program using Proth's theorem and don't want to try more than one x.. many thanks in advance. |
|
|
|
|
|
|
#5 | |
|
Nov 2003
22·5·373 Posts |
Quote:
check is 2. |
|
|
|
|
|
|
#6 | |
|
Oct 2007
11000112 Posts |
Quote:
Edit: Or did you want to say that I compute x^((P-1)/2) for x=2,3,..? I thought there is a way to find a suitable x immediately, like in Yves Gallot's Proth.exe. Last fiddled with by Retep on 2007-11-27 at 20:34 Reason: Wanted to add something |
|
|
|
|
|
|
#7 | |
|
Nov 2003
164448 Posts |
Quote:
some good ones. What do you mean by "immediately"? (above). The internal details of what proth.exe performs are not public.... You do not test for QNR by exponentiation. Use quad. reciprocity instead. It is faster. |
|
|
|
|
|
|
#8 | |
|
Oct 2007
6316 Posts |
Quote:
It would be kind of you to mention other books. |
|
|
|
|
|
|
#9 |
|
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
Yes, the Legendre symbol (a/p) is -1 if a is a quadratic non-residue modulo the prime p, 1 if a is a quadratic residue, and 0 if p|a. You can compute the Kronecker symbol (a generalization of the Legendre symbol) rather quickly with a recursive algorithm. A good description is in Crandall and Pomerance: Prime numbers.
Alex Last fiddled with by akruppa on 2007-11-30 at 19:11 Reason: s/Jacobi/Legendre |
|
|
|
|
|
#10 |
|
Oct 2007
32·11 Posts |
I know how to compute the Legendre symbol, many thanks for your help.
|
|
|
|
|
|
#11 |
|
Oct 2007
32·11 Posts |
It wasn't to difficult to program the check of the condition "(N/a) is a quadratic non-residue". I want to know why this is enough, this means I'm looking for a proof of this "extended version" of Proth's theorem:
a^((N-1)/2) = (N/a) = -1 (mod N) [a prime, N=k*2^n+1,k<2^n] which is a necessary and sufficient condition for N to be prime. Does anyone know where to find this proof? I have not found it in Crandall and Pomerance: Prime numbers. Last fiddled with by Retep on 2008-01-30 at 12:20 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Proth primes | ET_ | Proth Prime Search | 9 | 2020-10-02 07:11 |
| Proth's Theorem | ATH | Math | 9 | 2011-02-15 19:09 |
| Proth theorem extended | Bill Bouris | Conjectures 'R Us | 4 | 2009-04-07 13:25 |
| Extended Proth Theorem | Cyclamen Persicum | Math | 1 | 2004-04-20 04:54 |
| Last possible proth tested! | Deamiter | PSearch | 3 | 2003-03-03 03:19 |