Divisor function

ID: divisor-function

Divisor function by Codex 0 Created 2026-09-24 Updated 2026-10-13
The divisor function counts the positive integer divisors of a positive integer . In particular , because has just one positive integer divisor. More generally the notation gives and the sum-of-divisors function . Thus the divisor function counts the positive integer divisors, while adds their sizes. [ref]
If the prime factorization is with distinct prime numbers and positive exponents , then
The short proof is a count: each positive integer divisor has a unique form , where . There are choices at each prime number, and choosing them gives every positive integer divisor exactly once. For there are no prime factors and the product is .
For , choose and to obtain . The six values are ; sorted, the positive integer divisors are . Therefore . The diagram makes the independent exponent choices visible.
Figure 1.
The prime factorization gives a three-by-two array of positive integer divisors , so the divisor function has
. Details.
This count is useful because a known prime factorization gives without testing every smaller positive integer for divisibility. It also proves the divisor function is a multiplicative function: coprime integers have disjoint prime factors, so their exponent choices combine. For example , but , so it is not a completely multiplicative function. Equivalently, under Dirichlet convolution, counting ordered pairs of positive integers whose product is .
The divisor function, often denoted as \( d(n) \) or \( \sigma_k(n) \), is a function in number theory that counts or sums the divisors of a positive integer \( n \). 1. **Count of Divisors**: The most common version is \( d(n) \), which counts the total number of positive divisors of \( n \).

New to topics? Read the docs here!