cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A248371 Number of primes in Breusch's interval [n; 9(n+3)/8].

Original entry on oeis.org

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
Offset: 0

Views

Author

M. F. Hasler, Oct 05 2014

Keywords

Comments

Germán Andrés Paz proves that a(n) > 0 for all nonnegative n. - Charles R Greathouse IV, Jul 06 2020

Examples

			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.
		

Programs

  • 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 *)
  • PARI
    a(n)=primepi((n+3)*9\8)-primepi(n-1)