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!)
A075699 Number of primes in the interval (n,4n]. 2
2, 3, 3, 4, 5, 6, 5, 7, 7, 8, 9, 10, 9, 10, 11, 12, 12, 13, 13, 14, 15, 15, 15, 15, 16, 18, 19, 20, 20, 20, 19, 20, 21, 21, 23, 23, 22, 24, 24, 25, 25, 26, 25, 26, 27, 28, 27, 28, 29, 31, 31, 31, 31, 31, 31, 32, 33, 34, 34, 35, 35, 35, 36, 36, 37, 38, 37, 39, 39, 40, 41, 41, 40 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Difference a(n+1)-a(n) = -1,0,1,2.
LINKS
FORMULA
a(n) = A000720(4n) - A000720(n). - Michel Marcus, Oct 02 2013
EXAMPLE
a(4) = 4 because between 4 and 16 there are 4 primes: 5, 7, 11, 13.
a(7) = 5 because between 7 and 28 there are 5 primes: 11, 13, 17, 19, 23.
MAPLE
A075699 := proc(n)
numtheory[pi](4*n)-numtheory[pi](n) ;
end proc: # R. J. Mathar, Nov 03 2017
MATHEMATICA
s=4; a[n_] := PrimePi[s*n]-PrimePi[n]
PROG
(PARI) a(n) = primepi(4*n) - primepi(n); \\ Michel Marcus, Oct 02 2013
CROSSREFS
Sequence in context: A103827 A094182 A300587 * A112330 A332682 A304183
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 02 2002
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 May 21 15:47 EDT 2024. Contains 372738 sequences. (Running on oeis4.)