login
A295586
Numbers k such that (25*10^k - 331)/9 is prime.
0
2, 3, 5, 6, 9, 12, 14, 18, 50, 56, 197, 222, 323, 1256, 1869, 2690, 4461, 5828, 46866, 116601, 141366
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.
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
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 24 2017
EXTENSIONS
a(20)-a(21) from Robert Price, Aug 22 2018
STATUS
approved