Section 20.5 Looking Ahead
ΒΆLet's recap.The average value of Ο(n) was log(n)+2Ξ³β1.
-
The average value of Ο(n) was (12ββd=11d2)n.
-
Because of Euler's amazing solution to the Basel problem, we know that
ββd=11d2=Ο26so the constant in question is Ο212.
-
a
is the coefficient and n
is the power of a model axn.
xxxxxxxxxx
def L(n):
ls = []
out = 0
for i in range(1,n+1):
out += euler_phi(i)
ls.append((i,out/i))
return ls
β
LS = L(1000)
P = line(LS)
def _(a=.01,n=2,view=(50,[25,50,..500])):
show(P+plot(a*x^n,0,view, color='black',linestyle="--"), xmin=1,xmax=view, ymax=LS[view][1])
pretty_print(html(r"Blue is the average value of $\phi$"))
pretty_print(html("Red is $%s x^{%s}$"%(latex(a),n)))