login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140331 Smallest k such that 3^(3^n) - k is prime. 3

%I #13 Jan 29 2015 12:12:58

%S 4,2,26,10,466,506,128,13342,5974,8410

%N Smallest k such that 3^(3^n) - k is prime.

%C This is to 3 as A058220 is to 2.

%F a(n) = A064722(A055777(n)). - _Michel Marcus_, Jan 28 2015

%e a(4) = 10 because 3^(3^4) - 10 = 443426488243037769948249630619149892793 is prime.

%t lst={};Do[Do[p=3^(3^n)-k;If[PrimeQ[p],AppendTo[lst,k];Break[]],{k,2,11!}],{n,7}];lst (* _Vladimir Joseph Stephan Orlovsky_, Apr 27 2010 *)

%o (PARI) a(n) = x = 3^(3^n); x - precprime(x); \\ _Michel Marcus_, Jan 28 2015

%Y Cf. A055777 (3^(3^n)), A058220.

%K more,nonn

%O 1,1

%A _Jonathan Vos Post_, May 26 2008

%E a(5)-a(8) from _Cino Hilliard_, Jun 02 2008

%E a(9)-a(10) from _Donovan Johnson_, Sep 13 2008

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 08:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)