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

A301580
a(n) is the number of positive integers between successive Mersenne primes.
0
3, 23, 95, 8063, 122879, 393215, 2146959359, 2305843007066210303, 618970017336847128235868159, 162258657859193720701440560726015, 170141021201192402518323912137873817599
OFFSET
1,1
LINKS
Caldwell and Honaker, 61897...68159 (27-digits), Prime Curios!
FORMULA
a(n) = A139231(n) - 1. - Omar E. Pol, Mar 23 2018
EXAMPLE
a(2) = 23 because there are 23 positive integers between successive Mersenne primes 7 and 31.
MATHEMATICA
-1 + Differences@ Array[2^MersennePrimeExponent[#] - 1 &, 12] (* Michael De Vlieger, Apr 21 2018 *)
CROSSREFS
Sequence in context: A196318 A213846 A376963 * A112459 A197303 A039506
KEYWORD
nonn
AUTHOR
G. L. Honaker, Jr., Mar 23 2018
STATUS
approved