OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digits 45 followed by k occurrences of the digit 7 is prime (see Example section).
a(22) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 457w.
EXAMPLE
1 is in this sequence because (412*10^1 - 7)/9 = 457 is prime.
Initial terms and associated primes:
a(1) = 1, 457;
a(2) = 16, 457777777777777777;
a(3) = 22, 457777777777777777777777;
a(4) = 26, 4577777777777777777777777777;
a(5) = 29, 4577777777777777777777777777777; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(412*10^# - 7)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 23 2017
STATUS
approved