Thursday, 18 March 2021

Harmonic Primes Grow Like Log(Log(x))

Thinking of the ordinary counting numbers n, we've seen that:

  • 1/n diverges - post.
  • 1/n grows like log(n) - post.


Now thinking about the primes p, we've seen that:

..but we haven't yet asked how pn1/p grows - does it grow like log(n)?


Euler's 1737 Assertion

In 1737 Euler presented a paper "Variae observationes circa series infinitas" to the St Petersburg Academy. You can view the source and translation here.



The last theorem in the paper, theorem 19, says that "The sum of the reciprocals of the prime numbers,

12+13+15+17+111+113+

is infinitely great but is infinitely times less than the sum of the harmonic series

1+12+13+14+15+

And the sum of the former is the as the logarithm of the sum of the latter."


This is interpreted fairly widely as Euler saying that for large x, the partial sum of inverse primes p up to x is approximately loglogx.

px1ploglogx


Sadly, Euler's proof is not considered rigorous by modern standards. Showing how 1/p grows is not as simple as our previous proofs, and it took a while to find a suitably accessible reference. We'll be following the work of Paul Pollack's "Euler and the Partial Sums of the Prime Harmonic Series" paper [pdf]. 


Paul's paper actually proves a stronger result than Euler's assertion, valid for x>e4:

|px1ploglogx|<6


Proof Overview

The proof centres on showing that px1p is bounded above and below by functions that are of the form loglogx+C where C is a constant. 

To achieve that comparison, we'll be making use of three intermediate results, which we'll derive first.


First Result |logζ(s)P(s)|<12

Let's start with the Euler product formula.

ζ(s)=n1ns=n(11ps)


We can take the logarithm because ζ(s) converges for s>1.

logζ(s)=plog(1ps)

We can use log(1+x)=xx22+x33 for |x|<1 to expand the logarithm.

logζ(s)=pk1kpks=P(s)+pk21kpks

We've isolated P(s)=1/ps which looks like a step in the right direction. Let's focus on that double sum.


Since s>1, and 1/kpks1/2pks for k2

0<pk21kpks12pk21pk

Also, since (1x)1=1+x+x2+ for |x|<1, we can say 

pk21kpks12pk21pk=12p(1p2+1p3+1p4+)=12p1p(1p+1p2+1p3+)=12p1p(1+(11p)1)=12p1p(p1)

Since the primes p are a subset of the counting numbers n we can say

12p1p(p1)<12n21n(n1)=12

That last step uses n21n(n1)=n21n11n=1 which can be seen by writing out the first few terms to see how all but the first term cancel.


This leaves us with a nice result, that the difference between the zeta function and P(s), the prime zeta function with primes raised to s>1, is bounded by a finite value.

0<logζ(s)P(s)<12

Note that this does not say anything about the prime harmonic series 1/p because that would require s=1.


Second Result 1<(s1)ζ(s)<s

We have already used integral comparison tests to find that:

1s1<ζ(s)<1s1+1

It is easy to rearrange this:

1<(s1)ζ(s)<s


Third Result |P(s+1)log1s|<12

Let's now focus on just the smaller range 0<s<12. We replace s with s+1 in our previous results to ensure the expressions remain valid. 

The first result gives us:

0<logζ(s)P(s)<12

for s>1.

12<P(s+1)logζ(s+1)<0

for 0<s<12.


The second result gives us:

1<(s1)ζ(s)<s

for s>1.

1<sζ(s+1)<32

for 0<s<12. Taking logarithms gives us

0<logζ(s+1)log1s<log32<12


Adding these two inequalities gives us our third result.

12<P(s+1)log1s<12

|P(s+1)log1s|<12

for 0<s<12. We can do this because a1<b1<c1 and a2<b2<c2 implies a1+a2<b1+b2<c1+c2.


Comparison

We start by defining a function S(λ,x) which is a function of a function λ(t) defined over the small domain t[0,1]:

S(λ,x)=pp11logxλ(p1logx)

It looks rather convoluted, but we'll see it simplifies dramatically if we use a function λ0(t) with the following definition:

λ0(t)={1/tif 1/et10if 0t<1/e

A visualisation of this function is helpful.



Let's look at what 1/et1 means:

1/et11/ep1logx111logxlogp0logxlogp00px

This is the range we're interested in for our original question about how px1/p grows. 

We can perform a similar analysis to find that for the other range 0t<1/e leads to x<p<, which usefully contributes 0 to the sum S(λ0,x).


So this definition of λ0(t) reduces S(λ0,x) nicely:

S(λ,x)=pp11logxλ(p1logx)=pp11logxp+1logx=p1p


Our plan now is to find other functions λ(t) which are larger than, and smaller than, this λ0(t), which hopefully can give us specific bounds around px1/p.


Let's try a linear form for these λ(t)=α+βt.

S(λ,x)=pp11logxλ(p1logx)=pp11logx(α+βp1logx)=αP(1+1logx)+βP(1+2logx)


We can apply the previous third result about P(s+1) if we ensure 0<s<12. We can do this if x>e4 so s=2logx<12.

12<P(1+1logx)loglogx<1212<P(1+2logx)loglogx+log2<12

Continuing, and taking care that α or β could be negative,

|α|2<αP(1+1logx)αloglogx<|α|2|β|2<βP(1+2logx)βloglogx+βlog2<|β|2|α|2|β|2<S(λ,x)αloglogxβloglogx+βlog2<|α|2+|β|2

The next step is true for β positive or negative:

|α|2|β|(12+log2)<S(λ,x)αloglogxβloglogx<|α|2+|β|(12+log2)

Noting that λ(1)=α+β, we can rearrange as:

|α|2|β|(12+log2)<S(λ,x)λ(1)loglogx<|α|2+|β|(12+log2)

Or more concisely.

|S(λ,x)λ(1)loglogx|<|α|2+|β|(12+log2)

Now lets look at two linear versions of λ(t):

  • Upper bound λU(t)=et+(e+1)λ0(t)
  • Lower bound λL(t)=ee1t1e1λ0(t)
Note that α+β=1 for both.

Visualising these is helpful.


Since λU(t)λ0(t), we can say S(λU,x)px1/p:

px1p<loglogx+|α|2+|β|(12+log2)=loglogx+e+12+e(12+log2)px1p<loglogx+6

This is an upper bound for the growth of the prime harmonic series. Let's find the lower bound.

Since λL(t)λ0(t), we can say S(λL,x)px1/p:

px1p>loglogx|α|2|β|(12+log2)=loglogx12(e1)ee1(12+log2)px1p>loglogx+3
 

Putting all this together:

loglogx+3<px1p<loglogx+6

So we can now finally say:

px1p grows like loglogx

The following chart compares pn1p with loglogx for x1000


The chart also shows the difference, which appears to be approaching 12.

Thoughts

That the partial sum of inverse primes grows like loglog means it grows very very slowly

Consider the following comparison between x, logx, and loglogx:

xln xln ln x
102.300.83
10006.911.93
100000013.822.63
100000000020.723.03
100000000000027.633.32

Remembering that the infinite harmonic prime series diverges, a good question to ask if whether the distribution of the primes is almost at the limit of sparsity beyond which the series would converge. 

No comments:

Post a Comment