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

A007324
Least number for which Solovay-Strassen primality test on bases < prime(n) fails.
(Formerly M5443)
3
9, 561, 1729, 1729, 399001, 399001, 1857241, 1857241, 6189121, 14469841, 14469841, 14469841
OFFSET
1,1
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
PROG
(PARI) a(n) = my(b, p=factorback(primes(n-1))); forcomposite(k=9, oo, if(gcd(k, p)==1, b=2; while(Mod(b, k)^(k\2) == kronecker(b, k), b++); if(b>=prime(n), return(k)))); \\ Jinyuan Wang, Jun 04 2022
CROSSREFS
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, Eric Bach (bach(AT)cs.wisc.edu)
EXTENSIONS
Offset changed to 1 and a(1) corrected by Jinyuan Wang, Jun 04 2022
STATUS
approved