OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 6 followed by k-2 occurrences of the digit 5 followed by the digits 47 is prime (see Example section).
a(23) > 2*10^5.
All terms == 0 or 2 (mod 3). - Robert Israel, May 30 2019
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers
Makoto Kamada, Search for 65w47.
EXAMPLE
2 is in this sequence because (59*10^2 - 77)/9 = 647 is prime.
Initial terms and associated primes:
a(1) = 2, 647;
a(2) = 3, 6547;
a(3) = 5, 655547;
a(4) = 6, 6555547;
a(5) = 9, 6555555547; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(59*10^# - 77)/9] &]
PROG
(PARI) is(n) = ispseudoprime((59*10^n - 77)/9) \\ Felix Fröhlich, May 30 2019
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 05 2017
STATUS
approved