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”).

A129220
Residues of the Lucas - Lehmer primality test for M(11) = 2047.
8
4, 14, 194, 788, 701, 119, 1877, 240, 282, 1736
OFFSET
0,1
COMMENTS
Since a(9) > 0, M(11) is composite. In fact, 2047 = 23 * 89
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(9) = a(8)^2 - 2 mod 2047 = 282^2 - 2 mod 2047 = 1736.
KEYWORD
fini,full,nonn
AUTHOR
Sergio Pimentel, Apr 05 2007
EXTENSIONS
Offset corrected by Nathaniel Johnston, May 31 2011
STATUS
approved