Professional Documents
Culture Documents
1 Introduction
We begin with the essential definitions.
Definition 1.1. An arithmetic function is a function that is defined for all positive
integers.
An arithmetic function f is called multiplicative if f (mn) = f (m)f (n), whenever
(m, n) = 1.
An arithmetic function f is called completely multiplicative if f (mn) = f (m)f (n)
for all m, n ∈ Z+ .
Examples. f (n) = n2 is completely multiplicative and hence multiplicative.
The function f (n) = n + 1 is not multiplicative.
Other multiplicative functions include f (n) = 1 ∀ n and f (n) = n.
The Euler phi function φ is multiplicative but not completely multiplicative (proved
later). For example,
φ(4)φ(5) = 2 · 4 = 8 = φ(20). But φ(4)φ(6) = 2 · 2 = 4 6= φ(24) = 8.
A multiplicative function has the property that its value at an integer n is the
product of its values at each of the prime powers in the prime-power factorization of n.
Thus to find a formula for f (n) it suffices to find a formula for f (pai i ), where
n = pa11 · · · pakk , so that f (n) = f (pa11 ) · · · f (pakk ).
Exercise 2. Prove that f is multiplicative if and only if f (pa11 · · · pakk ) = f (pa11 ) · · · f (pakk ),
for all distinct primes pi and integers ai > 0.
[Hint: use induction on k.]
1
Prof A. Munagi Lec14: Arithmetic Functions I MATH4024-Number Theory
Theorem 1.4. Let the prime-power factorization of n be n = pa11 pa22 · · · pakk . Then
φ(n) = pa11 −1 pa22 −1 · · · pkak −1 (p1 − 1)(p2 − 1) · · · (pk − 1) (1)
or
k Y
Y 1 1
φ(n) = n 1− =n 1− . (2)
i=1
pi p
p|n
Examples.
φ(400) = φ(24 · 52 ) = 23 · 51 · 1 · 4 = 160.
φ(140) = φ(22 · 5 · 7) = 21 · 50 · 70 · 1 · 4 · 6 = 48.
Exercise 3. Find the Euler phi function of (a) 720 (b) 2 · 3 · 5 · 7 · 11 · 13 (a) 20!.
Exercise 5. Find all positive integers n such that (a) φ(n) = 3, and (b) φ(n) = 4.