login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Numbers k such that 3^(k-1) - 2^k is prime.
1

%I #26 Jun 03 2023 03:19:07

%S 4,6,7,8,22,32,45,52,58,60,85,98,211,290,291,426,428,712,903,1392,

%T 1683,1828,2342,3482,4818,4887,9060,14328,16948,17581,18358,65298,

%U 69237,84770,94788

%N Numbers k such that 3^(k-1) - 2^k is prime.

%C a(36) > 100000. - _Hugo Pfoertner_, Jun 03 2023

%e a(1) = 4 is in the sequence because 3^3 - 2^4 = 11 is prime.

%e a(2) = 6 is in the sequence because 3^5 - 2^6 = 179 is prime.

%t Cases[Range[1, 300], k_ /; PrimeQ[3^(k - 1) - 2^k]]

%Y Cf. A057468, A162714, A363024.

%Y The sequence that results from increasing all terms by 1 in A162714 is a subsequence.

%K nonn,hard,more

%O 1,1

%A _Sébastien Tao_, May 29 2023

%E a(16)-a(31) from _Michael S. Branicky_, May 29 2023

%E a(32)-a(33) from _Hugo Pfoertner_, May 29 2023

%E a(34)-a(35) from _Hugo Pfoertner_, Jun 02 2023