OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 5 followed by k-2 occurrences of the digit 1 followed by the digits 27 is prime (see Example section).
a(22) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 51w27.
EXAMPLE
8 is in this sequence because (46*10^8 + 143)/9 = 511111127 is prime.
Initial terms and associated primes:
a(1) = 1, 67;
a(2) = 8, 511111127;
a(3) = 20, 511111111111111111127;
a(4) = 28, 51111111111111111111111111127;
a(5) = 40, 51111111111111111111111111111111111111127; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(46*10^# + 143)/9] &]
PROG
(PARI) isok(k) = isprime((46*10^k + 143)/9); \\ Michel Marcus, Dec 01 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 30 2017
EXTENSIONS
a(20)-a(21) from Robert Price, Jan 17 2019
STATUS
approved