In number theory, the Mertens function is

where μ(k) is the Möbius function. Number theory is the branch of Pure mathematics concerned with the properties of Numbers in general and Integers in particular as well as the wider classes For the rational functions defined on the complex numbers see Möbius transformation. The function is named in honour of Franz Mertens. Franz Mertens ( March 20, 1840 - March 5, 1927) was a German Mathematician.
Less formally, M(n) is the count of square-free integers up to n that have an even number of prime factors, minus the count of those that have an odd number. In Mathematics, a square-free, or quadratfrei, Integer is one divisible by no perfect square, except 1 M(n) = 0 for the n values
Because the Möbius function has only the return values -1, 0 and +1, it's obvious that the Mertens function moves slowly and that there is no k such that |M(k)| > k. The On-Line Encyclopedia of Integer Sequences ( OEIS) also cited simply as Sloane's, is an extensive searchable Database of Integer sequences The Mertens conjecture went even further, stating that there would be no k where the absolute value of the Mertens function exceeds the square root of k. In Mathematics, the Mertens conjecture is a statement about the behaviour of a certain function as its argument increases The Mertens conjecture was disproven in 1985. However, the Riemann hypothesis is equivalent to a weaker conjecture on the growth of M(k), namely
. The Riemann hypothesis (also called the Riemann zeta-hypothesis) first formulated by Bernhard Riemann in 1859 is one of the most famous and important unsolved Since high values for M grow at least as fast as the square root of k, this puts a rather tight bound on its rate of growth. Here, o refers to little-o notation. In mathematics big O notation (so called because it uses the symbol O) describes the limiting behavior of a function for very small or very large arguments
Using the Euler product one finds that

where ζ(s) is the Riemann zeta function and the product is taken over primes. In Number theory, an Euler product is an Infinite product expansion indexed by Prime numbers p, of a Dirichlet series. In Mathematics, the Riemann zeta function, named after German mathematician Bernhard Riemann, is a function of great significance in Then, using this Dirichlet series with Perron's formula, one obtains:

where "C" is a closed curve encircling all of the roots of ζ(s). In Mathematics, a Dirichlet series is any series of the form \sum_{n=1}^{\infty} \frac{a_n}{n^s} where s and In Mathematics, and more particularly in Analytic number theory, Perron's formula is a formula due to Oskar Perron to calculate the sum of an arithmetical
Conversely, one has the Mellin transform

which holds for Re(s) > 1. In Mathematics, the Mellin transform is an Integral transform that may be regarded as the multiplicative version of the Two-sided Laplace transform
A curious relation given by Mertens himself involving Chebyshev function is:

A good evaluation, at least asymptotically, would be to obtain, by the method of steepest descent, an inequality:

assuming that there are not multiple non-trivial roots of ζ(ρ) you have the "exact formula" by residue theorem:

Weyl conjectured that Mertens function satisfied the approximate functional-differential equation

where H(x) is the Heaviside step function, B are Bernoulli numbers and all derivatives with respect to t are evaluated at t = 0. For the optimization method called "steepest descent" see Gradient descent. Hermann Klaus Hugo Weyl ( 9 November 1885 – 8 December 1955) was a German Mathematician. The Heaviside step function, H, also called the unit step function, is a discontinuous function whose value is zero for negative In Mathematics, the Bernoulli numbers are a Sequence of Rational numbers with deep connections to Number theory.
The Mertens function has been computed for an increasing range of n.
| Person | Year | Limit |
| Mertens | 1897 | 104 |
| von Sterneck | 1897 | 1. 5 x 105 |
| von Sterneck | 1901 | 5 x 105 |
| von Sterneck | 1912 | 5 x 106 |
| Neubauer | 1963 | 108 |
| Cohen and Dress | 1979 | 7. 8 x 109 |
| Dress | 1993 | 1012 |
| Lioen and van der Lune | 1994 | 1013 |
| Kotnik and van der Lune | 2003 | 1014 |