OFFSET
1,2
COMMENTS
Conjectures:
(1) a(n+1) - a(n) = 1 for infinitely many n;
(2) a(n+1) - a(n) = -1 for infinitely many n;
(3) a(n+1) - a(n) = -1 if and only if n = 2*prime(m+1) - 1.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 4 counts the primes in the interval [2,7].
MAPLE
with(numtheory): A229989 := proc(n) return pi(floor((3/2)*n))-pi(floor(n/2)-1): end proc: seq(A229989(n), n=1..75); # Nathaniel Johnston, Oct 11 2013
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 09 2013
STATUS
approved