%I #9 Oct 11 2019 18:26:34
%S 4,14,67,42,111,0
%N Residues of the Lucas - Lehmer primality test for M(7) = 127.
%C Since a(5) = 0, M(7) is prime.
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Lucas-LehmerTest.html">Lucas Lehmer Test</a>.
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Lucas-Lehmer_primality_test">Lucas Lehmer Primality Test</a>.
%F a(0) = 4, a(n) = a(n-1)^2 mod 2^p-1. Last term: a(p-2).
%e a(5)= 111^2 - 2 mod 127 = 0
%Y Cf. A095847, A003010, A129220, A129221, A129222, A129223, A129224, A129225, A129226.
%K fini,full,nonn
%O 0,1
%A _Sergio Pimentel_, Apr 04 2007
|