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!)
A053622 a(n) = round( n/log(n) - pi(n) ). 1
2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, -1, -1, -2, -1, -1, -1, -2, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -1, -1, -1, -2, -2, -1, -1, -2, -2, -3, -2, -2, -2, -3, -3, -2, -2, -2, -2, -3, -2, -2, -2, -2, -2, -3, -2, -3, -3, -3, -3, -2, -2, -3, -3, -3, -3, -3, -3 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
FORMULA
a(n) = A050499(n) - A000720(n).
MATHEMATICA
Table[Round[n/Log[n] - PrimePi[n]], {n, 2, 80}] (* G. C. Greubel, Apr 20 2017 *)
PROG
(PARI) vector(80, n, n++; round(n/log(n) - primepi(n)) ) \\ G. C. Greubel, May 17 2019
(Magma) [Round(n/Log(n) - #PrimesUpTo(n)): n in [2..80]]; // G. C. Greubel, May 17 2019
(Sage) [round(n/log(n) - prime_pi(n)) for n in (2..80)] # G. C. Greubel, May 17 2019
CROSSREFS
Sequence in context: A270668 A196272 A086073 * A016408 A316868 A106822
KEYWORD
sign
AUTHOR
Henry Bottomley, Mar 21 2000
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 March 28 21:55 EDT 2024. Contains 371254 sequences. (Running on oeis4.)