login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Numbers k such that 3^k - 4 is prime.
26

%I #52 Jan 04 2023 10:32:39

%S 2,3,5,21,31,37,41,53,73,101,175,203,225,455,557,651,1333,4823,20367,

%T 32555,52057,79371,267267,312155

%N Numbers k such that 3^k - 4 is prime.

%C From _M. F. Hasler_ and _Farideh Firoozbakht_, Oct 30 2009: (Start)

%C If Q is a perfect number such that gcd(Q, 3(3^a(n)-4))=1 then m=3^(a(n)-1) (3^a(n)-4)Q is a solution of the equation sigma(x)=3(x+Q). This is a result of the following theorem.

%C Theorem : If for a prime q, Q is a (q-1)-perfect number and p=q^k-q-1 is a prime such that gcd(Q, p*q)=1, then m=p*q^(k-1)*Q is a solution of the equation sigma(x)=q(x+Q). The proof is easy. (End)

%C From _M. F. Hasler_ and _Farideh Firoozbakht_, Dec 07 2009: (Start)

%C 2 is the only even term of this sequence because if n is an even number greater than 2 then 3^n-4=(3^(n/2)-2)*(3^(n/2)+2) is composite.

%C We have also found the following generalization of this theorem. See comment lines of the sequence A171271.

%C Theorem : If for a prime q, Q is a (q-1)-perfect number and for some integers k and m, p=q^k-m*q-1 is a prime such that gcd(Q, p*q)=1, then x=p*q^(k-1)*Q is a solution of the equation sigma(x)=q(x+m*Q). The proof is easy. (End)

%H Farideh Firoozbakht and M. F. Hasler, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL13/Hasler/hasler2.html">Variations on Euclid's formula for Perfect Numbers</a>, JIS 13 (2010) #10.3.1.

%H Henri & Renaud Lifchitz, <a href="http://www.primenumbers.net/prptop/searchform.php?form=3%5En-4&amp;action=Search">PRP Records</a>.

%t Do[ If[ PrimeQ[3^n - 4], Print[n] ], {n, 1, 3000} ]

%o (PARI) for(n=1,10^3,if(ispseudoprime(3^n-4),print1(n,", "))) \\ _Derek Orr_, Mar 06 2015

%o (Magma) [n: n in [1..10^3]| IsPrime(3^n-4)]; // _Vincenzo Librandi_, Mar 24 2015

%Y Cf. A014224, A171271. - _M. F. Hasler_ and _Farideh Firoozbakht_, Dec 07 2009

%K nonn,more

%O 1,1

%A _Robert G. Wilson v_, Jan 13 2001

%E a(18)=4823, corresponding to a certified prime, from _Ryan Propper_, Jun 30 2005

%E a(19)=20367 from _Ray Chandler_, Jul 25 2011

%E a(20)=32555, a(21)=52057 from _Henri Lifchitz_, Jan 2005

%E a(22)=79371 from _Ray Chandler_, Jul 25 2011

%E a(23)=267267 from _Roman Ilyukhin_, Oct 17 2014

%E a(24)=312155 from _Roman Ilyukhin_, Feb 28 2015