login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
1,2
COMMENTS
Less than 10 % of a(n)=0.
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