mersenneforum.org  

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

Reply
 
Thread Tools
Old 2016-01-31, 08:48   #12
JeppeSN
 
JeppeSN's Avatar
 
"Jeppe"
Jan 2016
Denmark

A816 Posts
Default

Quote:
Originally Posted by LaurV View Post
No.
There can't be a cycle with the period smaller than 2p.
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
JeppeSN is offline   Reply With Quote
Old 2016-01-31, 09:12   #13
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

7·1,373 Posts
Default

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).
LaurV is offline   Reply With Quote
Old 2016-01-31, 09:37   #14
axn
 
axn's Avatar
 
Jun 2003

5,051 Posts
Default

It would seem that the period is a multiple of p-1.
axn is online now   Reply With Quote
Old 2016-01-31, 11:17   #15
JeppeSN
 
JeppeSN's Avatar
 
"Jeppe"
Jan 2016
Denmark

23×3×7 Posts
Default

Quote:
Originally Posted by LaurV View Post
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).
Very interesting. I try to actually do this for $p=11$ as you suggest. I find that the first value that is repeated is $s(1)=14\pmod{2047}$ which equals $s(61)$. (The period is $60$ here.) But the predecessor $s(60)$ is $441 \pmod{2047}$, so at first the factorization I get is:

$$(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
JeppeSN is offline   Reply With Quote
Old 2016-01-31, 11:57   #16
JeppeSN
 
JeppeSN's Avatar
 
"Jeppe"
Jan 2016
Denmark

23×3×7 Posts
Default

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
JeppeSN is offline   Reply With Quote
Reply



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

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


Fri Jul 16 18:18:14 UTC 2021 up 49 days, 16:05, 1 user, load averages: 3.09, 2.52, 2.13

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.