Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #19 Feb 02 2023 10:39:20
%S 2,6,18,48,204,10386,19524,28320
%N Numbers k such that 7*R_k - 40 is prime, where R_k = 11...1 is the repunit (A002275) of length k.
%C Also, numbers k such that (7*10^k - 367)/9 is prime.
%C Terms from Kamada.
%C a(9) > 30000.
%C a(9) > 2*10^5. - _Tyler Busby_, Feb 02 2023
%H Makoto Kamada, <a href="https://stdkmd.net/nrr/aaaba.htm">Near-repdigit numbers of the form AA...AABA</a>.
%H Makoto Kamada, <a href="https://stdkmd.net/nrr/7/77737.htm#prime">Prime numbers of the form 77...7737</a>.
%H <a href="/index/Pri#Pri_rep">Index entries for primes involving repunits</a>.
%e For k=6, 7*R_6 - 40 = 777777 - 40 = 777737 which is prime.
%t Select[Range[0, 250000], PrimeQ[(7*10^# - 367)/9] &]
%o (Magma) [n: n in [2..300] | IsPrime((7*10^n-367) div 9)]; // _Vincenzo Librandi_, Apr 11 2015
%Y Cf. A002275.
%K more,hard,nonn
%O 1,1
%A _Robert Price_, Apr 10 2015