## Mertens’ first theorem:

Mertens’ first theorem may be expressed as the equation:

\begin{equation} \sum_{n=1}^{\pi(N)} \frac{\ln p_n}{p_n} = \ln N \end{equation}

Mertens’ first theorem may be understood as a precursor of the Prime Number Theorem and it may be easily deduced from the PNT but it also raises important questions about the prime numbers from an information-theoretic perspective which I shall address in a future article.

## Proof:

If we start with the Von Mangoldt function $$\Lambda(\cdot)$$:

\begin{equation} \log n = \sum_{p^k | n} \Lambda(p^k) = \sum_{d|n} \Lambda(d) \end{equation}

we may deduce that:

\begin{equation} \sum_{n \leq x} \log n = \sum_{d \leq x} \Lambda(d) \cdot \lfloor \frac{x}{d} \rfloor \approx x \sum_{d \leq x} \frac{\Lambda(d)}{d} \end{equation}

Meanwhile, due to Stirling we have:

\begin{equation} \sum_{n \leq x} \log n \approx x \cdot \log x + x \end{equation}

By combining (3) and (4) we have:

\begin{equation} \sum_{n \leq x} \log n \approx \sum_{d \leq x} \frac{\Lambda(d)}{d} \end{equation}

and we’ll note that:

\begin{equation} \sum_{d \leq x} \frac{\Lambda(d)}{d} = \sum_{k=1}^{\lfloor \log_2 (x) \rfloor} \sum_{p \leq x^{1/k}} \frac{\log p}{p^k} \end{equation}

which simplifies to:

\begin{equation} \sum_{d \leq x} \frac{\Lambda(d)}{d} = \sum_{p \leq x} \frac{\log p}{p} + \mathcal{O}(\sum_{p \leq x^{1/2}} \frac{\log p}{p^2}\big(\frac{1}{1-p})\big) = \sum_{p \leq x} \frac{\log p}{p} + \mathcal{O}(1) \end{equation}

The last argument is correct as we have:

\begin{equation} \sum_{p \leq x^{1/2}} \frac{\log p}{p^2}\big(\frac{1}{1-p}\big) < \sum_{n=2}^{\infty} \frac{\log n}{n^2} = \frac{\pi^2}{6}\cdot (12 \cdot \ln(A) - \gamma - \ln(2 \cdot \pi)) \end{equation}

1. Mark B. Villarino. Mertens’ Proof of Mertens’ Theorem. 2005.

2. Sondow, Jonathan and Weisstein, Eric W. “Mertens Theorem.” From MathWorld–A Wolfram Web Resource. https://mathworld.wolfram.com/MertensTheorem.html