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!)
A248371 Number of primes in Breusch's interval [n; 9(n+3)/8]. 2
2, 2, 3, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 3, 3, 2, 3, 3, 3, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 3, 3, 2, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 2, 2, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Germán Andrés Paz proves that a(n) > 0 for all nonnegative n. - Charles R Greathouse IV, Jul 06 2020
LINKS
Germán Andrés Paz, On the Interval [n; 2n]: Primes, Composites and Perfect Powers , Gen. Math. Notes 15 no. 1 (2013), 1-15.
EXAMPLE
a(0)=a(1)=2 because in [0; 9(0+3)/8] = [0; 27/8] and in [1; 9(1+3)/8] = [1; 9/2] there are the two primes 2 and 3.
a(2)=3 because in [2; 9(2+3)/8] = [2; 45/8] there are the three primes 2, 3 and 5.
MAPLE
with(numtheory): A248371:=n->pi(floor((n+3)*9/8))-pi(n-1): seq(A248371(n), n=0..100); # Wesley Ivan Hurt, Oct 05 2014
MATHEMATICA
Table[PrimePi[(n + 3)*9/8] - PrimePi[n - 1], {n, 0, 100}] (* Wesley Ivan Hurt, Oct 05 2014 *)
PROG
(PARI) a(n)=primepi((n+3)*9\8)-primepi(n-1)
CROSSREFS
Sequence in context: A115312 A237721 A254296 * A237768 A237705 A340673
KEYWORD
nonn
AUTHOR
M. F. Hasler, Oct 05 2014
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 17 22:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)