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

A126716
Least i such that prime(i)*2^(10^n) -1 is prime.
0
2, 3, 51, 657, 6255
OFFSET
0,1
EXAMPLE
3*2^(10^0)-1=5 prime so a(0)=2 since 3 is prime(2).
3*2^(10^1)-1=3071=37*83 composite, 5*2^(10^1)-1=5119 prime so a(1)=3, since 5 is prime(3).
PROG
(PARI) a(n) = my(i=2); while (!isprime(prime(i)*2^(10^n) -1), i++); i; \\ Michel Marcus, Sep 15 2019
CROSSREFS
Sequence in context: A065646 A268251 A090508 * A355648 A347894 A362836
KEYWORD
nonn,more
AUTHOR
Pierre CAMI, Feb 13 2007
STATUS
approved