![]() |
Final Lucas Lehmer residuals and Pythagorean triples
1 Attachment(s)
Bas Jansen's phd paper has a table of Lehmer symbols:
[url]https://www.math.leidenuniv.nl/scripties/PhDJansen.pdf[/url] (4,q) [5(+),7(-),13(+),17(-),19(-),31(+),61(+),89(-),107(-),127(+),521(-)] (10,q) [5(-),7(-),13(-),17(+),19(+),31(+),61(+),89(+),107(+),127(+),521(+)] The rows represent the sign table of the Lehmer symbols. The first row is formed from the residuals of a LL sequence with a starting value of 4. The second row is a starting value of 10. I've clipped and attached a proper definition of the Lehmer symbol below (Lehmer symbols are the major subject of the phd). [B]Pythagorean triples and Lucas Lehmer residuals[/B] Using the Mersenne primes as an example: Calculate the second to last residual from a LL sequence with a starting value of 4: [8,111,128,130559,523263,65536,2147483648,618970019642654953077473279,162259276829213345377179500806143,18446744073709551616,...] In binary: [0b1000,0b1101111,0b10000000,0b11111110111111111,0b1111111101111111111,0b10000000000000000,...] Taking those residuals with a (-) Lehmer symbol: Exponents: [7,17,19,89,107,521,607,1279,2281,3217,4423,9689,11213...] Residuals(s): [111,130559,523263,618970019642654953077473279,162259276829213345377179500806143,...] [U]I noticed these residuals seem to be one and two less than b and c in a Pythagorean triple, as in:[/U] a1 = sqrt(c1^2-b1^2) = sqrt(113^2-112^2) = 15.0 b1 = s+1 c1 = s+2 Triples: [15,112,113],[511,130560,130561],[1023,523264,523265],[35184372088831,618970019642654953077473280,618970019642654953077473281]... In the LL test, the second to last residual is squared, then 2 is subtracted. This number is then reduced modulo the Mersenne number and the modulo returns 0 if the test finds a prime, as in: 12319 mod 2^7-1 = 0 [U]In the case of negative Lehmer symbols, this squaring also generates the b value of another Pythagorean triple:[/U] a2 = 2*a1*b1 = 2*15*112 = 3360 b2 = (b1-a1)*(b1+a1) = (112-15)*(112+15) = s^2-2 = 111^2-2 = 12319 c2 = c1^2 = 113^2 = 12769 sqrt(12769^2 - 12319^2) = 3360.0 Triples: [3360,12319,12769],[133432320,17045652479,17046174721],[1070598144,273804167167,273806260225]... I've tested up to 2^11213-1 and all those listed above have a2^2 + b2^2 = c2^2 in the case of a starting value of 4. (+) Lehmer symbols do not produce integer value triples via the above method. However, it is possible to manually generate these triples for composite and (+) Mersenne numbers, as in: a1=63, b1=1984, c1=1985 a2=249984, b2=3932287, c2=3940225 3932287 mod 2^11-1 = 0 I just thought I'd pass this on, I haven't found it mentioned elsewhere. Please let me know if anything doesn't check out. |
[QUOTE=a nicol;474239][U]I noticed these residuals seem to be one and two less than b and c in a Pythagorean triple, as in:[/U][/QUOTE]
what consequences does this have if you then consider it further, maybe you can check those to completion. |
[QUOTE=science_man_88;474271]what consequences does this have if you then consider it further, maybe you can check those to completion.[/QUOTE]
Hi, which part were you thinking of checking to completion? I don't have the cpu time to run larger LL tests atm unfortunately. I think these triples exist for all Mersenne numbers, I just thought it might be worth cataloguing the coincidence between them and the LL test & Lehmer symbols. I think there might be a tree to follow here? I think that would be worth looking at? [url]https://en.wikipedia.org/wiki/Tree_of_primitive_Pythagorean_triples[/url] |
[QUOTE=a nicol;474301]Hi, which part were you thinking of checking to completion? I don't have the cpu time to run larger LL tests atm unfortunately.
I think these triples exist for all Mersenne numbers, I just thought it might be worth cataloguing the coincidence between them and the LL test & Lehmer symbols. I think there might be a tree to follow here? I think that would be worth looking at? [url]https://en.wikipedia.org/wiki/Tree_of_primitive_Pythagorean_triples[/url][/QUOTE] we already know, that to be prime by the test, there are only two values the second to last residue can have. what is the density of pythagoren triples with the two values 1 apart ? that may be a place to start. |
[QUOTE=a nicol;474239]Using the Mersenne primes as an example:
Calculate the second to last residual from a LL sequence with a starting value of 4: [8,111,128,130559,523263,65536,2147483648,618970019642654953077473279,162259276829213345377179500806143,18446744073709551616,...] Taking those residuals with a (-) Lehmer symbol: Residuals(s): [111,130559,523263,618970019642654953077473279,162259276829213345377179500806143,...] [U]I noticed these residuals seem to be one and two less than b and c in a Pythagorean triple, as in: [/U]... [/QUOTE] This is trivial. Just look at their algebraic value in the material that you already quoted. It is 2[SUP]p[/SUP] - 1 - 2[SUP](p+1)/2[/SUP], or in other words 2X[SUP]2[/SUP] - 2X - 1 with X=2[SUP](p-1)/2[/SUP]. Of course there is a Pythagorean triple {a, 2X[SUP]2[/SUP] - 2X, 2X[SUP]2[/SUP] - 2X + 1}. Now, find a. [SPOILER]It is 2X-1.[/SPOILER] This is similar at looking at the definition of primes, writing a dozen of them, ...and then 'noticing' that they just happen to be numbers that are only divisible by themselves and 1. Or 'noticing' that they are all odd if they are > 2. Everything else (' ...it is possible to manually generate these triples for composite and (+) Mersenne numbers') is hand-waving. |
[QUOTE=Batalov;474312]This is trivial. Just look at their algebraic value in the material that you already quoted.
It is 2[SUP]p[/SUP] - 1 - 2[SUP](p+1)/2[/SUP], or in other words 2X[SUP]2[/SUP] - 2X - 1 with X=2[SUP](p-1)/2[/SUP]. Of course there is a Pythagorean triple {a, 2X[SUP]2[/SUP] - 2X, 2X[SUP]2[/SUP] - 2X + 1}. Now, find a. [SPOILER]It is 2X-1.[/SPOILER] This is similar at looking at the definition of primes, writing a dozen of them, ...and then 'noticing' that they just happen to be numbers that are only divisible by themselves and 1. Or 'noticing' that they are all odd if they are > 2. Everything else (' ...it is possible to manually generate these triples for composite and (+) Mersenne numbers') is hand-waving.[/QUOTE] Trivial, but not previously explicitly associated with the LL test in any material I was able to search out. So worth pointing out, I thought. There is also the fact that the Lucas Lehmer sequences themselves are Heronian consecutive integer triangles - 14,194,37634,1416317954,2005956546822746114 are the b values for: [13,14,15],[193,194,195],[37633,37634,37635] Maybe there's also a trivial answer to why modding a Mersenne prime against one of the values of a Heronian triangle will eventually output another integer area triangle (some of the time)? |
[QUOTE=a nicol;474325]Trivial, but not previously explicitly associated with the LL test in any material I was able to search out. So worth pointing out, I thought.[/QUOTE]Hardly anything which is trivial is also worth pointing out. Indeed, that could serve as a definition of "trivial".
|
[QUOTE=xilman;474327]Hardly anything which is trivial is also worth pointing out. Indeed, that could serve as a definition of "trivial".[/QUOTE]
How do you tell if the Lehmer symbol of a LL test is going to be + or -? Could you mention some of the methods you know for establishing this? |
[QUOTE=a nicol;474328]How do you tell if the Lehmer symbol of a LL test is going to be + or -? Could you mention some of the methods you know for establishing this?[/QUOTE]
the URL you started with has some for the irregular start values. |
[QUOTE=science_man_88;474344]the URL you started with has some for the irregular start values.[/QUOTE]
Why, mathematically speaking, do these signs vary depending on the start value? Seems like there's a very large dense class theoretical answer to that. Maybe someone could help simplify the answer with some kind of visual analogy? |
[QUOTE=a nicol;474328]How do you tell if the Lehmer symbol of a LL test is going to be + or -?[/QUOTE]
You don't.* [QUOTE=a nicol;474328] Could you mention some of the methods you know for establishing this?[/QUOTE] The method is: run Prime95 with the OutputIterations (iirc) changed... If you want the same for s[SUB]0[/SUB] = 10, set InitialLLValue=10 in prime.txt. If you want the same for s[SUB]0[/SUB] = 2/3, set InitialLLValue=23 in prime.txt Just go and read there - [url]http://mersenneforum.org/showpost.php?p=424019&postcount=30[/url] ____ * Google for "Now that you've found it, it's gone / Now that you feel it, you don't". No, there is no hidden meaning in this footnote. Most of the time, the point of that poem is true - for everyone. :yzzyx: |
[QUOTE=xilman;474327]Hardly anything which is trivial is also worth pointing out. Indeed, that could serve as a definition of "trivial".[/QUOTE]
I have learnt the hard way that sometimes language is a barrier. The use of the word "nominal", for example. |
[QUOTE=Batalov;474351]You don't.*
The method is: run Prime95 with the OutputIterations (iirc) changed... If you want the same for s[SUB]0[/SUB] = 10, set InitialLLValue=10 in prime.txt. If you want the same for s[SUB]0[/SUB] = 2/3, set InitialLLValue=23 in prime.txt Just go and read there - [url]http://mersenneforum.org/showpost.php?p=424019&postcount=30[/url] ____ * Google for "Now that you've found it, it's gone / Now that you feel it, you don't". No, there is no hidden meaning in this footnote. Most of the time, the point of that poem is true - for everyone. :yzzyx:[/QUOTE] There's only one method? |
[QUOTE=a nicol;474350]Why, mathematically speaking, do these signs vary depending on the start value? Seems like there's a very large dense class theoretical answer to that. Maybe someone could help simplify the answer with some kind of visual analogy?[/QUOTE]
it's how they are defined in that paper. or that's the simple answer. maybe it has to do with the difference at that point in the test being a specific remainder mod another value we don't know ( or at least I don't). |
[QUOTE=science_man_88;474355]it's how they are defined in that paper. or that's the simple answer. maybe it has to do with the difference at that point in the test being a specific remainder mod another value we don't know ( or at least I don't).[/QUOTE]
Maybe the answer will become apparent to someone in some small part via referencing integer sequences. Certainly the many thousands of published papers that reference the OEIS as a data point think this is a worthwhile approach to novel mathematical research. Not some here, apparently. |
[QUOTE=a nicol;474356]Maybe the answer will become apparent to someone in some small part via referencing integer sequences. Certainly the many thousands of published papers that reference the OEIS as a data point think this is a worthwhile approach to novel mathematical research. Not some here, apparently.[/QUOTE]
I think they are just trying to be more rigorous, than randomly guessing. [URL="http://mersenneforum.org/showthread.php?t=14151"]theory on Mersenne primes ?[/URL] might be a nice thread for you to read for light reading. you can do other versions of LL as well it's just not really helpful computationally. |
[QUOTE=science_man_88;474357]I think they are just trying to be more rigorous, than randomly guessing. [URL="http://mersenneforum.org/showthread.php?t=14151"]theory on Mersenne primes ?[/URL] might be a nice thread for you to read for light reading. you can do other versions of LL as well it's just not really helpful computationally.[/QUOTE]
Cataloguing novel sequences and coincidental connections is a valid research approach period imo. That is the whole premise of the OEIS. |
[QUOTE=science_man_88;474357]I think they are just trying to be more rigorous, than randomly guessing.[/QUOTE]
A sincere question SM88: Why do you seem so very comfortable just guessing? |
[QUOTE=a nicol;474359]Cataloguing novel sequences and coincidental connections is a valid research approach period imo. That is the whole premise of the OEIS.[/QUOTE]
there are infinitely many starting values for the LL test in it's different forms. [url]https://oeis.org/A018844[/url] ( the minimal start values using the usualy square and subtract 2 method.) [url]https://oeis.org/A084765[/url] without the starting 1 just one of infinitely many sequences using the square times 2 and then minus 1 version. |
[QUOTE=chalsall;474360]A sincere question SM88: Why do you seem so very comfortable just guessing?[/QUOTE]
because that's how most sciences work ( not math sadly) you start out with a hunch show it's implications ( something I fail at doing) and see if it's sturdy. |
[QUOTE=Batalov;474351]You don't.*
The method is: run Prime95 with the OutputIterations (iirc) changed... If you want the same for s[SUB]0[/SUB] = 10, set InitialLLValue=10 in prime.txt. If you want the same for s[SUB]0[/SUB] = 2/3, set InitialLLValue=23 in prime.txt Just go and read there - [url]http://mersenneforum.org/showpost.php?p=424019&postcount=30[/url] [/QUOTE] Thank you, I wasn't aware that table existed (hard to search for). If S[0]=4 is 14,194,37634.. What is the sequence for S[0]=2/3? |
[QUOTE=a nicol;474378]Thank you, I wasn't aware that table existed (hard to search for).
If S[0]=4 is 14,194,37634.. What is the sequence for S[0]=2/3?[/QUOTE] how is 2/3 defined in a modular ring ... that will give you your answer. |
| All times are UTC. The time now is 08:50. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.