OFFSET
2,1
COMMENTS
Tables compiled by Pinch were used. Sequence A085999 lists a(n)*prime(n). It can be shown that a(n) has the form 1 + 2 ord(4, prime(n)) k for some k > 0, where the ord(x,y) function is the smallest positive integer r such that x^r = 1 mod y. The value of k for a(n) is given in sequence A086001. Note that prime(n) divides 2^a(n) - 2. Compare A085012, which gives the smallest prime q such that pq is a 2-pseudoprime.
LINKS
Amiram Eldar, Table of n, a(n) for n = 2..10001
R. G. E. Pinch, Pseudoprimes and their factors (FTP).
Eric Weisstein's World of Mathematics, Pseudoprime.
EXAMPLE
a(2) = 187 because prime(2) = 3 and N=187 is the smallest number such that 3N 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++ ]; 1+2*m*k, {n, 2, 100}]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
T. D. Noe, Jul 08 2003
STATUS
approved