OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 3 followed by k-2 occurrences of the digit 8 followed by the digits 67 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 38w67.
EXAMPLE
2 is in this sequence because (35*10^2 - 197)/9 = 367 is prime.
Initial terms and associated primes:
a(1) = 1, 17;
a(2) = 2, 367;
a(3) = 4, 38867;
a(4) = 7, 38888867;
a(5) = 8, 388888867; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(35*10^# - 197)/9] &]
PROG
(Magma) [n: n in [1..400] |IsPrime((35*10^n - 197) div 9)]; // Vincenzo Librandi, Oct 16 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 15 2017
EXTENSIONS
Comments, Link and Example corrected by Robert Price, Jun 11 2018
STATUS
approved