A105330 Numbers n such that 2^(n+1)+2n+1 is prime.
0, 1, 2, 3, 4, 7, 10, 13, 14, 26, 40, 49, 50, 110, 142, 170, 315, 349, 502, 842, 1251, 1630, 2054, 2906, 3482, 5110, 5227, 5620, 8224, 8788, 8912, 13027, 16243, 17222, 28557, 46532, 54974, 92866, 93093, 120855, 155416
Offset: 1
Examples
110 is in the sequence because 2^111+2*110+1=2596148429267413814265248164610269 is prime.
Programs
-
Mathematica
Do[If[PrimeQ[2^(m + 1) + 2m + 1], Print[m]], {m, 0, 30500}]
-
PARI
is(n)=isprime(2^(n+1)+2*n+1) \\ Charles R Greathouse IV, Feb 20 2017
Comments