login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A331038 Residues of the Lucas-Lehmer primality test for M(127) = 2^127 - 1. 1
3, 7, 47, 2207, 4870847, 23725150497407, 562882766124611619513723647, 9932388036497706472820043948129789713, 102423269049837077051675109560558766898, 7949236499829405891753012242872011683, 119093374737774941856311333667076322210 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Since a(125) = 0, 2^127 - 1 = 170141183460469231731687303715884105727 is prime. This calculation was carried out by hand by Edouard Lucas. It took him 19 years from 1857 to 1876. The method works with a(0) = 3 since M(127) == 3 (mod 4). It also works with a(0) = 4 or a(0) = 10.
LINKS
Eric Weisstein's World of Mathematics, Lucas Lehmer Test.
FORMULA
a(n) = (a(n-1)^2 - 2) mod (2^127-1) with a(0) = 3; a(125) is the final term.
CROSSREFS
Sequence in context: A052381 A219877 A031440 * A001566 A173771 A019039
KEYWORD
nonn,full,fini
AUTHOR
Sergio Pimentel, Jan 08 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)