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!)
A201356 Numbers k such that (2^k + k + 1)*2^k + 1 is prime. 7
2, 3, 4, 5, 15, 23, 53, 57, 75, 233, 464, 671, 1431, 2021, 5861, 6056, 9063, 14801, 22682 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
4 is in the sequence because (2^4 + 4 + 1)*2^4 + 1 = 337 is prime.
MATHEMATICA
lst={}; Do[If[PrimeQ[(2^n + n+1)*2^n+1], AppendTo[lst, n]], {n, 10000}]; lst
Select[Range[9100], PrimeQ[(2^#+#+1)2^#+1]&] (* Harvey P. Dale, Dec 10 2011 *)
PROG
(PARI) is(n)=ispseudoprime((2^n+n+1)<<n+1) \\ Charles R Greathouse IV, Feb 17 2017
(Python)
from sympy import isprime
def afind(limit, startk=1):
pow2 = 2**startk
for k in range(startk, limit+1):
if isprime((pow2 + k + 1)*pow2 + 1):
print(k, end=", ")
pow2 *= 2
afind(2100) # Michael S. Branicky, Jan 12 2022
CROSSREFS
Sequence in context: A171593 A227535 A096774 * A183528 A145029 A145030
KEYWORD
nonn,hard,more
AUTHOR
Michel Lagneau, Nov 30 2011
EXTENSIONS
a(18) from Michael S. Branicky, Jan 12 2022
a(19) from Michael S. Branicky, Apr 09 2023
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 April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)