A079706 Smallest positive exponent k such that (2n)^k+1 is prime, or -1 if no such k exists.
1, 1, 1, -1, 1, 1, 2, 1, 1, 2, 1, 2, 2, 1, 1, -1, 4, 1
Offset: 1
Keywords
Examples
14+1=15, however 14^2+1=197 is prime, hence a(7)=2.
Links
- Robert G. Wilson v, n and a(n) for n=1 .. 1025, -1 if no such k exists or 0 if unknown.
Programs
-
Mathematica
Table[k=1; While[p=1+(2n)^k; k<1024 && !PrimeQ[p], k=2k]; If[k==1024, -1, k], {n,44}] (* T. D. Noe, May 13 2008 *)
Extensions
More terms from Alexander Adamchuk, Sep 17 2006
Comments