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!)
A108954 a(n) = pi(2*n) - pi(n). Number of primes in the interval (n,2n]. 14

%I #46 Sep 26 2021 11:15:59

%S 1,1,1,2,1,2,2,2,3,4,3,4,3,3,4,5,4,4,4,4,5,6,5,6,6,6,7,7,6,7,7,7,7,8,

%T 8,9,9,9,9,10,9,10,9,9,10,10,9,9,10,10,11,12,11,12,13,13,14,14,13,13,

%U 12,12,12,13,13,14,13,13,14,15,14,14,13,13,14,15,15,15,15,15,15,16,15,16

%N a(n) = pi(2*n) - pi(n). Number of primes in the interval (n,2n].

%C a(n) < log(4)*n/log(n) < 7*n/(5*log(n)) for n > 1. - _Reinhard Zumkeller_, Mar 04 2008

%C Bertrand's postulate is equivalent to the formula a(n) >= 1 for all positive integers n. - _Jonathan Vos Post_, Jul 30 2008

%C Number of distinct prime factors > n of binomial(2*n,n). - _T. D. Noe_, Aug 18 2011

%C f(2, 2n) - f(3, n) < a(n) < f(3, 2n) - f(2, n) for n > 5889 where f(k, x) = x/log x * (1 + 1/log x + k/(log x)^2). The constant 3 can be improved. - _Charles R Greathouse IV_, May 02 2012

%C For n >= 2, a(n) is the number of primes appearing in the 2nd row of an n X n square array whose elements are the numbers from 1..n^2, listed in increasing order by rows. - _Wesley Ivan Hurt_, May 17 2021

%D F. Irschebeck, Einladung zur Zahlentheorie, BI Wissenschaftsverlag 1992, p. 40

%H T. D. Noe, <a href="/A108954/b108954.txt">Table of n, a(n) for n = 1..10000</a>

%H Tsutomu Hashimoto, <a href="http://arxiv.org/abs/0807.3690">On a certain relation between Legendre's conjecture and Bertrand's postulate</a>, arXiv:0807.3690 [math.GM], 2008.

%F a(n) = A000720(2*n)-A000720(n).

%F For n > 1, a(n) = A060715(n). - _David Wasserman_, Nov 04 2005

%F Conjecture: G.f.: Sum_{i>0} Sum_{j>=i|i+j is prime} x^j. - _Benedict W. J. Irwin_, Mar 31 2017

%F From _Wesley Ivan Hurt_, Sep 20 2021: (Start)

%F a(n) = Sum_{k=1..n} A010051(2*n-k+1).

%F a(n) = Sum_{k=n*(n+1)/2+2..(n+1)*(n+2)/2} A010051(A128076(k)). (End)

%p A108954 := proc(n)

%p numtheory[pi](2*n)-numtheory[pi](n) ;

%p end proc: # _R. J. Mathar_, Nov 03 2017

%t Table[Length[Select[Transpose[FactorInteger[Binomial[2 n, n]]][[1]], # > n &]], {n, 100}] (* _T. D. Noe_, Aug 18 2011 *)

%t f[n_] := Length@ Select[ Range[n + 1, 2n], PrimeQ]; Array[f, 100] (* _Robert G. Wilson v_, Mar 20 2012 *)

%t Table[PrimePi[2n]-PrimePi[n],{n,90}] (* _Harvey P. Dale_, Mar 11 2013 *)

%o (PARI) g(n) = for(x=1,n,y=primepi(2*x)-primepi(x);print1(y","))

%Y Cf. A000720, A060715.

%Y Cf. A067434 (number of prime factors in binomial(2*n,n)), A193990, A074990.

%K nonn,easy

%O 1,4

%A _Cino Hilliard_, Jul 22 2005

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 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)