OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 4 followed by k-2 occurrences of the digit 9 followed by the digits 57 is prime (see Example section).
a(29) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 49w57.
EXAMPLE
3 is in this sequence because 5*10^3 - 43 = 4957 is prime.
Initial terms and associated primes:
a(1) = 1, 7;
a(2) = 2, 457;
a(3) = 3, 4957;
a(4) = 4, 49957;
a(5) = 5, 499957; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[5*10^# - 43] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Apr 13 2017
EXTENSIONS
a(27)-a(28) from Robert Price, Jan 24 2019
STATUS
approved