![]() |
|
|
#12 |
|
"Jeppe"
Jan 2016
Denmark
23×3×7 Posts |
Of course if $2^p-1$ is actually prime, we end up with the cycle $\dots \mapsto 0 \mapsto -2 \mapsto 2 \mapsto 2 \mapsto \dots\pmod{2^p-1}$ whose length ($1$) is clearly smaller than $2p$.
So I take your statement as referring to the case where $M$ is composite. Is it trivial to see that the eventual period is at least $2p$ in that case? As an example, with $p=29$ (whose Mersenne number $536870911$ is composite), the first time $s$ repeats itself, is $s(1)=s(253)$, and of course $s(1)$ is $14\pmod{536870911}$, so the period is $252$ in this case. /JeppeSN |
|
|
|
|
|
#13 |
|
Romulan Interpreter
Jun 2011
Thailand
7·1,373 Posts |
Yes. Composite p. I was answering to your post, not to sm88's intervention.
Actually, the minimum period that can be is 3p, if I am not mistaken. If you have a cycle, then you have some x^2-2=y^2-2 for different x and y, because there is no x^2=6 (mod Mp). That means there are terms before the loop starts (like in the "rho" method, the infinite string that you painted in your post looks like the Greek letter rho - then you take the two terms that enters the loop of the rho, they are different). That means (x+y)(x-y) is a proper factorization of Mp (mod Mp), and because Mp is 7 (mod 8) then one of the terms and only one, is 7 (mod 8). Therefore y is an odd multiple of p. Ex: for 2^11-1 you have (56+33)(56-33). |
|
|
|
|
|
#14 |
|
Jun 2003
5,051 Posts |
It would seem that the period is a multiple of p-1.
|
|
|
|
|
|
#15 | |
|
"Jeppe"
Jan 2016
Denmark
23·3·7 Posts |
Quote:
$$(441-4)(441+4)=437 \cdot 445 \equiv 0 \pmod{2047}$$ So I can agree this zero product shows $2047$ is not prime (we have zero divisors in the ring). /JeppeSN |
|
|
|
|
|
|
#16 |
|
"Jeppe"
Jan 2016
Denmark
23×3×7 Posts |
The first case where the initial part before the loop consists of more than one term, is $p=37$ (so $M=137438953471$). We get:
s(0)=4 s(1)=14 s(2)=194 s(3)=37634 s(4)=1416317954 <-- predecessor to loop, not seen again s(5)=111419319480 <-- will be seen again, start of loop s(6)=75212031451 s(7)=42117743384 s(8)=134212256520 ... s(516924)=128698515666 s(516925)=127095751061 s(516926)=125728907914 s(516927)=75807173405 s(516928)=13742681494 <-- last in loop; other predecessor to 111419319480 s(516929)=111419319480 <-- revisiting s(516930)=75212031451 s(516931)=42117743384 s(516932)=134212256520 ... Again the period length $516924$ is a multiple of $37-1$. /JeppeSN |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timing for different B1 values? | CRGreathouse | GMP-ECM | 8 | 2018-05-12 05:57 |
| reserving a few k values | Trilo | Riesel Prime Search | 7 | 2015-09-27 23:20 |
| Erroneous data | ATH | Data | 8 | 2013-11-13 19:21 |
| reserving a few k values | Trilo | Riesel Prime Search | 0 | 2013-08-25 14:47 |
| B1/B2 values | esakertt | Information & Answers | 2 | 2012-11-14 13:11 |