Skip to content

Divisor Functions

Divisor functions measure the positive divisors of an integer. They are among the first examples of arithmetic functions, because their values depend directly on the prime...

Counting and Summing Divisors

Divisor functions measure the positive divisors of an integer. They are among the first examples of arithmetic functions, because their values depend directly on the prime factorization of the input.

For a positive integer nn, the most basic divisor functions are

τ(n)=#{dN:dn} \tau(n)=\#\{d\in\mathbb{N}:d\mid n\}

and

σ(n)=dnd. \sigma(n)=\sum_{d\mid n} d.

The function τ(n)\tau(n) counts the positive divisors of nn. The function σ(n)\sigma(n) sums them.

For example, the positive divisors of 1212 are

1,2,3,4,6,12. 1,2,3,4,6,12.

Hence

τ(12)=6 \tau(12)=6

and

σ(12)=1+2+3+4+6+12=28. \sigma(12)=1+2+3+4+6+12=28.

Divisors from Prime Factorization

Let

n=p1α1p2α2prαr n=p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_r^{\alpha_r}

be the canonical prime factorization of nn.

Every positive divisor dnd\mid n has the form

d=p1β1p2β2prβr, d=p_1^{\beta_1}p_2^{\beta_2}\cdots p_r^{\beta_r},

where

0βiαi 0\le \beta_i\le \alpha_i

for each ii.

Thus choosing a divisor is the same as choosing an exponent βi\beta_i for each prime pip_i. For the prime pip_i, there are

αi+1 \alpha_i+1

possible choices:

0,1,2,,αi. 0,1,2,\ldots,\alpha_i.

Therefore

τ(n)=(α1+1)(α2+1)(αr+1). \tau(n)=(\alpha_1+1)(\alpha_2+1)\cdots(\alpha_r+1).

For example,

72=2332. 72=2^3\cdot3^2.

Hence

τ(72)=(3+1)(2+1)=12. \tau(72)=(3+1)(2+1)=12.

Sum of Divisors

The same exponent description gives a formula for σ(n)\sigma(n).

Each divisor of

n=p1α1prαr n=p_1^{\alpha_1}\cdots p_r^{\alpha_r}

is obtained by choosing one power of each prime. Therefore the sum of all divisors factors as

σ(n)=(1+p1+p12++p1α1)(1+pr+pr2++prαr). \sigma(n) = (1+p_1+p_1^2+\cdots+p_1^{\alpha_1}) \cdots (1+p_r+p_r^2+\cdots+p_r^{\alpha_r}).

Using the finite geometric sum formula,

1+p++pα=pα+11p1, 1+p+\cdots+p^\alpha = \frac{p^{\alpha+1}-1}{p-1},

we obtain

σ(n)=i=1rpiαi+11pi1. \sigma(n) = \prod_{i=1}^{r} \frac{p_i^{\alpha_i+1}-1}{p_i-1}.

For example,

72=2332. 72=2^3\cdot3^2.

Thus

σ(72)=(1+2+4+8)(1+3+9)=1513=195. \sigma(72) = (1+2+4+8)(1+3+9) = 15\cdot13 = 195.

General Divisor Sums

The divisor sum function has a useful generalization. For an integer k0k\ge0, define

σk(n)=dndk. \sigma_k(n)=\sum_{d\mid n} d^k.

Then

σ0(n)=τ(n) \sigma_0(n)=\tau(n)

because every divisor contributes 11, and

σ1(n)=σ(n). \sigma_1(n)=\sigma(n).

If

n=p1α1prαr, n=p_1^{\alpha_1}\cdots p_r^{\alpha_r},

then

σk(n)=i=1r(1+pik+pi2k++piαik). \sigma_k(n) = \prod_{i=1}^{r} (1+p_i^k+p_i^{2k}+\cdots+p_i^{\alpha_i k}).

For k>0k>0, this becomes

σk(n)=i=1rpik(αi+1)1pik1. \sigma_k(n) = \prod_{i=1}^{r} \frac{p_i^{k(\alpha_i+1)}-1}{p_i^k-1}.

These functions occur frequently in analytic number theory and the theory of modular forms.

Multiplicativity

The functions τ\tau, σ\sigma, and more generally σk\sigma_k, are multiplicative.

This means that if

gcd(a,b)=1, \gcd(a,b)=1,

then

τ(ab)=τ(a)τ(b) \tau(ab)=\tau(a)\tau(b)

and

σ(ab)=σ(a)σ(b). \sigma(ab)=\sigma(a)\sigma(b).

The reason is that when aa and bb are coprime, every divisor of abab can be written uniquely as a product

d=d1d2, d=d_1d_2,

where

d1a d_1\mid a

and

d2b. d_2\mid b.

Thus the divisor structure of abab splits into the independent divisor structures of aa and bb.

Example of Multiplicativity

Let

a=8,b=9. a=8, \qquad b=9.

Since

gcd(8,9)=1, \gcd(8,9)=1,

we have

τ(72)=τ(8)τ(9). \tau(72)=\tau(8)\tau(9).

Now

8=23,9=32. 8=2^3, \qquad 9=3^2.

So

τ(8)=4,τ(9)=3. \tau(8)=4, \qquad \tau(9)=3.

Hence

τ(72)=43=12. \tau(72)=4\cdot3=12.

Similarly,

σ(8)=1+2+4+8=15, \sigma(8)=1+2+4+8=15,

and

σ(9)=1+3+9=13. \sigma(9)=1+3+9=13.

Therefore

σ(72)=1513=195. \sigma(72)=15\cdot13=195.

Proper Divisors and Perfect Numbers

A proper divisor of nn is a positive divisor of nn other than nn itself.

The sum of proper divisors is

σ(n)n. \sigma(n)-n.

A positive integer nn is called perfect if

σ(n)n=n. \sigma(n)-n=n.

Equivalently,

σ(n)=2n. \sigma(n)=2n.

For example,

6 6

is perfect because its proper divisors are

1,2,3 1,2,3

and

1+2+3=6. 1+2+3=6.

Also,

28 28

is perfect because

1+2+4+7+14=28. 1+2+4+7+14=28.

Perfect numbers form one of the oldest topics in number theory.

Growth of Divisor Functions

Divisor functions are irregular. Their values depend strongly on the prime factorization of nn.

A prime number pp has only two positive divisors:

1andp, 1 \quad\text{and}\quad p,

so

τ(p)=2. \tau(p)=2.

A highly composite integer can have many divisors. For example,

360=23325 360=2^3\cdot3^2\cdot5

has

τ(360)=432=24 \tau(360)=4\cdot3\cdot2=24

positive divisors.

Thus τ(n)\tau(n) is small on primes but can be large on integers with many small prime factors.

Role in Number Theory

Divisor functions translate prime factorization into numerical invariants. They measure how many ways an integer can be divided and how large its divisors are collectively.

They appear in elementary number theory, average-order estimates, Dirichlet series, modular forms, and arithmetic geometry.

The main lesson is that the divisor structure of an integer is completely controlled by its prime exponents. Divisor functions make this control explicit through concrete formulas.