OFFSET
1,1
COMMENTS
For k > 4, numbers k such that k-5 occurrences of the digit 9 followed by the digits 79999 is prime (see Example section).
a(27) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 9w79999.
EXAMPLE
5 is in this sequence because 10^5 - 20001 = 79999 is prime.
Initial terms and associated primes:
a(1) = 5, 79999;
a(2) = 11, 99999979999;
a(3) = 16, 9999999999979999;
a(4) = 21, 999999999999999979999;
a(5) = 37, 9999999999999999999999999999999979999; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[10^# - 20001] &]
PROG
(Magma) [n: n in [5..400] | IsPrime(10^n - 20001)]; // Vincenzo Librandi, Nov 21 2016
(PARI) is(n)=ispseudoprime(10^n-20001) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 20 2016
EXTENSIONS
a(26) from Robert Price, Jan 26 2018
STATUS
approved