OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 1 followed by k-2 occurrences of the digit 6 followed by the digits 09 is prime (see Example section).
a(20) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 16w09.
EXAMPLE
2 is in this sequence because (5*10^2 - 173)/3 = 109 is prime.
Initial terms and associated primes:
a(1) = 2, 109;
a(2) = 3, 1609;
a(3) = 5, 166609;
a(4) = 7, 16666609;
a(5) = 13, 16666666666609; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(5*10^# - 173)/3] &]
PROG
(PARI) isok(k) = isprime((5*10^k - 173)/3); \\ Michel Marcus, Nov 12 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 11 2017
STATUS
approved