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”).

A134304
Least k such that k*2^n*(k*2^n-1)-1 and k*2^n*(k*2^n-1)+1 are twin primes.
2
2, 1, 2, 1, 11, 21, 57, 211, 141, 156, 78, 39, 140, 70, 35, 214, 107, 90, 45, 309, 330, 165, 120, 60, 30, 15, 435, 651, 420, 210, 105, 429, 1143, 576, 288, 144, 72, 36, 18, 9, 116, 58, 29, 2286, 1143, 1638, 819, 1071, 983, 1983
OFFSET
1,1
PROG
(PARI) a(n) = {my(k=1); while (!(isprime(p=k*2^n*(k*2^n-1)-1) && isprime(p+2)), k++); k; } \\ Michel Marcus, Sep 17 2019
CROSSREFS
Sequence in context: A097749 A126906 A179508 * A211096 A134569 A295853
KEYWORD
nonn
AUTHOR
Pierre CAMI, Oct 19 2007
STATUS
approved