A129223 Residues of the Lucas - Lehmer primality test for M(19) = 524287.
4, 14, 194, 37634, 218767, 510066, 386344, 323156, 218526, 504140, 103469, 417706, 307417, 382989, 275842, 85226, 523263, 0
Offset: 0
Examples
a(17) = 523263^2 - 2 mod 524287 = 0.
Links
- Eric Weisstein's World of Mathematics, Lucas Lehmer Test.
- Wikipedia, Lucas Lehmer Primality Test.
Crossrefs
Formula
a(0) = 4, a(n) = a(n-1)^2 mod 2^p-1. Last term: a(p-2).
Comments