Prime Factors with Multiplicity
The Liouville function is an arithmetic function denoted by
It is defined using the total number of prime factors of , counted with multiplicity.
If
is the canonical prime factorization of , define
Then the Liouville function is
Thus is when has an even number of prime factors counted with multiplicity, and when it has an odd number.
Examples
For a prime number ,
so
For
we have
so
For
we have
so
For
we have
so
The function depends on multiplicity, not merely on the distinct prime factors.
Comparison with the Möbius Function
The Liouville function resembles the Möbius function, but they differ in an important way.
The Möbius function is
when is divisible by a square. The Liouville function never vanishes.
For example,
because
But
The Möbius function detects squarefree structure. The Liouville function records the parity of the total number of prime factors, including repeated factors.
Complete Multiplicativity
The Liouville function is completely multiplicative. This means that for all positive integers and ,
No coprimality assumption is needed.
Indeed,
because prime exponents add under multiplication. Therefore
This is stronger than ordinary multiplicativity.
Values on Prime Powers
For a prime power ,
Hence
Thus
Every value of is obtained by multiplying these prime-power contributions.
Divisor Sum Identity
The Liouville function satisfies the identity
To see this, write
Since is multiplicative, the divisor sum factors as
For each prime ,
This alternating sum equals if is even and if is odd.
Therefore the full product equals exactly when every exponent is even, which is exactly when is a perfect square.
Summatory Liouville Function
The summatory Liouville function is
This function measures the imbalance between integers with an even number of prime factors and integers with an odd number of prime factors.
If the signs of behaved randomly, one would expect substantial cancellation in this sum.
The size of is connected with deep questions about the distribution of primes. In analytic number theory, estimates for sums involving reflect how prime factors are distributed among integers.
Relation to the Riemann Hypothesis
The Liouville function has a close analytic connection with the Riemann zeta function.
For ,
This identity follows from Euler products. Since
the local factor at a prime is
Multiplying over primes gives
This identity explains why cancellation in is linked to zeros of .
Role in Number Theory
The Liouville function is a simple but powerful probe of prime factorization. It compresses the full multiplicative structure of an integer into one sign.
Its complete multiplicativity makes it algebraically clean. Its summatory behavior makes it analytically deep.
Together with the Möbius function, it is one of the central sign functions of multiplicative number theory. It appears in divisor sums, Euler products, prime distribution, and analytic reformulations of major conjectures.