OFFSET
1,1
LINKS
C. Caldwell and P. Kaiser, 139ยท666^178851 - 1, Sep 08 2011
EXAMPLE
a(1)=3 since 3*666 is the least multiple of 666^1 such that k*666^1-1 is prime.
a(178851) <= 139 since 139*666^178851-1 is prime (cf. link).
PROG
(PARI) a(n)={ n=666^n; for(k=1, 1e9, ispseudoprime(k*n-1)&return(k)) }
for(e=1, 199, for(k=1, 1e9, ispseudoprime(k*666^e-1)&!print1(k", ")&break))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Sep 09 2011
STATUS
approved