A269018 Primes p of the form 2^k + 2*(-1)^k - 1.
2, 5, 17, 29, 257, 509, 65537, 536870909, 13164036458569648337239753460458804039861886925068638906788872189, 3369993333393829974333376885877453834204643052817571560137951281149, 13803492693581127574869511724554050904902217944340773110325048447598589
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..15
Programs
-
Magma
Set(Sort([2^n + 2*(-1)^n - 1: n in [0..300] | IsPrime(2^n + 2*(-1)^n - 1)]))
-
Maple
Res:= 2,5: count:= 2: for n from 4 while count < 15 do x:= 2^n + 2*(-1)^n - 1; if isprime(x) then Res:= Res,x; count:= count+1 fi; od: Res; # Robert Israel, Nov 11 2022
Comments