OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 6 followed by k-2 occurrences of the digit 2 followed by the digits 17 is prime (see Example section).
a(23) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 62w17.
EXAMPLE
3 is in this sequence because (56*10^3 - 47)/9 = 6217 is prime.
Initial terms and associated primes:
a(1) = 2, 617;
a(2) = 3, 6217;
a(3) = 6, 6222217;
a(4) = 9, 6222222217;
a(5) = 27, 6222222222222222222222222217; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(56*10^# - 47)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, May 09 2017
EXTENSIONS
a(22) from Robert Price, Feb 25 2019
STATUS
approved