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

A134305
Numbers k such that A134303(k) is the lesser of twin primes, A134303(k) = A134304(k).
2
1, 2, 3, 4, 40, 59, 60, 61, 62, 241, 276, 404, 2159, 2160, 2161
OFFSET
1,2
PROG
(PARI) a3(n) = {my(k=1); while (!(isprime(k*2^n*(k*2^n-1)-1)), k++); k; }
a4(n) = {my(k=1); while (!(isprime(p=k*2^n*(k*2^n-1)-1) && isprime(p+2)), k++); k; }
isok(n) = a3(n) == a4(n); \\ Michel Marcus, Sep 17 2019
CROSSREFS
Sequence in context: A302943 A037326 A024634 * A000033 A270350 A060411
KEYWORD
nonn,more
AUTHOR
Pierre CAMI, Oct 19 2007
EXTENSIONS
a(12)-a(15) from Jinyuan Wang, Mar 05 2020
STATUS
approved