Arithmetic Function
Arithmetic Function
Arithmetic functions
13
14 CHAPTER 2. ARITHMETIC FUNCTIONS
Conversely, by assigning a value for each f (pα ), we can uniquely define a multiplica-
tive function by (2.3).
If we further assume that f is completely multiplicative, then we have
2.2 Examples
The following arithmetic functions are classical and define fundamental concepts
attached to the multiplicative structure of N∗ .
1). The divisor function, counting the number of positive divisors of n, is tradition-
ally denoted by X
τ (n) = 1.
d|n
Similarly, we can define the function of the sum of k-th power divisors of n, which
is denoted by X
σk (n) = dk , k ∈ C.
d|n
Thus τ (n) = σ0 (n) and usually we write σ(n) for σ1 (n). The function σk (n) is
multiplicative. In fact, assuming that (m, n) = 1, any divisor d of mn can be
uniquely decomposed into d = d1 d2 with d1 | m and d2 | n. So
X XX X X
σk (mn) = dk = dk1 dk2 = dk1 dk2 = σk (m)σk (n).
d|mn d1 |m d2 |n d1 |m d2 |n
τ (n) = (1 + α1 ) · · · (1 + αk )
2). Euler’s totient function φ(n), counting the number of invertible residues modulo
n, is denoted by X
φ(n) = (Z/nZ)× = 1.
1≤d≤n
(d,n)=1
2.2. EXAMPLES 15
Z/mnZ ∼
= Z/mZ ⊕ Z/nZ ⇒ (Z/mnZ)× ∼
= (Z/mZ)× ⊕ (Z/nZ)× .
By considering the cardinal of both sides, we get φ(mn) = φ(m)φ(n). Thus φ(n)
is multiplicative.
ω(n) = k, Ω(n) = α1 + · · · + αk .
That is, Ω(n) is the number of primes factors of n and ω(n) is the number of
distinct prime factors of n. Clearly, ω(n) is additive and Ω(n) is completely
additive.
λ(n) = (−1)Ω(n) .
Note that for coprime m, n, mn is square-free if and only if both m and n are
square-free. So it is not hard to see that µ(n) is multiplicative. The Möbius
function plays an important role in the distribution of prime numbers.
So the product of D(f ; s) and D(g; s) should be defined as the formal Dirichlet series
D(h; s) associated with h where h is the arithmetic function given by
X X n X n
h(n) = f (m1 )g(m2 ) = f (d)g = g(d)f .
m m =n
d d
1 2 d|n d|n
It is not hard to see that the set of all formal Dirichlet series equipped with these
two operation has the structure of commutative ring with unity given by the series
D(δ; s) associated with the arithmetic function
(
1, n = 1
δ(n) =
0, n > 1.
Proposition 2.1. The group of units in the ring of arithmetic functions consists of
arithmetic functions f such that f (1) 6= 0.
Proof. If f is invertible with the convolution inverse g, then we have
f (1)g(1) = δ(1) = 1.
So f (1) 6= 0. Conversely, if f (1) 6= 0, we can recursively calculate the convolution
inverse g of f . In fact, the arithmetic function g defined by
X n
g(1) = f (1)−1 , g(n) = −f (1)−1 g(d)f , n>1 (2.5)
d
d|n
d<n
clearly satisfies f ∗ g = δ.
Proposition 2.2. The set of multiplicative functions is a subgroup of the group of
units in the ring of arithmetic functions.
Proof. We need to show that
1). The Dirichlet convolution of multiplicative functions is multiplicative.
2). The convolution inverse of a multiplicative function is multiplicative.
Proof of 1). Let f and g be multiplicative functions. Suppose that (m, n) = 1. Then
X mn X X
mn
(f ∗ g)(mn) = f (d)g = f (d1 d2 )g
d d1 d2
d|mn d1 |m d2 |n
X X
m n
= f (d1 )g f (d2 )g
d1 d2
d1 |m d2 |n
= (f ∗ g)(m) · (f ∗ g)(n).
Proof of 2). Let f be a multiplicative function. Then we have f (1) = 1 (see the
dicussion under the definition of multiplicative functions). Thus f is invertible by
Proposition 2.1. Let g be the inverse of f . We should prove that
(m, n) = 1 ⇒ g(mn) = g(m)g(n).
We prove by induction on mn. For mn = 1, it suffices to show that g(1) = 1. This
is quite obvious since we have
f (1)g(1) = δ(1) = 1.
18 CHAPTER 2. ARITHMETIC FUNCTIONS
Now assume that mn > 1 and the multiplicativity of g holds for smaller mn. Then
we have
0 = δ(mn) = (f ∗ g)(mn)
X mn
= f (d)g
d
d|mn
XX
mn
= f (d1 d2 )g
d1 d2
d1 |m d2 |n
XX
m n
= f (d1 )f (d2 )g g + g(mn)
d1 d2
d1 |m d2 |n
d1 d2 >1
XX
m n
= f (d1 )f (d2 )g g − g(m)g(n) + g(mn)
d1 d2
d1 |m d2 |n
Example 2.1. Let 1 denote the function 1(n) = 1. Then we have τ = 1 ∗ 1 and
σk = nk ∗ 1. So we regain the multiplicativity of τ and σk .
Y
where the notation means taking the product of all prime factor p of n and
pα ||n
vp (n) = α.
X k
X k
(µ ∗ 1)(n) = µ(d) = (−1)j = (1 − 1)k = 0.
j=0
j
d|n
P
We explain the occurance of binomial numbers. In the sum d|n , given 0 ≤ j ≤ k,
there are exactly kj choices of square-free d such that d has exactly j distinct prime
factors. These d contributes kj (−1)j .
(µ ∗ 1)(pα ) = 1 + (−1) + 0 + · · · + 0 = 0.
For a completely multiplicative functions, its Dirichlet inverse can be easily com-
puted:
Conversely, suppose
f −1 (n) = µ(n)f (n).
To show f is completely multiplicative, it suffices to prove
f (pα ) = f (p)α
we obtain
f (pα ) = f (p)f (pα−1 ).
Hence
f (pα ) = f (p)f (pα−1 ) = f (p)2 f (pα−2 ) = · · · = f (p)α .
X n
2). f (n) = µ(d)g , ∀n ≥ 1.
d
d|n
g =f ∗1 ⇔ f = g ∗ µ.
g =f ∗1 ⇔ g ∗ µ = f ∗ 1 ∗ µ = f ∗ δ = f.
Remark. Certainly, we can replace the function 1 by any other completely multi-
plicative function, and apply Theorem 2.5 to get other inversion formulas. Specif-
ically, suppose w(n) is a completely multiplicative function. By Theorem 2.5, we
have w−1 = µw. So for any arithmetic funtions f and g, we have
g =f ∗w ⇔ f = g ∗ µw.
That is, X n
g(n) = f (d)w
d
d|n
is equivalent to X n
f (n) = µ(d)w(d)g .
d
d|n
where we have rearraged the sum by putting together those m, n with the same
product. By Proposition 2.4, we have
X
µ(n) = δ(k).
mn=k
So we finally obtain that
X x X x
µ(n)G = F δ(k) = F (x).
n≤x
n k≤x
k
A similar argument gives ii) ⇒ i), which is left as an exercise for readers.
Corollary 2.8. We have X hxi
µ(n) = 1.
n≤x
n
22 CHAPTER 2. ARITHMETIC FUNCTIONS
2.5 Applications
Theorem 2.9. We have
X n Y 1
φ(n) = µ(d) = n 1− .
d p
d|n p|n
Hence by the Möbius inversion formula, we obtain the well-known fact that
X
φ(d) = n.
d|n
Proof. The relation µ ∗ 1 = δ provides a useful trick to deal with the condition
(m, n) = 1:
Xn X n Xn X
φ(n) = 1= δ((m, n)) = µ(d)
m=1 m=1 m=1 d|(m,n)
(m,n)=1
Xn X X X
n
= µ(d) = µ(d) 1
m=1 d|m d|n m=1
d|n d|m
X n
= µ(d) .
d
d|n
Notice that each rational fraction in (0, 1] with denominator n can be written in the
form h/n = a/d with (a, d) = 1. Thus
X X X X
n= 1= 1= φ(d).
1≤h≤n d|n 1≤a≤d d|n
(a,d)=1
2.5. APPLICATIONS 23
As a consequence,
X n X
Λ(n) = µ(d) log =− µ(d) log d.
d
d|n d|n
Proof. Suppose that n = pα1 1 · · · pαk k . Note that Λ(d) = log p if d is a power of the
prime p and Λ(d) = 0 otherwise. So
X X
k X
k
α
Λ(d) = αj log pj = log pj j = log n.
d|n j=1 j=1
1 X µ(n)
∞
= .
ζ(s) n=1 ns
ζ ′ (s) X Λ(n)
∞
− = .
ζ(s) n=1
ns