paper

Practical Computations of the Mertens Function: and

arXiv:2607.07566

Abstract

The Mertens function is defined as , where is the Möbius function. This paper describes a practical implementation of the classical algorithm for computing at isolated values, together with the segmented Möbius and Mertens sieve on which it relies. The implementation was used to compute and , taking days and days, respectively. These computations extend the previous record of by two orders of magnitude. Run standalone, the segmented sieve computed all Mertens values through in approximately days, compared with the -month runtime of the author's 2018 computation. In pursuit of the most practical isolated-value method, an optimized implementation of the asymptotically faster Helfgott-Thompson algorithm is also presented, running roughly four times faster than the original implementation. With both implementations optimized, the choice between methods depends on input size and hardware. The contribution is a reproducible computation and implementation study, rather than a new asymptotic algorithm.

31 pages, 3 figures; code available

Practical Computations of the Mertens Function: $M(10^{24})$ and $M(10^{25})$ · wovepaper