OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digits 22 followed by k-1 occurrences of the digit 8 followed by the digit 7 is prime (see Example section).
a(26) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 228w7.
EXAMPLE
4 is in this sequence because (206*10^4-17)/9 = 228887 is prime.
Initial terms and associated primes:
a(1) = 1, 227;
a(2) = 2, 2287;
a(3) = 4, 228887;
a(4) = 5, 2288887;
a(5) = 11, 2288888888887; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(206*10^#-17)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Mar 26 2017
EXTENSIONS
a(24)-a(25) from Robert Price, Jan 14 2020
STATUS
approved