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 29 is prime (see Example section).
a(23) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 39w29.
EXAMPLE
3 is in this sequence because 4*10^3 - 71 = 3929 is prime.
Initial terms and associated primes:
a(1) = 3, 3929;
a(2) = 4, 39929;
a(3) = 6, 3999929;
a(4) = 11, 399999999929;
a(5) = 12, 3999999999929; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[4*10^# - 71] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 10 2017
EXTENSIONS
a(21)-a(22) from Robert Price, Dec 28 2018
STATUS
approved