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!)
A307535 a(n) is the smallest k >= 0 such that 2^(2^n) + k*2^n + 1 is prime. 2
0, 0, 0, 0, 0, 12, 15, 3, 9, 202, 56, 304, 635, 11095, 8948, 6415, 14441, 877, 37436 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
COMMENTS
2^(2^n) + a(n)*2^n + 1 = A019434(n) for n <= 4, the known Fermat primes.
Conjecture: 2^(2^n) + a(n)*2^n + 1 = A307532(n) for all n > 4.
Note that a(9) = A030239(9) = 202.
LINKS
FORMULA
a(n) == 1 (mod 2^n).
EXAMPLE
For n = 5, k = 12; 2^(2^5) + 12*2^5 + 1 = 4294967681 is prime, a(5) = 12.
MATHEMATICA
a[n_] := Module[{k = 0}, While[! PrimeQ[2^(2^n) + k*2^n + 1], k++];
k]; Array[a, 10, 0]
PROG
(PARI) isok(k, n) = isprime(2^(2^n) + k*2^n + 1);
a(n) = my(k=0); while (!isok(k, n), k++); k; \\ Michel Marcus, Apr 15 2019
(Python)
from sympy import isprime
def A307535(n):
r = 2**n
m, k = 2**r+1, 0
w = m
while not isprime(w):
k += 1
w += r
return k # Chai Wah Wu, Apr 29 2019
CROSSREFS
Sequence in context: A139310 A221819 A329026 * A180575 A115402 A297790
KEYWORD
nonn,more,hard
AUTHOR
Amiram Eldar and Thomas Ordowski, Apr 13 2019
EXTENSIONS
a(15) from Daniel Suteu, Apr 14 2019
a(16)-a(17) from Chai Wah Wu, Apr 30 2019
a(18) from Michael S. Branicky, Jun 05 2024
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 July 21 09:38 EDT 2024. Contains 374472 sequences. (Running on oeis4.)