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!)
A182067 a(n) = floor(n) - floor(n/2) - floor(n/3) - floor(n/5) + floor(n/30). 2
0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
The sequence takes only the values 0 and 1 and is periodic with period 30. The sequence was used by Chebyshev to obtain the estimate for the prime counting function 0.92*x/log(x) <= #{primes <= x} <= 1.11*x/log(x), for x sufficiently large.
LINKS
H. G. Diamond, Elementary methods in the study of the distribution of prime numbers, Bull. Amer. Math. Soc., Vol.7 (3), 1982.
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
MATHEMATICA
Table[Floor[n] - Floor[n/2] - Floor[n/3] - Floor[n/5] + Floor[n/30], {n, 0, 50}] (* G. C. Greubel, Aug 20 2017 *)
PROG
(PARI) a(n) = n - n\2 - n\3 - n\5 + n\30; \\ Michel Marcus, Jul 25 2017
CROSSREFS
Cf. A211417.
Sequence in context: A286419 A257799 A089496 * A196147 A097325 A242647
KEYWORD
nonn,easy
AUTHOR
Peter Bala, Apr 11 2012
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 April 19 16:03 EDT 2024. Contains 371794 sequences. (Running on oeis4.)