login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157894 Number of composite numbers between exponents of successive Mersenne primes. 0
0, 1, 1, 4, 3, 1, 9, 23, 22, 14, 17, 327, 73, 576, 803, 67, 820, 908, 151, 4672, 222, 1141, 7827, 1583, 1352, 19255, 37986, 22155, 19704, 77081, 499295, 95038, 369638, 130508, 1469735, 42125, 3694547, 6091617 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

COMMENTS

a(1) = 0 since 2 is adjacent to 3 (exponent of 2nd Mersenne prime);

a(2) = 1 since 4 is between 3 and 5 (exponent of 3rd Mersenne prime);

a(3) = 1 since 6 is between 5 and 7 (exponent of 4th Mersenne prime);

a(4) = 4 since 8, 9, 10, and 12 are between 7 and 13 (exponent of 5 th Mersenne prime).

LINKS

Table of n, a(n) for n=1..38.

MATHEMATICA

mp={ (*A000043 *) }; lst = {}; Do[ c = mp[[n + 1]] - mp[[n]] - PrimePi@ mp[[n + 1]] + PrimePi@ mp[[n]]; AppendTo[lst, c], {n, 38}]; lst [From Robert G. Wilson v, Mar 14 2009]

CROSSREFS

A002808, A000043, A046933

Sequence in context: A123160 A039758 A109692 * A172106 A128813 A109062

Adjacent sequences:  A157891 A157892 A157893 * A157895 A157896 A157897

KEYWORD

nonn

AUTHOR

Jani Melik, Mar 08 2009, Apr 02 2009

EXTENSIONS

a(34) - a(38) from Robert G. Wilson v, Mar 14 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified December 22 02:57 EST 2014. Contains 252326 sequences.