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!)
A364452 Smallest k such that 4^(4^n) - k is prime. 2
5, 5, 159, 569, 1557, 2439, 25353 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
This is to 4 as A058220 is to 2 and A140331 is to 3.
a(8) > 22174.
LINKS
FORMULA
a(n) = A064722(A137840(n)).
EXAMPLE
a(2) = 5 because 4^(4^2) - 5 = 4294967291 is prime.
MATHEMATICA
lst={}; Do[Do[p=4^(4^n)-k; If[PrimeQ[p], AppendTo[lst, k]; Break[]], {k, 2, 11!}], {n, 7}]; lst
Table[k=1; Monitor[Parallelize[While[True, If[PrimeQ[4^(4^n)-k], Break[]]; k++]; k], k], {n, 1, 7}]
y[n_] := Module[{x = 4^(4^n)}, x - NextPrime[x, -1]]; Array[y, 7]
PROG
(PARI) a(n) = my(x = 4^(4^n)); x - precprime(x);
CROSSREFS
Sequence in context: A229767 A369753 A215729 * A094463 A055928 A213145
KEYWORD
more,nonn
AUTHOR
STATUS
approved

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 August 2 10:23 EDT 2024. Contains 374838 sequences. (Running on oeis4.)