OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 1 followed by k-2 occurrences of the digit 3 followed by the digits 27 is prime (see Example section).
a(26) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 13w27.
EXAMPLE
3 is in this sequence because (4*10^3 - 19)/3 = 1327 is prime.
Initial terms and associated primes:
a(1) = 1, 7;
a(2) = 2, 127;
a(3) = 3, 1327;
a(4) = 4, 13327;
a(5) = 5, 133327; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(4*10^# - 19)/3] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jun 23 2017
EXTENSIONS
a(25) from Robert Price, Mar 01 2018
STATUS
approved