Definition
The Möbius function is an arithmetic function denoted by
It is defined from the prime factorization of .
For ,
For , write
Then
Thus detects whether is squarefree, and if it is squarefree, records the parity of the number of prime factors.
Squarefree Integers
An integer is squarefree if no prime square divides it.
Equivalently, in its prime factorization,
all exponents satisfy
For example,
is squarefree, while
is not squarefree because .
The Möbius function vanishes exactly on non-squarefree integers.
Examples
The first values are
because and each have one prime factor.
Also,
because
has two distinct prime factors.
On the other hand,
because each is divisible by a square greater than .
For
we have
Multiplicativity
The Möbius function is multiplicative. If
then
This follows directly from prime factorization. If either or is divisible by a square, then is divisible by a square, and both sides are . If both are squarefree, then is squarefree, and the number of prime factors of is the sum of the number of prime factors of and .
Thus the signs multiply correctly:
The function is not completely multiplicative, since
but
Sum over Divisors
The Möbius function satisfies the fundamental identity
This identity is central.
To see why, let
Only squarefree divisors contribute to the sum, because for non-squarefree . A squarefree divisor is obtained by choosing a subset of the primes
If the subset has size , its contribution is
Therefore
If , then , and the sum is . If , then , and the sum is .
The Inversion Role
The identity
shows that behaves like an inverse to the constant function under divisor summation.
If
then the Möbius function allows one to recover from . The formula is
This is Möbius inversion, which will be studied in detail later.
The Möbius function is therefore not only a detector of squarefreeness. It is also the arithmetic function that reverses divisor summation.
Relation to Coprimality
The Möbius function can express coprimality.
For positive integers and ,
Thus the expression
acts as an indicator for the condition
This is useful because it converts a coprimality condition into a divisor sum, which can often be manipulated algebraically.
Squarefree Counting
The Möbius function also counts squarefree integers.
An integer is squarefree if and only if
If is not squarefree, then
Thus is the indicator function of squarefreeness.
For example,
while
This simple observation appears often in analytic number theory.
Role in Number Theory
The Möbius function is one of the main arithmetic functions because it encodes cancellation. Its values are , , and , but these small values carry precise factorization information.
It detects squarefree integers, records the parity of prime factors, inverts divisor sums, expresses coprimality, and appears in formulas for prime distribution.
The central idea is that inclusion-exclusion over prime divisors is built into . This makes the Möbius function a bridge between prime factorization and summation over divisors.