View Single Post
Old 2020-08-02, 09:26   #4
JeppeSN
 
JeppeSN's Avatar
 
"Jeppe"
Jan 2016
Denmark

2508 Posts
Cool

The LL sequence starts 4, 14, 194, ...

Since we calculate modulo 2^p - 1, there are only finitely many values we can hit, so sooner or later we are going to hit a value we have seen before.

For 2^p - 1 prime, we know we hit 0, "-2", 2, 2, 2, ... So the period starts late and has length 1.

For 2^p - 1 composite (p prime), do you know if it is always 14 which is the first term to reappear? How does your script detect that a period has finished (in order to report the period length)?

/JeppeSN
JeppeSN is offline   Reply With Quote