OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 7 followed by the digits 41 is prime (see Example section).
a(22) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 27w41.
EXAMPLE
2 is in this sequence because (25*10^2 - 331)/9 = 241 is prime.
Initial terms and associated primes:
a(1) = 2, 241;
a(2) = 3, 2741;
a(3) = 5, 277741;
a(4) = 6, 2777741;
a(5) = 9, 2777777741; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(25*10^# - 331)/9] &]
PROG
(PARI) isok(k) = isprime((25*10^k - 331)/9); \\ Michel Marcus, Nov 24 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 24 2017
EXTENSIONS
a(20)-a(21) from Robert Price, Aug 22 2018
STATUS
approved