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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A075084 Number of composite numbers between n and 2n. 0
0, 1, 2, 3, 4, 5, 5, 7, 7, 7, 8, 9, 10, 12, 12, 12, 13, 15, 15, 17, 17, 17, 18, 19, 20, 21, 21, 22, 23, 24, 24, 26, 27, 27, 28, 28, 28, 30, 31, 31, 32, 33, 34, 36, 36, 37, 38, 40, 40, 41, 41, 41, 42, 43, 43, 44, 44, 45, 46, 48, 49, 51, 52, 52, 53, 53, 54, 56, 56, 56, 57, 59, 60 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

The number of composite numbers <= n is n less the number of primes less 1.

FORMULA

n - Pi(2n) + Pi(n-1) + 1. The sequence is nondecreasing.

EXAMPLE

a(8) = 7: the composite numbers are 8,9,10,12,14,15 and 16.

MATHEMATICA

Table[n - PrimePi[2n] + PrimePi[n - 1] + 1, {n, 2, 75}]

CROSSREFS

Sequence in context: A134875 A134889 A094802 * A086593 A073757 A088468

Adjacent sequences:  A075081 A075082 A075083 * A075085 A075086 A075087

KEYWORD

easy,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Sep 11 2002

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 12 2002

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

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

Last modified February 16 14:37 EST 2012. Contains 205930 sequences.