4.2: Multiplicative Number Theoretic Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
We now present several multiplicative number theoretic functions which will play a crucial role in many number theoretic results. We start by discussing the Euler phi-function which was defined in an earlier chapter. We then define the sum-of-divisors function and the number-of-divisors function along with their properties.
The Euler ϕ-Function
As defined earlier, the Euler ϕ-function counts the number of integers smaller than and relatively prime to a given integer. We first calculate the value of the phi-function at primes and prime powers.
If p is prime, then ϕ(p)=p−1. Conversely, if p is an integer such that ϕ(p)=p−1, then p is prime.
The first part is obvious since every positive integer less than p is relatively prime to p. Conversely, suppose that p is not prime. Then p=1 or p is a composite number. If p=1, then ϕ(p)≠p−1. Now if p is composite, then p has a positive divisor. Thus ϕ(p)≠p−1. We have a contradiction and thus p is prime.
We now find the value of ϕ at prime powers.
Let p be a prime and m a positive integer, then ϕ(pm)=pm−pm−1.
Note that all integers that are relatively prime to pm and that are less than pm are those that are not multiple of p. Those integers are p,2p,3p,...,pm−1p. There are pm−1 of those integers that are not relatively prime to pm and that are less than pm. Thus ϕ(pm)=pm−pm−1.
ϕ(73)=73−72=343−49=294. Also ϕ(210)=210−29=512.
We now prove that ϕ is a multiplicative function.
Let m and n be two relatively prime positive integers. Then ϕ(mn)=ϕ(m)ϕ(n).
Denote ϕ(m) by s and let k1,k2,...,ks be a reduced residue system modulo m. Similarly, denote ϕ(n) by t and let k′1,k′2,...,k′t be a reduced residue system modulo n. Notice that if x belongs to a reduced residue system modulo mn, then (x,m)=(x,n)=1.
We now derive a formula for ϕ(n).
Let n=pa11pa22...pass be the prime factorization of n. Then ϕ(n)=n(1−1p1)(1−1p2)...(1−1ps).
By Theorem 37, we can see that for all 1≤i≤k ϕ(paii)=paii−pai−1i=paii(1−1pi).
Note that ϕ(200)=ϕ(2352)=200(1−12)(1−15)=80.
Let n be a positive integer greater than 2. Then ϕ(n) is even.
Let n=pa11pa22...pakk. Since ϕ is multiplicative, then ϕ(n)=k∏j=1ϕ(pajj).
Let n be a positive integer. Then ∑d∣nϕ(d)=n.
Split the integers from 1 to n into classes. Put an integer m in the class Cd if the greatest common divisor of m and n is d. Thus the number of integers in the Cd class is the number of positive integers not exceeding n/d that are relatively prime to n/d. Thus we have ϕ(n/d) integers in Cd. Thus we see that n=∑d∣nϕ(n/d).
The Sum-of-Divisors Function
The sum of divisors function, denoted by σ(n), is the sum of all positive divisors of n.
σ(12)=1+2+3+4+6+12=28.
Note that we can express σ(n) as σ(n)=∑d∣nd.
We now prove that σ(n) is a multiplicative function.
The sum of divisors function σ(n) is multiplicative.
We have proved in Theorem 35 that the summatory function is multiplicative once f is multiplicative. Thus let f(n)=n and notice that f(n) is multiplicative. As a result, σ(n) is multiplicative.
Once we found out that σ(n) is multiplicative, it remains to evaluate σ(n) at powers of primes and hence we can derive a formula for its values at any positive integer.
Let p be a prime and let n=pa11pa22...patt be a positive integer. Then σ(pa)=pa+1−1p−1,
Notice that the divisors of pa are 1,p,p2,...,pa. Thus σ(pa)=1+p+p2+...+pa=pa+1−1p−1.
Now since σ(n) is multiplicative, we have σ(n)=σ(pa1)σ(pa2)...σ(pat)=pa1+11−1p1−1.pa2+12−1p2−1...pat+1t−1pt−1=t∏j=1paj+1j−1pj−1
σ(200)=σ(2352)=24−12−153−15−1=15.31=465.
The Number-of-Divisors Function
The number of divisors function, denoted by τ(n), is the sum of all positive divisors of n.
τ(8)=4.
We can also express τ(n) as τ(n)=∑d∣n1.
We can also prove that τ(n) is a multiplicative function.
The number of divisors function τ(n) is multiplicative.
By Theorem 36, with f(n)=1, τ(n) is multiplicative.
We also find a formula that evaluates τ(n) for any integer n.
Let p be a prime and let n=pa11pa22...patt be a positive integer. Then τ(pa)=a+1,
The divisors of pa as mentioned before are 1,p,p2,...,pa. Thus τ(pa)=a+1
Now since τ(n) is multiplicative, we have τ(n)=τ(pa1)τ(pa2)...τ(pat)=(a1+1)(a2+1)...(at+1)=t∏j=1(aj+1).
τ(200)=τ(2352)=(3+1)(2+1)=12.
Exercises
- Find ϕ(256) and ϕ(2.3.5.7.11).
- Show that ϕ(5186)=ϕ(5187).
- Find all positive integers n such that ϕ(n)=6.
- Show that if n is a positive integer, then ϕ(2n)=ϕ(n) if n is odd.
- Show that if n is a positive integer, then ϕ(2n)=2ϕ(n) if n is even.
- Show that if n is an odd integer, then ϕ(4n)=2ϕ(n).
- Find the sum of positive integer divisors and the number of positive integer divisors of 35
- Find the sum of positive integer divisors and the number of positive integer divisors of 2534537313.
- Which positive integers have an odd number of positive divisors.
- Which positive integers have exactly two positive divisors.
Contributors and Attributions
Dr. Wissam Raji, Ph.D., of the American University in Beirut. His work was selected by the Saylor Foundation’s Open Textbook Challenge for public release under a Creative Commons Attribution (CC BY) license.