The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A182414 Least k such that 4^n - 2^k - 1 is prime with n-1 < k < 2*n or 0 if no solution. 1
0, 2, 4, 4, 5, 7, 8, 11, 9, 10, 16, 13, 0, 23, 16, 23, 28, 18, 20, 23, 22, 30, 0, 29, 26, 47, 28, 42, 0, 33, 41, 0, 42, 48, 37, 45, 53, 38, 57, 46, 0, 70, 66, 52, 45, 0, 49, 81, 58, 50, 74, 86, 0, 57, 56, 94, 57, 0, 64, 80, 96, 64, 72, 97, 77, 87, 0, 104, 77 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Less than 10 % of a(n)=0.
LINKS
EXAMPLE
n=2:2^(2*n)-2^1-1=13 prime but n-1=1=k so k not > n-1.
2^(2*n)-2^2-1=11 prime k=2 k>n-1 so a(2)=2.
MATHEMATICA
Table[k = n; While[k < 2*n && ! PrimeQ[4^n - 2^k - 1], k++]; If[k == 2*n, k = 0]; k, {n, 100}] (* T. D. Noe, May 02 2012 *)
CROSSREFS
Cf. A182413.
Sequence in context: A339769 A147534 A118001 * A256984 A111138 A349462
KEYWORD
nonn
AUTHOR
Pierre CAMI, Apr 28 2012
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 May 13 23:15 EDT 2024. Contains 372524 sequences. (Running on oeis4.)