OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 1 followed by k-2 occurrences of the digit 3 followed by the digits 07 is prime (see Example section).
a(25) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 13w07.
EXAMPLE
3 is in this sequence because (4*10^3 - 79)/3 = 1307 is prime.
Initial terms and associated primes:
a(1) = 2, 107;
a(2) = 3, 1307;
a(3) = 8, 133333307;
a(4) = 11, 133333333307;
a(5) = 20, 133333333333333333307; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(4*10^# - 79)/3] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jul 11 2017
EXTENSIONS
a(22)-a(24) from Robert Price, Feb 14 2018
STATUS
approved