![]() |
|
|
#1 |
|
Banned
"Luigi"
Aug 2002
Team Italia
32×5×107 Posts |
I was surfing the link http://www.utm.edu/research/primes/n...casLehmer.html
and noticed this sentence: Code:
Lucas showed that S127 is divisible by M127 thus showing that M127 is prime.
This was a extremely difficult calculation since M127 is a big number and S127
is unbelievably large. In fact
M127 = 170141183460469231731687303715884105727
and Lucas was only able to perform the calculation since he showed that
S127 is divisible by M127 without calculating S127.
Luigi Last fiddled with by ET_ on 2004-02-10 at 17:21 |
|
|
|
|
|
#2 | |
|
"William"
May 2003
New Haven
2×7×132 Posts |
Quote:
|
|
|
|
|
|
|
#3 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
32×5×107 Posts |
Quote:
Ah, I got it. S127 comes from S127 = (S126 * S126 - 2) mod M127 To come back to the sentences "Lucas was only able to perform the calculation since he showed that S127 is divisible by M127 without calculating S127" and "S127 is unbelievably large": S127 has about the same size of S126 or (at most) the square of M127, and Lucas had to compute at least S126. So, what's the point of claiming that he didn't have to calculate S127? To me, that sentence is confusing Luigi |
|
|
|
|
|
|
#4 | |||
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Quote:
Quote:
Quote:
Mi = 2i - 1 Mi+1 = 2i+1 - 1 = (2i - 1)*2 + 1 = Mi*2 + 1 So (ignoring the -1 and +1 terms which become insignificant compared to the Mi for large i) each Mi is twice the value of, and thus has one more binary digit than, Mi-1. If we don't do any modulo operation, Si+1 = Si * Si - 2 Ignoring the -2, which becomes insignificant for large i, each Si is the square of, and thus has twice as many binary digits as, Si-1. The size of Si doubles with each step, whereas the size of Mi only increases by one digit each step. So the size of Mi is approximately 2^i, but the size of Si is approximately to 2^(2i), which becomes much, much larger than 2i. |
|||
|
|
|
|
|
#5 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
10010110011112 Posts |
Quote:
when I worked a "bit" with the numbers.Anyway, the question was on semantical use of "without computing S127": You actually HAVE TO compute it to mod it. The fact that S127 during last mod operation IS NOT as long as it could be if no mod operation (since the start of the algorithm) was performed, is ininfluent: S127 is created during last step of the test, so it must be computed; it is the complete sequence of Sn that is not completely computed because of mods. Well, I guess I'll have some now...Luigi |
|
|
|
|
|
|
#6 | |
|
"William"
May 2003
New Haven
2·7·132 Posts |
Quote:
S(1) = 4 and S(k+1) = S(k)2-2 Note there is NO "mod" in the definition. Following the proof , it's clear that the definition of S cannot include the mod function. The implementation uses the mod function at each stage, so there are probably pages somewhere on the web that sloppily define the calculation with the mod at each stage. But that should really be stated as the caculation at each stage of the modular result {S(k) mod M127} using the relationship {S(k+1) mod M127} = {S(k)2-2 mod M127} |
|
|
|
|
|
|
#7 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
32×5×107 Posts |
Quote:
The proof has no mod, the implementation has (or something like it). I finally got it. (Yeah, whatever...) Forgive me for being somewhat pushy, and for my misuse of capital letters. Luigi
|
|
|
|
|
|
|
#8 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
Luigi,
I think I can speak for many others as well as myself: we admire and cherish your curiosity and somewhat-pushiness (for which you need not apologize), and Barely Notice Your Capital Letters. :-) |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A meaningless curiosity | fivemack | Aliquot Sequences | 2 | 2016-01-17 07:44 |
| Results Curiosity | Gordon | PrimeNet | 1 | 2015-07-30 06:49 |
| I see this as a bit of a mathematical curiosity... | petrw1 | Math | 4 | 2015-07-19 02:33 |
| A Curiosity | R.D. Silverman | GMP-ECM | 4 | 2012-05-10 20:00 |
| P-1 question of curiosity | JuanTutors | Math | 3 | 2004-10-20 04:37 |