OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 8 followed by the digits 43 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 28w43.
EXAMPLE
3 is in this sequence because (26*10^3 - 413)/9 = 2843 is prime.
Initial terms and associated primes:
a(1) = 3, 2843;
a(2) = 4, 28843;
a(3) = 6, 2888843;
a(4) = 12, 2888888888843;
a(5) = 15, 2888888888888843; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(26*10^# - 413)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 12 2017
EXTENSIONS
a(23) from Robert Price, May 08 2018
STATUS
approved