OFFSET
1,1
COMMENTS
For k > 1, numbers k such that k-2 occurrences of the digit 7 followed by the digits 61 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 7w61.
EXAMPLE
3 is in this sequence because (7*10^3 - 151)/9 = 761 is prime.
Initial terms and associated primes:
a(1) = 2, 61;
a(2) = 3, 761;
a(3) = 5, 77761;
a(4) = 6, 777761;
a(5) = 8, 77777761; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(7*10^# - 151)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Sep 28 2017
EXTENSIONS
a(23) from Robert Price, Feb 14 2018
STATUS
approved