Section 20.2 Average of Tau
Subsection 20.2.1 Beginnings
Let's begin by observing Figure 20.2.1, which plots the average for
Sage note 20.2.2. Try to be efficient.
Observe the following two cells. The first cell records the successive sums of out
(for βoutputβ), so that we don't have to recalculate the entire sum each time we compute the average value for a different input value. We record the actual averages sequentially in a separate list ls
.
Then the interactive cell is very simple indeed. Try being efficient in your programming!
xxxxxxxxxx
def L(n):
ls = []
out = 0
for i in range(1,n+1):
out += sigma(i,0)
ls.append((i,out/i))
return ls
xxxxxxxxxx
def _(n=100):
P = line(L(n))
show(P)
xxxxxxxxxx
def _(n=100,C=.5,f=[x^(1/2), x, x^(1/3), x^(1/4), log(x), log(log(x)), x^(1.5), x^2]):
f(x) = f
P = line(L(n),legend_label=r'average of $\tau$')
P += plot(C*f,(x,1,n), color='black', linestyle='--', legend_label='$%s%s$'%(RDF(C),latex(f(x))))
show(P)

Subsection 20.2.2 Heuristics for tau
We'll start with a heuristic, going right back to the sieve of Eratosthenes. In that algorithm (6.2.3), we proved that in order to test whetherExample 20.2.4.
For
Subsection 20.2.3 Using sums to get closer
Let's rewrite this inequality in a more suggestive form by notingSubsection 20.2.4 But Big-Oh isn't enough
However, we might also want to know what the average value ofxxxxxxxxxx
def L(n):
ls = []
out = 0
for i in range(1,n+1):
out += sigma(i,0)
ls.append((i,out/i))
return ls
β
P = line(L(1000000))
β
def _(a=.02,n=2):
show(P + plot(a*x^(1/n), (x,1,10^6), color='red',linestyle='--'))
pretty_print(html(r"Blue is the average value of $\tau$"))
pretty_print(html("Red is $%sx^{1/%s}$"%(a,n)))
First, note that
is multiplicative.-
For a given prime
note that grows much more slowly than which is exponential inWhat value do each of these have at
Take derivatives of both functions at
to show that the growth statement is definitely true forShow that for each prime
less than there is an such that the growth statement is true after
Put these pieces of information together to show that
is