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!)
A223853 a(n) = ceiling(li(2*2^n) - li(2^n)) - (pi(2*2^n) - pi(2^n)) with li(x) the logarithmic integral and pi(x) the prime counting function. 3

%I #41 Sep 08 2022 08:46:04

%S 1,1,2,1,2,2,2,1,3,4,1,7,1,13,10,4,25,-5,49,17,38,82,103,-55,245,290,

%T 105,621,-107,1219,1196,-274,1749,5329,2881,2451,6836,2910,15905,

%U 28044,-10652,55758,18068,129994,-95925,52787,443983,253331,151395,740898,-352415

%N a(n) = ceiling(li(2*2^n) - li(2^n)) - (pi(2*2^n) - pi(2^n)) with li(x) the logarithmic integral and pi(x) the prime counting function.

%C This is the difference between the estimate for the number of primes in power of two intervals determined by the li approximation, and the actual number of primes in the power of two interval. The MAGMA program gives the ceiling of the difference between the li estimate at the end points of the interval and the actual number of primes in the interval (A036378).

%C H. J. J. te Riele (1987) using methods developed by Lehman (1966) showed that between 6.62*10^370 and 6.69*10^370 there are more than 10^180 consecutive integers where pi(x) > li(x). It is worth noting that this falls entirely within the power of two interval starting at 2^1231, and while the condition "li underestimates the number of primes in an interval" is not sufficient to imply that pi(x) > li(x), for example in (2^18, 2^19) li(x) underestimates by 5 but li(x) > pi(x) at every point in the interval, it does seem to be necessary for this to occur, assuming runs of consecutive values where pi(x) > li(x) do not cross a power of two.

%H Brad Clardy, <a href="/A223853/b223853.txt">Table of n, a(n) for n = 1..74</a>

%H R. S. Lehman, <a href="http://matwbn.icm.edu.pl/ksiazki/aa/aa11/aa11132.pdf">On the difference pi(x) - li(x)</a>, Acta Arithmetica XI (1966), p. 397-410

%H H. J. J. te Riele, <a href="https://doi.org/10.1090/S0025-5718-1987-0866118-6">On the sign of the difference pi(x) - li(x)</a>, Math. Comp. 48 (1987), p.323-328

%F a(n) = A223900(n) - A036378(n).

%t pi = Table[PrimePi[2^n], {n, 1, 30}];

%t li = Table[LogIntegral[2^n], {n, 1, 30}];

%t Ceiling[Rest@li - Most@li] - (Rest@pi - Most@pi) (* _Peter Luschny_, Oct 14 2017 *)

%o (Magma)

%o 1;

%o for i := 2 to 29 do

%o x := 2^i;

%o y := 2^(i+1);

%o delta_li := Ceiling(LogIntegral(y) - LogIntegral(x));

%o delta_pi := #PrimesInInterval(x, y);

%o delta_li - delta_pi;

%o end for;

%Y Cf. A000720, A036378, A052435, A223900.

%K sign

%O 1,3

%A _Brad Clardy_, Mar 28 2013

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 19 03:30 EDT 2024. Contains 371782 sequences. (Running on oeis4.)