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 17 is prime (see Example section).
a(29) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 39w17.
EXAMPLE
3 is in this sequence because 4*10^3 - 83 = 3917 is prime.
Initial terms and associated primes:
a(1) = 2, 317;
a(2) = 3, 3917;
a(3) = 6, 3999917;
a(4) = 12, 3999999999917;
a(5) = 24, 3999999999999999999999917; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[4*10^# - 83] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 23 2017
EXTENSIONS
a(27)-a(28) from Robert Price, Oct 04 2018
STATUS
approved