OFFSET
1,3
COMMENTS
For k > 0, numbers k such that the digits 22 followed by k-1 occurrences of the digit 6 followed by the digit 7 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 226w7.
EXAMPLE
2 is in this sequence because (68*10^2 + 1)/3 = 2267 is prime.
Initial terms and associated primes:
a(1) = 0, 23;
a(2) = 1, 227;
a(3) = 2, 2267;
a(4) = 8, 2266666667;
a(5) = 9, 22666666667; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(68*10^# + 1)/3] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jan 19 2017
STATUS
approved