login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A089213 Primes p such that either 3^p-2 or 3^p+2 is prime. 0

%I

%S 2,3,5,37,41,139,317,541,2521

%N Primes p such that either 3^p-2 or 3^p+2 is prime.

%C At p = 2, 3, 139, 3^p + 2 is prime, while at p = 2, 5, 37, 41, 317, 541, 2521 3^p - 2 is prime.

%C a(10) > 2*10^5. - _Robert Price_, Nov 20 2013

%e 2 is in the sequence because both 3^2 - 2 = 7 and 3^2 + 2 = 11 are primes.

%e 3 is in the sequence because 3^3 + 2 = 29 is a prime (though 3^3 - 2 = 25 = 5^2).

%e 5 is in the sequence because 3^5 - 2 = 241 is a prime (though 3^5 + 2 = 245 = 5 * 7^2.

%t Select[Prime[Range[100]], PrimeQ[3^# - 2] || PrimeQ[3^# + 2] &] (* _Alonso del Arte_, Nov 20 2013 *)

%Y Cf. A014224, A051783.

%K nonn

%O 1,1

%A Herman H. Rosenfeld (herm3(AT)pacbell.net), Dec 20 2003

%E Edited by _Zak Seidov_, Aug 08 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 13 22:25 EDT 2020. Contains 336462 sequences. (Running on oeis4.)