login
A129225
Residues of the Lucas - Lehmer primality test for M(29) = 536870911.
9
4, 14, 194, 37634, 342576132, 250734296, 433300702, 16341479, 49808751, 57936161, 211467447, 71320725, 91230447, 153832672, 217471443, 239636427, 223645010, 90243197, 27374393, 490737401, 35441039, 303927542, 202574536
OFFSET
0,1
COMMENTS
Since a(27) > 0, M(29) = 536870911 is composite. Mersenne numbers are only prime if a(p-2) = 0.
LINKS
Eric Weisstein's World of Mathematics, Lucas Lehmer Test.
FORMULA
a(0) = 4, a(n) = a(n-1)^2 - 2 mod 2^p-1, last term: a(p-2).
EXAMPLE
a(27) = 365171774^2 - 2 mod 536870911 = 458738443.
MATHEMATICA
NestList[Mod[#^2-2, 2^29-1] &, 4, 27] (* Ben Whitmore, Dec 28 2024 *)
KEYWORD
fini,nonn,full,changed
AUTHOR
Sergio Pimentel, Apr 04 2007
STATUS
approved