Functions on Positive Integers
An arithmetic function is a function whose domain is the positive integers. It assigns a value to each integer
n∈N.Typical examples include the number of positive divisors of n, the sum of positive divisors of n, and the number of integers less than or equal to n that are coprime to n.
Prime factorization makes many arithmetic functions computable. Once we know
n=p1α1p2α2⋯prαr,we can often calculate the value of the function directly from the primes pi and exponents αi.
The Divisor Counting Function
The divisor counting function is denoted by
τ(n).It counts the number of positive divisors of n.
For example, the positive divisors of 12 are
1,2,3,4,6,12.Hence
τ(12)=6.Now suppose
n=p1α1p2α2⋯prαr.Every positive divisor d∣n has the form
d=p1β1p2β2⋯prβr,where
0≤βi≤αi.For each prime pi, there are αi+1 choices for the exponent βi. Therefore
τ(n)=(α1+1)(α2+1)⋯(αr+1).For example,
360=23⋅32⋅5.Thus
τ(360)=(3+1)(2+1)(1+1)=24.So 360 has 24 positive divisors.
The Divisor Sum Function
The divisor sum function is denoted by
σ(n).It is defined by
σ(n)=d∣n∑d.For example, the positive divisors of 12 are
1,2,3,4,6,12,so
σ(12)=1+2+3+4+6+12=28.Prime factorization gives a closed formula. If
n=p1α1p2α2⋯prαr,then
σ(n)=(1+p1+p12+⋯+p1α1)⋯(1+pr+pr2+⋯+prαr).Each factor is a finite geometric sum, so
1+p+⋯+pα=p−1pα+1−1.Hence
σ(n)=i=1∏rpi−1piαi+1−1.For example,
12=22⋅3.Therefore
σ(12)=(1+2+22)(1+3)=7⋅4=28.Euler’s Totient Function
Euler’s totient function is denoted by
φ(n).It counts the number of integers k satisfying
1≤k≤nand
gcd(k,n)=1.For example, the integers from 1 to 10 that are coprime to 10 are
1,3,7,9.Thus
φ(10)=4.If
n=p1α1p2α2⋯prαr,then
φ(n)=ni=1∏r(1−pi1).For a prime power,
φ(pα)=pα−pα−1=pα(1−p1),because the only integers from 1 to pα not coprime to pα are the multiples of p.
For example,
12=22⋅3.Thus
φ(12)=12(1−21)(1−31)=12⋅21⋅32=4.Indeed, the integers 1,5,7,11 are the positive integers at most 12 that are coprime to 12.
Multiplicative Functions
An arithmetic function f is called multiplicative if
f(ab)=f(a)f(b)whenever
gcd(a,b)=1.Many important arithmetic functions are multiplicative, including
τ(n),σ(n),φ(n).This property explains why prime factorization gives product formulas. If
n=p1α1⋯prαr,then the prime powers
p1α1,…,prαrare pairwise coprime. Therefore, for a multiplicative function f,
f(n)=f(p1α1)⋯f(prαr).Thus one can understand f(n) by understanding its values on prime powers.
Prime-Power Reduction
Prime-power reduction is a recurring method in number theory.
Instead of studying an arithmetic function on all positive integers at once, one first computes
f(pα)for prime powers. Then multiplicativity extends the formula to all n.
For example,
τ(pα)=α+1,because the positive divisors are
1,p,p2,…,pα.Similarly,
σ(pα)=1+p+p2+⋯+pα.And
φ(pα)=pα−pα−1.These three prime-power formulas determine the three functions completely.
Role in Number Theory
Arithmetic functions translate prime factorization into numerical invariants. They measure different aspects of the divisor structure of an integer.
The function τ(n) counts divisors. The function σ(n) sums divisors. The function φ(n) measures coprimality. Each function reveals different information about how n is built from primes.
This point of view leads naturally to Dirichlet convolution, Möbius inversion, average orders, Euler products, and analytic number theory.