Intuition for Euler’s product formula and the lnln\ln\ln runtime

December 24, 2022
Útulek Series, 4 | CF1761D Chapter, 4

Last time, I investigated the lnln\ln\ln runtime of the Sieve of Eratosthenes, and left off with an introduction of Euler’s Product Formula (EPF). I have since come to realize that the domain for which EPF holds is nuanced and may greatly complicate the proof. Thus, instead of providing anything rigorous, I will instead quickly give intuition to EPF.

Recall the Prime Factorization Theorem (PFT), also known as the Fundamental Theorem of Arithmetic:

Theorem 0.1 (Prime Factorization Theorem): Every positive integer can be written as a product of prime numbers, and this product is unique up to the order of the factors.

We have, then, that every positive integer nn may be uniquely represented in the following form:

n=p1α1p2α2p3α3n=p_1^{\alpha_1}p_2^{\alpha_2}p_3^{\alpha_3}\ldots

for all primes pip_i and non-negative exponents αi\alpha_i. Recognizing the RHS of Euler’s product formula as a geometric series, we have

ζ(s)=(11/pis)11s+2s+3s+=(1+pis+pi2s+)1.\begin{aligned} \zeta(s)&=\prod^\infty (1-1/p_i^s)^{-1}\\ 1^{-s}+2^{-s}+3^{-s}+\ldots&=\prod^\infty (1+p_i^{s}+p_i^{2s}+\ldots)^{-1}. \end{aligned}

As intuition, should s=1s=1, every positive integer occurs on the LHS exactly once. Similarly, by PFT, the positive integers must form a bijection with the RHS terms. For positive real ss in general, any ss-power nn can be represented with each αi\alpha_i an integer multiple of ss. Hence, Euler’s product formula should still hold.

Theorem 0.2 (Euler’s Product Formula): For positive real ss,

ζ(s):=1is=(11/pis)1.\zeta(s):=\sum^\infty\frac{1}{i^s}=\prod^\infty (1-1/p_i^s)^{-1}.

As the harmonic series (the limit of which is ζ(1)\zeta(1)) is Θ(lnN)\Theta(\ln N), and the RHS of Euler’s Product Formula is remarkably close to the prime harmonic series PiP_i, which we suspect to be Θ(lnlnN)\Theta(\ln\ln N), we are inspired to take ln\ln of both sides:

Θ(lnlnN)=ln(1i)=(11/pi)1=ln(11/pi).(0.3)\begin{aligned} \Theta(\ln\ln N)&=\ln(\sum^\infty\frac{1}{i})=\prod^\infty (1-1/p_i)^{-1}\\ &=-\sum^\infty \ln(1-1/p_i). \end{aligned}\tag{0.3}

The RHS is actually remarkably similar to the prime harmonic series. Should we take the Taylor series about x=1x=1 of ln(x)=(x1)(x1)22+(x1)33\ln(x)=(x-1)-\frac{(x-1)^2}{2}+\frac{(x-1)^3}{3}-\ldots, we have

Θ(lnlnN)=ln(11/pi)=(1/pi+1/(2pi2)+1/(3pi3)+)=1pi+121pi2+131pi3+=P+something.\begin{aligned} \Theta(\ln\ln N)&=-\sum^\infty \ln(1-1/p_i)\\ &=\sum^\infty (1/p_i+1/(2p_i^2)+1/(3p_i^3)+\ldots)\\ &=\sum^\infty \frac{1}{p_i}+\frac{1}{2}\sum^\infty \frac{1}{p_i^2}+\frac{1}{3}\sum^\infty \frac{1}{p_i^3}+\ldots\\ &=P_\infty+\text{something}. \end{aligned}

There is a lot of abuse of notation going on here. First, taking ln\ln of a divergent series ζ(1)\zeta(1) in (0.3)(0.3) is no good, and similarly as PP_\infty goes to \infty, we do not want to use it explicitly in showing the growth rate of PiP_i. Still, should the something\text{something} be convergent, the lnln\ln\ln result is intuitively within grasp.

Unfortunately, I’m a little short on time today, so I’ll leave the Taylor series for next time.