OFFSET
1,4
COMMENTS
It is known that, for n>10, pi(2*n) < 2*pi(n), where pi(n) is the number of primes not exceeding n (A000720). Thus, for n>10, in the interval (1,n] we have more primes than in the interval (n,2*n).
In connection with this, it is natural to conjecture that there exists a number N such that a(n)>0 for all n >= N.
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 1..2000
MATHEMATICA
Map[Total[Flatten[Map[IntegerExponent[Select[#, PrimeQ]-1, 2]&, {Range[3, #], Range[#+1, 2#-1]}]{1, -1}]]&, Range[50]]
CROSSREFS
KEYWORD
sign
AUTHOR
Vladimir Shevelev, Jul 09 2015
EXTENSIONS
More terms from Peter J. C. Moses, Jul 09 2015
STATUS
approved