A331038 Residues of the Lucas-Lehmer primality test for M(127) = 2^127 - 1.
3, 7, 47, 2207, 4870847, 23725150497407, 562882766124611619513723647, 9932388036497706472820043948129789713, 102423269049837077051675109560558766898, 7949236499829405891753012242872011683, 119093374737774941856311333667076322210
Offset: 0
Links
- Sergio Pimentel, Table of n,a(n) for n = 0..125
- Eric Weisstein's World of Mathematics, Lucas Lehmer Test.
- Wikipedia, Lucas Lehmer Primality Test.
Crossrefs
Programs
-
Mathematica
NestList[Mod[#^2-2,2^127-1]&, 3,10] (* Stefano Spezia, Mar 28 2025 *)
Formula
a(n) = (a(n-1)^2 - 2) mod (2^127-1) with a(0) = 3; a(125) is the final term.
Comments