OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..74 (terms below 10^11; terms 1..46 from Robert G. Wilson v)
Eric Weisstein's World of Mathematics, Fermat Pseudoprime.
MATHEMATICA
lst = {}; Do[ If[ PowerMod[43, 2n - 1, 2n] == 1, AppendTo[lst, 2n]], {n, 2, 1800000000}]; lst (* Robert G. Wilson v, Jun 01 2007 *)
PROG
(PARI) is(k) = k > 2 && !(k % 2) && Mod(43, k)^(k-1) == 1; \\ Amiram Eldar, Sep 29 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, May 26 2007, Jun 20 2007
EXTENSIONS
More terms from Robert G. Wilson v, Jun 01 2007
STATUS
approved