OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 3 followed by k-2 occurrences of the digit 9 followed by the digits 43 is prime (see Example section).
a(30) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 39w43.
EXAMPLE
3 is in this sequence because 4*10^3 - 57 = 3943 is prime.
Initial terms and associated primes:
a(1) = 3, 3943;
a(2) = 7, 39999943;
a(3) = 10, 39999999943;
a(4) = 15, 3999999999999943;
a(5) = 28, 39999999999999999999999999943; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[4*10^# - 57] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jan 25 2017
EXTENSIONS
a(26)-a(29) from Robert Price, Oct 13 2018
STATUS
approved