OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 8 followed by k-2 occurrences of the digit 5 followed by the digits 27 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 85w27.
EXAMPLE
3 is in this sequence because (77*10^3 - 257)/9 = 8527 is prime.
Initial terms and associated primes:
a(1) = 2, 827;
a(2) = 3, 8527;
a(3) = 5, 855527;
a(4) = 8, 855555527;
a(5) = 9, 8555555527; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(77*10^# - 257)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 04 2017
STATUS
approved