OFFSET
1,3
COMMENTS
For k > 1, numbers k such that the digit 5 followed by k-2 occurrences of the digit 3 followed by the digits 87 is prime (see Example section).
a(33) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 53w87.
EXAMPLE
3 is in this sequence because (16*10^3 + 161)/3 = 5387 is prime.
Initial terms and associated primes:
a(1) = 0, 59;
a(2) = 1, 107;
a(3) = 2, 587;
a(4) = 3, 5387;
a(5) = 6, 5333387, etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(16*10^# + 161)/3] &]
PROG
(PARI) is(n)=ispseudoprime((16*10^n + 161)/3) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Price, May 18 2016
EXTENSIONS
a(32) from Robert Price, Feb 27 2019
STATUS
approved