OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 7 followed by k-2 occurrences of the digit 8 followed by the digits 29 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 78w29.
EXAMPLE
3 is in this sequence because (71*10^3 - 539)/9 = 7829 is prime.
Initial terms and associated primes:
a(1) = 1, 19;
a(2) = 3, 7829;
a(3) = 7, 78888829;
a(4) = 9, 7888888829;
a(5) = 10, 78888888829; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(71*10^#- 539)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 02 2017
EXTENSIONS
a(22)-a(23) from Robert Price, Jul 27 2019
STATUS
approved