Divisor function
In mathematics, particularly in number theory, the divisor function, denoted \sigma_k(n), is an arithmetic function that computes the sum of the k-th powers of the positive divisors of a positive integer n.[1] For a fixed nonnegative integer k, it is defined as \sigma_k(n) = \sum_{d \mid n} d^k, where the sum runs over all positive divisors d of n.[1] This function generalizes several important concepts, with \sigma_0(n) (often denoted d(n) or \tau(n)) giving the total number of positive divisors of n, and \sigma_1(n) (commonly just \sigma(n)) yielding the sum of those divisors.[2] The divisor function is multiplicative, meaning that if a and b are coprime positive integers, then \sigma_k(ab) = \sigma_k(a) \sigma_k(b) for any k.[1] For n with prime factorization n = p_1^{e_1} p_2^{e_2} \cdots p_m^{e_m}, explicit formulas follow: \sigma_0(n) = \prod_{i=1}^m (e_i + 1) and \sigma_1(n) = \prod_{i=1}^m \frac{p_i^{e_i + 1} - 1}{p_i - 1}, with analogous products for higher k.[3] These properties make the function central to the study of integer factorization and divisor distributions. In analytic number theory, the divisor functions play a key role through their Dirichlet series representations, such as \sum_{n=1}^\infty \sigma_0(n) n^{-s} = \zeta(s)^2 and more generally \sum_{n=1}^\infty \sigma_k(n) n^{-s} = \zeta(s) \zeta(s - k) for \Re(s) > \max(1, k + 1), where \zeta(s) is the Riemann zeta function.[1] This connection links the functions to deep problems like the distribution of prime numbers and the Riemann Hypothesis, as bounds on \sigma_1(n) relate to error terms in prime-counting formulas.[1] Additionally, \sigma_1(n) classifies numbers by abundancy: a number n is perfect if \sigma_1(n) = 2n, abundant if \sigma_1(n) > 2n, and deficient if \sigma_1(n) < 2n, with applications to ancient problems like Euclid-Euler perfect numbers.[4] The maximal order of \sigma_1(n) is asymptotically e^\gamma n \log \log n, where \gamma is the Euler-Mascheroni constant, reflecting the divisor structure for highly composite numbers.[1]Definition and Notation
Formal Definition
The divides relation in number theory, denoted a \mid b for integers a and b with a \neq 0, holds if there exists an integer k such that b = a k.[5] The positive divisors of a positive integer n are the positive integers d such that d \mid n.[5] The divisor function, often denoted \sigma(n), is an arithmetic function that assigns to each positive integer n the sum of its positive divisors.[2] Formally, \sigma(n) = \sum_{d \mid n} d. Here, the sum is taken over all positive divisors d of n.[2] This distinguishes \sigma(n) from the divisor counting function d(n), also known as \tau(n), which is defined as d(n) = \sum_{d \mid n} 1, [2] counting the number of positive divisors of n rather than summing their values.[2] As a base case, consider n=1: the only positive divisor of $1 is $1 itself, so \sigma(1) = 1.[2]Generalizations and Variants
The divisor function generalizes naturally to the family of functions \sigma_k(n) for integers k \geq 0, defined as the sum of the kth powers of the positive divisors of n: \sigma_k(n) = \sum_{d \mid n} d^k. This encompasses the original divisor function as the special case \sigma_1(n) = \sigma(n), which sums the divisors themselves, while \sigma_0(n) counts the total number of divisors, often denoted d(n). The parameter k allows for a unified treatment of various divisor-related sums in analytic number theory, where positive integer values of k emphasize the magnitudes of divisors (as in \sigma_1(n)), k=0 focuses on cardinality, and extensions to negative exponents like k=-1 yield the sum of reciprocals of divisors, \sigma_{-1}(n) = \sum_{d \mid n} d^{-1} = \sigma(n)/n.[2] Notationally, \sigma(n) is the conventional shorthand for \sigma_1(n), with higher k values sometimes linked to the Riemann zeta function through Dirichlet series representations. Jordan's totient functions J_k(n) serve as higher-order analogs, extending the counting of coprime elements in a manner complementary to the power sums of \sigma_k(n).[2]Examples and Computations
Illustrative Examples
To illustrate the divisor function σ(n), which sums the positive divisors of a positive integer n, consider n = 6. The divisors of 6 are 1, 2, 3, and 6. Adding these gives σ(6) = 1 + 2 + 3 + 6 = 12.[1][6] For a prime number p, the only positive divisors are 1 and p, so σ(p) = 1 + p. For example, with p = 5, σ(5) = 1 + 5 = 6.[1] Now consider a prime power such as p^2, where p is prime. For p = 3, this is n = 9, with divisors 1, 3, and 9, yielding σ(9) = 1 + 3 + 9 = 13.[1] For n = 12, the divisors are 1, 2, 3, 4, 6, and 12. Summing these produces σ(12) = 1 + 2 + 3 + 4 + 6 + 12 = 28.[6] A number n is perfect if the sum of its proper divisors equals n, or equivalently, if σ(n) = 2n. The smallest such number is 6, since σ(6) - 6 = 6.Tables of Values
The divisor function \sigma(n), which sums the positive divisors of n, and the divisor count d(n) provide foundational data for understanding the distribution of divisors. The following table presents values for n = 1 to $20, allowing comparison between the sum and the count of divisors.[6][7]| n | d(n) | \sigma(n) |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | 3 |
| 3 | 2 | 4 |
| 4 | 3 | 7 |
| 5 | 2 | 6 |
| 6 | 4 | 12 |
| 7 | 2 | 8 |
| 8 | 4 | 15 |
| 9 | 3 | 13 |
| 10 | 4 | 18 |
| 11 | 2 | 12 |
| 12 | 6 | 28 |
| 13 | 2 | 14 |
| 14 | 4 | 24 |
| 15 | 4 | 24 |
| 16 | 5 | 31 |
| 17 | 2 | 18 |
| 18 | 6 | 39 |
| 19 | 2 | 20 |
| 20 | 6 | 42 |
| n | Type | \sigma(n) | \sigma(n) - 2n |
|---|---|---|---|
| 1 | Deficient | 1 | -1 |
| 2 | Deficient | 3 | -1 |
| 3 | Deficient | 4 | -2 |
| 4 | Deficient | 7 | -1 |
| 5 | Deficient | 6 | -4 |
| 6 | Perfect | 12 | 0 |
| 7 | Deficient | 8 | -6 |
| 12 | Abundant | 28 | 4 |
| 18 | Abundant | 39 | 3 |
| 20 | Abundant | 42 | 2 |
| 24 | Abundant | 60 | 12 |
| 28 | Perfect | 56 | 0 |
| 30 | Abundant | 72 | 12 |
| 36 | Abundant | 91 | 19 |
| 40 | Abundant | 90 | 10 |
| 42 | Abundant | 96 | 12 |
| 48 | Abundant | 124 | 28 |
| 60 | Abundant | 168 | 48 |
| 90 | Abundant | 192 | 12 |
| 96 | Abundant | 252 | 60 |
| 100 | Abundant | 217 | 17 |
| n | Type | \sigma_0(n) | \sigma_1(n) | \sigma_2(n) |
|---|---|---|---|---|
| 1 | - | 1 | 1 | 1 |
| 2 | Prime | 2 | 3 | 5 |
| 3 | Prime | 2 | 4 | 10 |
| 4 | Square | 3 | 7 | 21 |
| 5 | Prime | 2 | 6 | 26 |
| 6 | - | 4 | 12 | 50 |
| 7 | Prime | 2 | 8 | 50 |
| 9 | Square | 3 | 13 | 91 |
| 11 | Prime | 2 | 12 | 122 |
| 12 | - | 6 | 28 | 210 |
| 25 | Square | 3 | 31 | 651 |
| 36 | Square | 9 | 91 | 1911 |