OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 9 followed by the digits 69 is prime (see Example section).
a(22) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 29w69.
EXAMPLE
3 is in this sequence because 3*10^3 - 31 = 2969 is prime.
Initial terms and associated primes:
a(1) = 2, 269;
a(2) = 3, 2969;
a(3) = 5, 299969;
a(4) = 10, 29999999969;
a(5) = 21, 2999999999999999999969; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[3*10^# - 31] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 18 2017
STATUS
approved