OFFSET
1,2
COMMENTS
For k > 0, numbers k such that the digits 97 followed by k-1 occurrences of the digit 9 followed by the digit 7 is prime (see Example section).
a(25) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 979w7.
EXAMPLE
5 is in this sequence because 98*10^5 - 3 = 9799997 is prime.
Initial terms and associated primes:
a(1) = 1, 977;
a(2) = 5, 9799997;
a(3) = 7, 979999997;
a(4) = 8, 9799999997;
a(5) = 13, 979999999999997; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[98*10^# - 3] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jun 05 2017
STATUS
approved