The Möbius function
is a
multiplicative function
In number theory, a multiplicative function is an arithmetic function f of a positive integer n with the property that f(1)=1 and
f(ab) = f(a)f(b) whenever a and b are coprime.
An arithmetic function is said to be completely multiplicative (o ...
in
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
introduced by the German mathematician
August Ferdinand Möbius
August Ferdinand Möbius (, ; ; 17 November 1790 – 26 September 1868) was a German mathematician and theoretical astronomer.
Life and education
Möbius was born in Schulpforta, Electorate of Saxony, and was descended on his mothe ...
(also transliterated ''Moebius'') in 1832. It is ubiquitous in elementary and
analytic number theory
In mathematics, analytic number theory is a branch of number theory that uses methods from mathematical analysis to solve problems about the integers. It is often said to have begun with Peter Gustav Lejeune Dirichlet's 1837 introduction of Dir ...
and most often appears as part of its namesake the
Möbius inversion formula
In mathematics, the classic Möbius inversion formula is a relation between pairs of arithmetic functions, each defined from the other by sums over divisors. It was introduced into number theory in 1832 by August Ferdinand Möbius.
A large genera ...
. Following work of
Gian-Carlo Rota
Gian-Carlo Rota (April 27, 1932 – April 18, 1999) was an Italian-American mathematician and philosopher. He spent most of his career at the Massachusetts Institute of Technology, where he worked in combinatorics, functional analysis, proba ...
in the 1960s, generalizations of the Möbius function were introduced into combinatorics, and are similarly denoted
.
Definition
The Möbius function is defined by
:
The Möbius function can alternatively be represented as
:
where
is the
Kronecker delta
In mathematics, the Kronecker delta (named after Leopold Kronecker) is a function of two variables, usually just non-negative integers. The function is 1 if the variables are equal, and 0 otherwise:
\delta_ = \begin
0 &\text i \neq j, \\
1 &\ ...
,
is the
Liouville function,
is the number of distinct prime divisors of
, and
is the number of prime factors of
, counted with multiplicity.
Another characterization by
Carl Friedrich Gauss
Johann Carl Friedrich Gauss (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observatory and ...
is the sum of all
primitive roots.
Values
The values of
for the first 50 positive numbers are
The first 50 values of the function are plotted below:

Larger values can be checked in:
Wolframalphathe b-file of OEIS
Applications
Mathematical series
The
Dirichlet series
In mathematics, a Dirichlet series is any series of the form
\sum_^\infty \frac,
where ''s'' is complex, and a_n is a complex sequence. It is a special case of general Dirichlet series.
Dirichlet series play a variety of important roles in anal ...
that
generates the Möbius function is the (multiplicative) inverse of the
Riemann zeta function
The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for and its analytic c ...
; if
is a complex number with real part larger than 1 we have
:
This may be seen from its
Euler product
In number theory, an Euler product is an expansion of a Dirichlet series into an infinite product indexed by prime numbers. The original such product was given for the sum of all positive integers raised to a certain power as proven by Leonhard E ...
:
Also:
*
*
*
*
where
is
Euler's constant.
The
Lambert series
In mathematics, a Lambert series, named for Johann Heinrich Lambert, is a series taking the form
:S(q)=\sum_^\infty a_n \frac .
It can be resummed formally by expanding the denominator:
:S(q)=\sum_^\infty a_n \sum_^\infty q^ = \sum_^\infty ...
for the Möbius function is
:
which converges for
. For prime
, we also have
:
Algebraic number theory
Gauss proved that for a prime number
the sum of its
primitive roots is congruent to
.
If
denotes the
finite field
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
of order
(where
is necessarily a prime power), then the number
of monic irreducible polynomials of degree
over
is given by
:
The Möbius function is used in the
Möbius inversion formula
In mathematics, the classic Möbius inversion formula is a relation between pairs of arithmetic functions, each defined from the other by sums over divisors. It was introduced into number theory in 1832 by August Ferdinand Möbius.
A large genera ...
.
Physics
The Möbius function also arises in the
primon gas or
free Riemann gas model of
supersymmetry
Supersymmetry is a Theory, theoretical framework in physics that suggests the existence of a symmetry between Particle physics, particles with integer Spin (physics), spin (''bosons'') and particles with half-integer spin (''fermions''). It propo ...
. In this theory, the fundamental particles or "primons" have energies
. Under
second quantization
Second quantization, also referred to as occupation number representation, is a formalism used to describe and analyze quantum many-body systems. In quantum field theory, it is known as canonical quantization, in which the fields (typically as ...
, multiparticle excitations are considered; these are given by
for any natural number
. This follows from the fact that the factorization of the natural numbers into primes is unique.
In the free Riemann gas, any natural number can occur, if the
primons are taken as
boson
In particle physics, a boson ( ) is a subatomic particle whose spin quantum number has an integer value (0, 1, 2, ...). Bosons form one of the two fundamental classes of subatomic particle, the other being fermions, which have half odd-intege ...
s. If they are taken as
fermion
In particle physics, a fermion is a subatomic particle that follows Fermi–Dirac statistics. Fermions have a half-integer spin (spin 1/2, spin , Spin (physics)#Higher spins, spin , etc.) and obey the Pauli exclusion principle. These particles i ...
s, then the
Pauli exclusion principle
In quantum mechanics, the Pauli exclusion principle (German: Pauli-Ausschlussprinzip) states that two or more identical particles with half-integer spins (i.e. fermions) cannot simultaneously occupy the same quantum state within a system that o ...
excludes squares. The operator
that distinguishes fermions and bosons is then none other than the Möbius function
.
The free Riemann gas has a number of other interesting connections to number theory, including the fact that the
partition function is the
Riemann zeta function
The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for and its analytic c ...
. This idea underlies
Alain Connes
Alain Connes (; born 1 April 1947) is a French mathematician, known for his contributions to the study of operator algebras and noncommutative geometry. He was a professor at the , , Ohio State University and Vanderbilt University. He was awar ...
's attempted proof of the
Riemann hypothesis
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pure ...
.
Properties
The Möbius function is
multiplicative (i.e.,
whenever
and
are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
).
Proof: Given two coprime numbers , we induct on . If , then . Otherwise, , so
:
The sum of the Möbius function over all positive divisors of
(including
itself and 1) is zero except when
:
:
The equality above leads to the important
Möbius inversion formula
In mathematics, the classic Möbius inversion formula is a relation between pairs of arithmetic functions, each defined from the other by sums over divisors. It was introduced into number theory in 1832 by August Ferdinand Möbius.
A large genera ...
and is the main reason why
is of relevance in the theory of multiplicative and arithmetic functions.
Other applications of
in combinatorics are connected with the use of the
Pólya enumeration theorem in combinatorial groups and combinatorial enumerations.
There is a formula for calculating the Möbius function without directly knowing the factorization of its argument:
:
i.e.
is the sum of the primitive
-th
roots of unity
In mathematics, a root of unity is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory of group char ...
. (However, the computational complexity of this definition is at least the same as that of the Euler product definition.)
Other identities satisfied by the Möbius function include
:
and
:
.
The first of these is a classical result while the second was published in 2020. Similar identities hold for the
Mertens function.
Proof of the formula for the sum of over divisors
The formula
:
can be written using
Dirichlet convolution
In mathematics, Dirichlet convolution (or divisor convolution) is a binary operation defined for arithmetic functions; it is important in number theory. It was developed by Peter Gustav Lejeune Dirichlet.
Definition
If f , g : \mathbb\to\mathbb ...
as:
where
is the
identity under the convolution.
One way of proving this formula is by noting that the Dirichlet convolution of two
multiplicative functions
In number theory, a multiplicative function is an arithmetic function f of a positive integer n with the property that f(1)=1 and
f(ab) = f(a)f(b) whenever a and b are coprime.
An arithmetic function is said to be completely multiplicative func ...
is again multiplicative. Thus it suffices to prove the formula for powers of primes. Indeed, for any prime
and for any
:
,
while for
:
.
Other proofs
Another way of proving this formula is by using the identity
:
The formula above is then a consequence of the fact that the
th roots of unity sum to 0, since each
th root of unity is a primitive
th root of unity for exactly one divisor
of
.
However it is also possible to prove this identity from first principles. First note that it is trivially true when
. Suppose then that
. Then there is a bijection between the factors
of
for which
and the subsets of the set of all prime factors of
. The asserted result follows from the fact that every non-empty finite set has an equal number of odd- and even-cardinality subsets.
This last fact can be shown easily by induction on the cardinality
of a non-empty finite set
. First, if
, there is exactly one odd-cardinality subset of
, namely
itself, and exactly one even-cardinality subset, namely
. Next, if
, then divide the subsets of
into two subclasses depending on whether they contain or not some fixed element
in
. There is an obvious bijection between these two subclasses, pairing those subsets that have the same complement relative to the subset
. Also, one of these two subclasses consists of all the subsets of the set
, and therefore, by the induction hypothesis, has an equal number of odd- and even-cardinality subsets. These subsets in turn correspond bijectively to the even- and odd-cardinality
-containing subsets of
. The inductive step follows directly from these two bijections.
A related result is that the binomial coefficients exhibit alternating entries of odd and even power which sum symmetrically.
Average order
The
mean value (in the sense of average orders) of the Möbius function is zero. This statement is, in fact, equivalent to the
prime number theorem
In mathematics, the prime number theorem (PNT) describes the asymptotic analysis, asymptotic distribution of the prime numbers among the positive integers. It formalizes the intuitive idea that primes become less common as they become larger by p ...
.
sections
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
is divisible by the square of a prime. The first numbers with this property are
:4, 8, 9, 12, 16, 18, 20, 24, 25, 27, 28, 32, 36, 40, 44, 45, 48, 49, 50, 52, 54, 56, 60, 63, ... .
If
is prime, then
, but the converse is not true. The first non prime
for which
is
. The first such numbers with three distinct prime factors (
sphenic number
In number theory, a sphenic number (from , 'wedge') is a positive integer that is the product of three distinct prime numbers. Because there are infinitely many prime numbers, there are also infinitely many sphenic numbers.
Definition
A sphenic ...
s) are
:30, 42, 66, 70, 78, 102, 105, 110, 114, 130, 138, 154, 165, 170, 174, 182, 186, 190, 195, 222, ... .
and the first such numbers with 5 distinct prime factors are
:2310, 2730, 3570, 3990, 4290, 4830, 5610, 6006, 6090, 6270, 6510, 6630, 7410, 7590, 7770, 7854, 8610, 8778, 8970, 9030, 9282, 9570, 9690, ... .
Mertens function
In number theory another
arithmetic function
In number theory, an arithmetic, arithmetical, or number-theoretic function is generally any function whose domain is the set of positive integers and whose range is a subset of the complex numbers. Hardy & Wright include in their definition th ...
closely related to the Möbius function is the
Mertens function, defined by
:
for every natural number . This function is closely linked with the positions of zeroes of the
Riemann zeta function
The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for and its analytic c ...
. See the article on the
Mertens conjecture for more information about the connection between
and the
Riemann hypothesis
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pure ...
.
From the formula
:
it follows that the Mertens function is given by
:
where
is the
Farey sequence
In mathematics, the Farey sequence of order ''n'' is the sequence of completely reduced fractions, either between 0 and 1, or without this restriction, which have denominators less than or equal to ''n'', arranged in order of increasing size.
Wi ...
of order
.
This formula is used in the proof of the
Franel–Landau theorem.
Generalizations
Incidence algebras
In
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and as an end to obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many ...
, every locally finite
partially ordered set
In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
(poset) is assigned an
incidence algebra
In order theory, a field of mathematics, an incidence algebra is an associative algebra, defined for every locally finite partially ordered set
and commutative ring with unity. Subalgebra#Subalgebras_for_algebras_over_a_ring_or_field, Subalgebras c ...
. One distinguished member of this algebra is that poset's "Möbius function". The classical Möbius function treated in this article is essentially equal to the Möbius function of the set of all positive integers partially ordered by
divisibility
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a ''Multiple (mathematics), multiple'' of m. An integer n is divis ...
. See the article on
incidence algebra
In order theory, a field of mathematics, an incidence algebra is an associative algebra, defined for every locally finite partially ordered set
and commutative ring with unity. Subalgebra#Subalgebras_for_algebras_over_a_ring_or_field, Subalgebras c ...
s for the precise definition and several examples of these general Möbius functions.
Popovici's function
Constantin Popovici defined a generalised Möbius function
to be the
-fold
Dirichlet convolution
In mathematics, Dirichlet convolution (or divisor convolution) is a binary operation defined for arithmetic functions; it is important in number theory. It was developed by Peter Gustav Lejeune Dirichlet.
Definition
If f , g : \mathbb\to\mathbb ...
of the Möbius function with itself. It is thus again a multiplicative function with
:
where the binomial coefficient is taken to be zero if
. The definition may be extended to complex
by reading the binomial as a polynomial in
.
Implementations
MathematicageeksforgeeksC++, Python3, Java, C#, PHP, JavaScript
Rosetta Code
See also
*
Liouville function
*
Mertens function
*
Ramanujan's sum
*
Sphenic number
In number theory, a sphenic number (from , 'wedge') is a positive integer that is the product of three distinct prime numbers. Because there are infinitely many prime numbers, there are also infinitely many sphenic numbers.
Definition
A sphenic ...
Notes
Citations
Sources
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
External links
*
{{DEFAULTSORT:Mobius Function
Multiplicative functions