OFFSET
1,3
COMMENTS
For k > 1, numbers k such that the digit 8 followed by k-2 occurrences of the digit 5 followed by the digits 49 is prime (see Example section).
a(25) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 85w49.
EXAMPLE
4 is in this sequence because (77*10^4 - 59)/9 = 85549 is prime.
Initial terms and associated primes:
a(1) = 0, 2;
a(2) = 1, 79;
a(3) = 4, 85549;
a(4) = 6, 8555549;
a(5) = 12, 8555555555549; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(77*10^# - 59)/9] &]
PROG
(PARI) isok(n) = isprime((77*10^n - 59)/9); \\ Michel Marcus, Nov 01 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Oct 31 2017
STATUS
approved