![]() |
|
|
#1 |
|
Feb 2012
210 Posts |
When going through the P-2 recursions to determine if 2^P-1 is prime using Lucas-Lehmer, is it possible that you can get zero as a value before the (P-2)th step? Are there any known examples of this?
I already realize that if 0 is an intermediate step, then the number cannot be prime (since the next step is 0^2 - 2 = (N-2) mod N, then (N-2)^2 - 2 = 2 mod N, and 2^2 - 2 = 2 mod N, so there will never be a zero term). |
|
|
|
|
|
#2 | |
|
Dec 2007
Cleves, Germany
10228 Posts |
Quote:
|
|
|
|
|
|
|
#3 | |
|
"Nathan"
Jul 2008
Maryland, USA
100010110112 Posts |
Quote:
|
|
|
|
|
|
|
#4 | |
|
Jun 2003
22·3·421 Posts |
Quote:
|
|
|
|
|
|
|
#5 |
|
Sep 2005
127 Posts |
Since every factor of a Mersenne number is of the form 2kp+1 [p being the exponent] same reasoning applies for composites, no?
J |
|
|
|
|
|
#6 |
|
Sep 2005
127 Posts |
|
|
|
|
|
|
#7 |
|
Sep 2005
127 Posts |
|
|
|
|
|
|
#8 |
|
"Nathan"
Jul 2008
Maryland, USA
5·223 Posts |
|
|
|
|
|
|
#9 |
|
"Nancy"
Aug 2002
Alexandria
9A316 Posts |
If Mp is prime, then it is not possible. We know the order of the group is Mp+1, so is 2^p, and the starting element is chosen to be a non-square in the group, so it likewise has order 2^p. Reaching zero means reaching the element of order 2 sooner than after p-1 squarings, contradicting the above.
If Mp is composite, I think it is possible, but exceedingly unlikely. It would require that for each prime factor q of Mp, the order of the starting element in F_q[sqrt(3)] is the same power of 2. It may be possible to construct such composites, for example for P-1 (i.e., not in a quadratic extension), the order of 2 modulo 319489 and 974849 is 4096, so you'd see a residue of -1 (the element of order 2) after 11 squarings. The probability that all prime factors of some Mp are of this kind is practically 0, perhaps provably 0. Last fiddled with by akruppa on 2012-02-03 at 12:57 |
|
|
|
|
|
#10 |
|
Aug 2006
3×1,993 Posts |
Just for kicks I checked: there are no small examples (p < 10^4).
|
|
|
|
|
|
#11 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
Well any such test would also have residue of 2, so you could check all verified tests in PrimeNet.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Penultimate Lucas-Lehmer step | maxal | Math | 45 | 2018-12-19 23:32 |
| Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" | wildrabbitt | Miscellaneous Math | 11 | 2015-03-06 08:17 |
| "one step backward _two steps forward " | devarajkandadai | Miscellaneous Math | 10 | 2013-08-20 12:57 |
| Would Minimizing "iterations between results file" may reveal "is not prime" earlier? | nitai1999 | Software | 7 | 2004-08-26 18:12 |