ArticleslgStudy

mathematics

Mertens function

Mertens function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Mertens function rather than just read about it. In short: In number theory, the Mertens function is defined for all positive integers n as M(n)=∑k=1nμ(k), where μ(k) is the Möbius function. The function is named in honour of Franz Mertens.

Mertens function — main illustration
Mertens function — illustration

Key takeaways

  • Mertens function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Mertens function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Mertens function from memory before moving on to harder problems.

Reference excerpt

In number theory, the Mertens function is defined for all positive integers n as

M(n)=∑k=1nμ(k), where μ(k) is the Möbius function. The function is named in honour of Franz Mertens. This definition can be extended to positive real numbers as follows:

M(x)=M(⌊x⌋). Less formally, M(x) is the count of square-free integers up to x that have an even number of prime factors, minus the count of those that have an odd number. The first 143 M(n) values are (sequence A002321 in the OEIS)

The Mertens function slowly grows in positive and negative directions both on average and in peak value, oscillating in an apparently chaotic manner passing through zero when n has the values

2, 39, 40, 58, 65, 93, 101, 145, 149, 150, 159, 160, 163, 164, 166, 214, 231, 232, 235, 236, 238, 254, 329, 331, 332, 333, 353, 355, 356, 358, 362, 363, 364, 366, 393, 401, 403, 404, 405, 407, 408, 413, 414, 419, 420, 422, 423, 424, 425, 427, 428, ... (sequence A028442 in the OEIS). Because the Möbius function only takes the values −1, 0, and +1, the Mertens function moves slowly, and there is no x such that |M(x)| > x. H. Davenport demonstrated that, for any fixed h,

∑n=1xμ(n)exp⁡(i2πnθ)=O(xloghx) uniformly in θ. This implies, for θ=0 that

M(x)=O(xloghx) . The Mertens conjecture went further, stating that there would be no x where the absolute value of the Mertens function exceeds the square root of x. The Mertens conjecture was proven false in 1985 by Andrew Odlyzko and Herman te Riele. However, the Riemann hypothesis is equivalent to a weaker conjecture on the growth of M(x), namely M(x) = O(x1/2 + ε). Since high values for M(x) grow at least as fast as x, this puts a rather tight bound on its rate of growth. Here, O refers to big O notation. The true rate of growth of M(x) is not known. An unpublished conjecture of Steve Gonek states that

0<lim supx→∞|M(x)|x(log⁡log⁡log⁡x)5/4<∞. Probabilistic evidence towards this conjecture is given by Nathan Ng. In particular, Ng gives a conditional proof that the function e−y/2M(ey) has a limiting distribution ν on ℝ. That is, for all bounded Lipschitz continuous functions f on the reals we have that

limY→∞1Y∫0Yf(e−y/2M(ey))dy=∫−∞∞f(x)dν(x), if one assumes various conjectures about the Riemann zeta function.

Representations

As an integral Using the Euler product, one finds that

1ζ(s)=∏p(1−p−s)=∑n=1∞μ(n)ns, where ζ(s) is the Riemann zeta function, and the product is taken over primes. Then, using this Dirichlet series with Perron's formula, one obtains

12πi∫c−i∞c+i∞xssζ(s)ds=M(x), where c > 1. Conversely, one has the Mellin transform

1ζ(s)=s∫1∞M(x)xs+1dx, which holds for Re⁡(s)>1. A curious relation given by Mertens himself involving the second Chebyshev function is

ψ(x)=M(x2)log⁡2+M(x3)log⁡3+M(x4)log⁡4+⋯. Assuming that the Riemann zeta function has no multiple non-trivial zeros, one has the "exact formula" by the residue theorem:

M(x)=∑ρxρρζ′(ρ)−2+∑n=1∞(−1)n−1(2π)2n(2n)!nζ(2n+1)x2n. Hermann Weyl conjectured that the Mertens function satisfied the approximate functional-differential equation

y(x)2−∑r=1NB2r(2r)!Dt2r−1y(xt+1)+x∫0xy(u)u2du=x−1H(log⁡x), where H(x) is the Heaviside step function, B are Bernoulli numbers, and all derivatives with respect to t are evaluated at t = 0. There is also a trace formula involving a sum over the Möbius function and zeros of the Riemann zeta function in the form

∑n=1∞μ(n)ng(log⁡n)=∑γh(γ)ζ′(1/2+iγ)+2∑n=1∞(−1)n(2π)2n(2n)!ζ(2n+1)∫−∞∞g(x)e−x(2n+1/2)dx, where the first sum on the right-hand side is taken over the non-trivial zeros of the Riemann zeta function, and (g, h) are related by the Fourier transform, such that

2πg(x)=∫−∞∞h(u)eiuxdu.

As a sum over Farey sequences Another formula for the Mertens function is

M(n)=−1+∑a∈ℱne2πia, where ℱn is the Farey sequence of order n. This formula is used in the proof of the Franel–Landau theorem.

As a determinant M(n) is the determinant of the n × n Redheffer matrix, a (0, 1) matrix in which aij is 1 if either j is 1 or i divides j.

As a sum of the number of points under n-dimensional hyperboloids M(x)=1−∑2≤a≤x1+∑a≥2∑b≥2ab≤x1−∑a≥2∑b≥2∑c≥2abc≤x1+∑a≥2∑b≥2∑c≥2∑d≥2abcd≤x1−⋯ This formulation expanding the Mertens function suggests asymptotic bounds obtained by considering the Piltz divisor problem, which generalizes the Dirichlet divisor problem of computing asymptotic estimates for the summatory function of the divisor function.

Other properties From we have

∑d=1nM(n/d)=1 . Furthermore, from

∑d=1nM(n/d)d=Φ(n) , where Φ(n) is the totient summatory function.

Calculation Neither of the methods mentioned previously leads to practical algorithms to calculate the Mertens function. Using sieve methods similar to those used in prime counting, the Mertens function has been computed for all integers up to an increasing range of x.

The Mertens function for all integer values up to x may be computed in O(x log log x) time. A combinatorial algorithm has been developed incrementally starting in 1870 by Ernst Meissel, Lehmer, Lagarias-Miller-Odlyzko, and Deléglise-Rivat that computes isolated values of M(x) in O(x2/3(log log x)1/3) time; a further improvement by Harald Helfgott and Lola Thompson in 2021 improves this to O(x3/5(log x)3/5+ε), and an algorithm by Lagarias and Odlyzko based on integrals of the Riemann zeta function achieves a running time of O(x1/2+ε). See OEIS: A084237 for values of M(x) at powers of 10.

Known upper bounds Ng notes that the Riemann hypothesis (RH) is equivalent to

M(x)=O(xexp⁡(C⋅log⁡xlog⁡log⁡x)), for some positive constant C>0. Other upper bounds have been obtained by Maier, Montgomery, and Soundarajan assuming the RH including

|M(x)|≪xexp⁡(C2⋅(log⁡x)3961)|M(x)|≪xexp⁡(log⁡x(log⁡log⁡x)14). Known explicit upper bounds without assuming the RH are given by:

|M(x)|<12590292⋅xlog236/75(x), for x>exp⁡(12282.3)|M(x)|<0.6437752⋅xlog⁡x, for x>1. It is possible to simplify the above expression into a less restrictive but illustrative form as:

M(x)=O(xlogπ(x)).

See also Perron's formula Liouville's function

Notes

… excerpt ends here. Continue reading the full article.

Illustrations

Mertens function: Mertens function to n = 10000
Mertens function to n = 10000
Mertens function: Mertens function to n = 10000000
Mertens function to n = 10000000

Worked examples

Example 1 — a first encounter with Mertens function

Start with the simplest possible case. Write down what Mertens function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Mertens function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Mertens function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Mertens function

In research
Mertens function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Mertens function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Mertens function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Arithmetic functions, so understanding it makes those chapters shorter.
In everyday life
Look for Mertens function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Mertens function” →

How to study Mertens function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Mertens function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Mertens function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Mertens function in simple terms?

In number theory, the Mertens function is defined for all positive integers n as M(n)=∑k=1nμ(k), where μ(k) is the Möbius function. The function is named in honour of Franz Mertens.

Why does Mertens function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Mertens function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Mertens function.

Tags

  • Arithmetic functions

Keep exploring