The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A087724 a(n) = -PrimePi(n) +floor( prime(n)/log(n))-2. 3
1, 0, 1, 1, 2, 2, 3, 4, 6, 5, 7, 7, 8, 9, 11, 11, 12, 12, 13, 13, 15, 15, 17, 19, 19, 20, 21, 20, 21, 23, 24, 26, 26, 28, 29, 29, 30, 31, 32, 33, 33, 34, 35, 35, 35, 37, 40, 41, 41, 42, 43, 42, 44, 46, 47, 48, 48, 48, 49, 48, 50, 54, 54, 54, 55, 57, 58, 60, 61, 60, 61, 62, 63, 64 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,5
LINKS
FORMULA
a(n) = A085581(n)-A000720(n) -2. - R. J. Mathar, May 15 2013
MAPLE
A087724 := proc(n)
floor( ithprime(n)/log(n))-numtheory[pi](n) -2 ;
end proc: # R. J. Mathar, May 15 2013
MATHEMATICA
Digits=200 a[n_]=-PrimePi[n]+Floor[Prime[n]/Log[n]]-2 b=Table[a[n], {n, 2, Digits}]
CROSSREFS
Sequence in context: A215644 A288777 A343503 * A152047 A289341 A263096
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Sep 29 2003
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 7 09:16 EDT 2024. Contains 373161 sequences. (Running on oeis4.)