OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 9 followed by k-2 occurrences of the digit 5 followed by the digits 31 is prime (see Example section).
a(39) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 95w31.
EXAMPLE
4 is in this sequence because (86*10^4 - 221)/9 = 95531 is prime.
Initial terms and associated primes:
a(1) = 1, 71;
a(2) = 4, 95531;
a(3) = 7, 95555531;
a(4) = 13, 95555555555531;
a(5) = 17, 955555555555555531; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(86*10^# - 221)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jun 17 2017
EXTENSIONS
a(27)-a(29) from Robert Price, Aug 31 2019
STATUS
approved