A129219 Residues of the Lucas - Lehmer primality test for M(7) = 127.
4, 14, 67, 42, 111, 0
Offset: 0
Examples
a(5)= 111^2 - 2 mod 127 = 0
Links
- Eric Weisstein's World of Mathematics, Lucas Lehmer Test.
- Wikipedia, Lucas Lehmer Primality Test.
Formula
a(0) = 4, a(n) = a(n-1)^2 mod 2^p-1. Last term: a(p-2).
Comments