login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A129222
Residues of the Lucas - Lehmer primality test for M(17) = 131071.
8
4, 14, 194, 37634, 95799, 119121, 66179, 53645, 122218, 126220, 70490, 69559, 99585, 78221, 130559, 0
OFFSET
0,1
COMMENTS
Since a(15) = 0, M(17) = 131071 is prime.
LINKS
Eric Weisstein's World of Mathematics, Lucas Lehmer Test.
FORMULA
a(0) = 4, a(n) = a(n-1)^2 mod 2^p-1. Last term: a(p-2).
EXAMPLE
a(15) = 130559^2 - 2 mod 131071 = 0.
KEYWORD
fini,full,nonn
AUTHOR
Sergio Pimentel, Apr 04 2007
STATUS
approved