OFFSET
1,1
COMMENTS
a(346802/2) = a(173401) = -1 (see A273987).
LINKS
Joe O, Project Description, Mersenne forum.
Reggie, Welcome to the Sierpinski/Riesel Base 5 Project, PrimeGrid forum.
Wikipedia, Riesel number
EXAMPLE
For n = 5: 10*5^k - 1 is composite for k = 0, 1, 2 and prime for k = 3. Since 3 is the smallest such k, a(5) = 3.
PROG
(PARI) a(n) = for(k=0, oo, if(ispseudoprime((2*n)*5^k-1), return(k)))
CROSSREFS
KEYWORD
sign
AUTHOR
Felix Fröhlich, Jun 18 2021
STATUS
approved