Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Lucas–Lehmer primality test
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Alternate starting values=== Starting values ''s''<sub>0</sub> other than 4 are possible, for instance 10, 52, and others {{OEIS|id=A018844}}.<ref name="Jansen">{{cite thesis |last=Jansen |first=B.J.H. |title=Mersenne primes and class field theory |pages=iii–iv |date=2012 |type=Doctoral thesis |institution=Leiden University |url=https://openaccess.leidenuniv.nl/handle/1887/20310 |access-date=2018-12-17}}</ref> The Lucas–Lehmer residue calculated with these alternative starting values will still be zero if ''M''<sub>''p''</sub> is a Mersenne prime. However, the terms of the sequence will be different and a non-zero Lucas-Lehmer residue for non-prime ''M''<sub>''p''</sub> will have a different numerical value from the non-zero value calculated when ''s''<sub>0</sub> = 4. It is also possible to use the starting value (2 mod ''M''<sub>''p''</sub>)(3 mod ''M''<sub>''p''</sub>)<sup>−1</sup>, usually denoted by 2/3 for short.<ref name="Jansen"/> This starting value equals (2<sup>p</sup> + 1) /3, the [[Wagstaff number]] with exponent ''p''. Starting values like 4, 10, and 2/3 are universal, that is, they are valid for all (or nearly all) ''p''. There are infinitely many additional universal starting values.<ref name="Jansen"/> However, some other starting values are only valid for a subset of all possible ''p'', for example ''s''<sub>0</sub> = 3 can be used if ''p'' = 3 (mod 4).<ref>{{cite journal |first=Raphael M. |last=Robinson |date=1954 |title=Mersenne and Fermat numbers |journal=Proc. Amer. Math. Soc. |volume=5 |issue=5 |pages=842–846 |doi=10.1090/S0002-9939-1954-0064787-4|doi-access=free }}</ref> This starting value was often used where suitable in the era of hand computation, including by Lucas in proving ''M''<sub>''127''</sub> prime.<ref>{{cite tech report |url=https://core.ac.uk/download/pdf/12758.pdf?repositoryId=17 |first=Guy |last=Haworth |title=Mersenne numbers |page=20 |year=1990 |access-date=2018-12-17}}</ref> The first few terms of the sequence are 3, 7, 47, ... {{OEIS|A001566}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)