Section 24.6 Four Facts
In Subsection 24.6.1, we will show that the probability that a random integer lattice point is βvisibleβ from the origin is
this is Proposition 24.6.2.In Subsection 24.6.2, we see that the Dirichlet series for
is this is Proposition 24.6.3.In Subsection 24.6.4, we compute the average value of
to be this is Proposition 24.6.7.In Subsection 24.6.3, we see that the prime harmonic series sum
diverges, with the th prime; this is Proposition 24.6.4.
Subsection 24.6.1 Random integer lattice points
The following graphic will indicate what it means to have a point visible from the origin; is there a point directly between it and the origin or not? To rephrase, what is the probability that a point in the integer lattice has a line connecting the point to the origin that does not hit any other point? (We will explicitly avoid any discussion of why such infinitary probabilities are defined in this introductory text.)
xxxxxxxxxx
def _(viewsize=(5,[3..25])):
var('x,y')
P=Graphics()
grid_pts = [[i,j] for i in [-viewsize..viewsize] for j in [-viewsize..viewsize]]
P += points(grid_pts,rgbcolor=(0,0,0),pointsize=2)
lattice_pts = [coords for coords in grid_pts if (gcd(coords[0],coords[1])==1)]
P += points(lattice_pts, rgbcolor = (0,0,1), pointsize=10)
linesegs=[line([[0,0],[spot[0],spot[1]]], rgbcolor=(1,0,0), linestyle="--",thickness=.5) for spot in lattice_pts]
for object in linesegs:
P += object
show(P, figsize = [5,5], xmin = -viewsize, xmax = viewsize, ymin = -viewsize, ymax = viewsize, aspect_ratio=1)
pretty_print(html(r"Probability in view is $\approx %s$"%( Integer(len(lattice_pts)) / Integer(len(grid_pts))).n()))
pretty_print(html(r"Theoretical probability is $1/\zeta(2)\approx %s$"%(1/zeta(2)).n()))
Proposition 24.6.2.
The chances that a random integer lattice point is visible from the origin is
Proof.
We will prove the statement about coprime random integers, or at least we will prove as much of it as we can without discussing infinite combinations of independent chances. We will also make an assumption about distribution of primes to simplify the proof; one can consider this a sketch, if necessary.
First, we know that \(\gcd(x,y)=1\) is true precisely if \(x\) and \(y\) are never simultaneously congruent to zero modulo \(p\text{,}\) for any prime \(p\text{.}\) (If there were such a \(p\text{,}\) of course it would be a divisor; by the Fundamental Theorem of Arithmetic we need only consider primes.)
For any given prime \(p\text{,}\) the chances that two integers will both be congruent to zero is
This works because the probabilities are independent, since \(p\) is fixed, so we can just multiply probabilities.
Hence the probability that at least one of \(x\) or \(y\) will not be divisible by \(p\) is
(This may remind you of the so-called birthday problem in probability.)
Now comes our assumption. We will suppose that if \(p \neq q\) are both prime, then the probability that any given integer is divisible by \(p\) has nothing to do with whether it is divisible by \(q\text{.}\) (Such properties are not true in general; if \(n\) is divisible by 4 it has a 100% likelihood of being divisible by 2, while if \(n\) is prime, it has almost no chance of being even.)
In such a case the probabilities are independent, so that (even in this infinitary case)
We may note (as in the more extended discussion in [E.2.1, Chapter 9.4]) by using Fact 24.4.2 that this is also the value of the Dirichlet series of \(\mu\) evaluated at \(s=2\text{.}\)
xxxxxxxxxx
(6/pi^2).n()
Subsection 24.6.2 Dirichlet for the absolute Moebius
Proposition 24.6.3.
The Dirichlet series for
Proof.
With all the tools we've gained, the proofβ3β is nearly completely symbolic at this point!
First, we have the following from the definition of Moebius in Definition 23.1.1, or from Fact 24.5.5:
Next, let us write \(x=\frac{1}{p^s}\text{;}\) then we can use the basic identity \((1+x)=\frac{1-x^2}{1-x}\) to rewrite the right-hand side as
Now we just invert both numerator and denominator to get familiar friends:
which means the sum will be \(\zeta(s)/\zeta(2s)\text{.}\)
xxxxxxxxxx
def _(s=[2,3,4,5]):
S = sum([abs(moebius(n))/n^s for n in [1..10000]]).n()
S2 = zeta(RR(s))/zeta(2*RR(s))
pretty_print(html("The approximation is $%s$ while the zeta computation is $%s$."%(S,S2)))
Subsection 24.6.3 The prime harmonic series
The divergence of the series created from the reciprocals of prime numbers is not necessarily a particularly obvious fact. Certainly it diverges much, much slower than the harmonic series (recalled before Definition 20.3.10), which already diverges very slowly. Euler showed this in 1737.xxxxxxxxxx
def _(n=[10,100,1000,10000,100000,1000000]):
out = sum([RealField(100)(1/p) for p in primes_first_n(n)])
pretty_print(html("The sum of the reciprocals of the first $%s$ primes is $\\approx %s$"%(n,out)))
Proposition 24.6.4. Prime harmonic series diverges.
Let
Proof.
This is a fairly expanded form of the proofs in [E.2.1, Theorem 9.2] and [E.4.6, Theorem 1.13], which the latter attributes to Clarkson in the Proceedings of the AMS.
As with many other occasions to prove series divergence, we will focus on the βtailβs beyond a point that keeps getting further out. In this case, we'll choose the βtailβ beyond the first \(k\) primes,
By examining certain terms in this, and assuming (falsely) that it can be made finite, we will obtain a contradiction.
First, let's consider numbers of the form
(Recall the primorial notation from Definition 22.2.7.) Such a number cannot be divisible by any of those first \(k\) primes, so by the Fundamental Theorem of Arithmetic any number like \(p_k\#\cdot r+1\) may be factored as
where all \(n_i>k\) (some may be repeated).
Return to the βtailβ. Since this \(p_k\#\cdot r+1\) factors with \(\ell\) factors, then somewhere in the \(\ell\)th power of the βtailβ we have the following term:
Now assume that in fact the prime harmonic series converges; we will derive a contradiction.
First, for some \(k\text{,}\) the βtailβ \(T\) is less than \(\frac{1}{2}\text{,}\) i.e. \(T =\sum_{n>k}\frac{1}{p_n}<\frac{1}{2}\text{.}\) Since each term is positive, \(T>0\) and a geometric series involving the \(\ell\)th powers of \(T\) is very precisely bounded:
Now we bring in the first discussion in this proof; every single term of the form \(\frac{1}{p_1 p_2 p_3\cdots p_k r+1}\) will appear somewhere within this sum of the \(\ell\)th powers, though naturally \(\ell\) in each case will depend heavily upon \(r\text{.}\)
So the series of reciprocals of just these special terms is bounded.
A bounded series of all positive number should converge (e.g. by comparison).
Here comes the contradiction. The same series is bounded below as follows, for each integer \(k\text{.}\)
This series certainly diverges, as a multiple of the tail of the harmonic series!
Since no matter how big \(k\) is (and hence how far out in the βtailβ we go) we report that a certain series both converges and diverges, we have a contradiction. Hence our original assumption that we could choose \(k\) to make \(T\) finite was false, and the prime harmonic series must diverge!
Subsection 24.6.4 The average value of Euler phi
Finally, here is a really nice result to end with. Thinking about the average value of

xxxxxxxxxx
def _(n=(6,list(range(2,50)))):
viewsize=n+1
g(x)=1/x
P=Graphics()
P += plot(n*g,(x,0,n+1))
grid_pts = [[i,j] for i in [1..viewsize] for j in [1..viewsize]]
P += points(grid_pts,rgbcolor=(0,0,0),pointsize=2)
lattice_pts = [coords for coords in grid_pts if (coords[0]*coords[1]<=n)]
for thing in lattice_pts:
P += text(moebius(thing[1])*thing[0], thing,rgbcolor=(0,0,0))
show(P,ymax=viewsize,aspect_ratio=1)
-
From above (e.g. Fact 24.4.2),
-
From the previous chapter (e.g. Fact 23.3.2),
Proposition 24.6.7.
The long-term average value of
Proof.
Consider the summation function for \(\phi\text{,}\) \(\sum_{k=1}^n\phi(n)\text{.}\) As in Chapter 20, we will think of it as summing things up in two different ways.
In particular, look at the summation once we have replaced with the Moebius sum inside:
Now instead of considering it as a sum over divisors for each \(k\text{,}\) we can think of it as summing for each divisor over the various hyperbolas \(xy=k\text{.}\) This yields
Now let's examine the terms of this sum. We will several times use Landau notation as in Definition 20.1.2.
Knowing about the sum of the first few consecutive integers (also used at the end of Subsection 20.3.2), we see that
If we plug that in the double sum, we get
Let's examine this.
The first term goes to \(\frac{6}{\pi^2}\) as \(n\to\infty\text{.}\) Further, its error is \(O(1/n)\text{,}\) because \(\mu(n)/n^2<1/n^2\) and \(\int x^{-2}\, dx=-x^{-1}\text{.}\)
The second term is certainly \(O(n\log(n))\text{,}\) since it is \(n\) times a sum which is less than something \(O(\log(n))\) (namely, \(\zeta\)).
Plugging everything in, we get that
Dividing by \(n\) and taking the limit, we get the asymptotic result.