OFFSET
2,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 2..10001
Eric Weisstein's World of Mathematics, Pseudoprime.
EXAMPLE
a(11) = 1 because prime(11) = 31, ord(4,31) = 5 and 31*(1+2*5*1) is a 2-pseudoprime.
MATHEMATICA
Table[p=Prime[n]; m=MultiplicativeOrder[4, p]; k=1; While[psp=p(1+2*m*k); PowerMod[2, psp-1, psp]!=1, k++ ]; k, {n, 2, 100}]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
T. D. Noe, Jul 08 2003
STATUS
approved