OFFSET
1,3
COMMENTS
For k > 1, numbers k such that the digit 5 followed by k-2 occurrences of the digit 3 followed by the digits 89 is prime (see Example section).
a(29) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 53w89.
EXAMPLE
5 is in this sequence because (16*10^5 + 167)/3 = 533389 is prime.
Initial terms and associated primes:
a(1) = 0, 61;
a(2) = 1, 109;
a(3) = 5, 533389;
a(4) = 8, 533333389;
a(5) = 12, 5333333333389; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(16*10^# + 167)/3] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 25 2017
EXTENSIONS
a(25)-a(28) from Robert Price, Jun 18 2019
STATUS
approved