A084712 Smallest prime of the form (2n)^k + 1, or 0 if no such number exists.
3, 5, 7, 0, 11, 13, 197, 17, 19, 401, 23, 577, 677, 29, 31, 0, 1336337, 37
Offset: 1
Examples
a(7) = 197 = 14^2 + 1 as 14 + 1 = 15 is not a prime.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..500 (currently known terms, may contain 0s in place of unknown terms)
Programs
-
Mathematica
Table[k=1; While[p=1+(2n)^k; k<1024 && !PrimeQ[p], k=2k]; If[k==1024, 0, p], {n,44}] (* T. D. Noe, May 13 2008 *)
Extensions
More terms from David Wasserman, Jan 03 2005
Edited by N. J. A. Sloane, Jan 27 2024 at the suggestion of Max Alekseyev
Comments