OFFSET
1,2
COMMENTS
For k > 0, numbers k such that the digits 88 followed by k-1 occurrences of the digit 9 followed by the digit 1 is prime (see Example section).
a(29) > 3*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 889w1.
EXAMPLE
7 is in this sequence because 89*10^7 - 9 = 889999991 is prime.
Initial terms and associated primes:
a(1) = 1, 881;
a(2) = 7, 889999991;
a(3) = 13, 889999999999991;
a(4) = 44, 8899999999999999999999999999999999999999999991; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[89*10^# - 9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, May 29 2017
EXTENSIONS
a(28) from Robert Price, May 12 2020
STATUS
approved