In mathematics, and specifically in number theory, a divisor function is an arithmetic function related to the divisors of an integer. When referred to as the divisor function, it counts the number of divisors of an integer (including 1 and the number itself). It appears in a number of remarkable identities, including relationships on the Riemann zeta function and the Eisenstein series of modular forms. Divisor functions were studied by Ramanujan, who gave a number of important congruences and identities; these are treated separately in the article Ramanujan's sum. A related function is the divisor summatory function, which, as the name implies, is a sum over the divisor function.
Definition The sum of positive divisors function σz(n), for a real or complex number z, is defined as the sum of the zth powers of the positive divisors of n. It can be expressed in sigma notation as
σz(n)=∑d∣ndz, where d∣n is shorthand for "d divides n". The notations d(n), ν(n) and τ(n) (for the German Teiler = divisors) are also used to denote σ0(n), or the number-of-divisors function (OEIS: A000005). When z is 1, the function is called the sigma function or sum-of-divisors function, and the subscript is often omitted, so σ(n) is the same as σ1(n) (OEIS: A000203). The aliquot sum s(n) of n is the sum of the proper divisors (that is, the divisors excluding n itself, OEIS: A001065), and equals σ1(n) − n; the aliquot sequence of n is formed by repeatedly applying the aliquot sum function.
Example For example, σ0(12) is the number of the divisors of 12:
σ0(12)=10+20+30+40+60+120=1+1+1+1+1+1=6, while σ1(12) is the sum of all the divisors:
σ1(12)=11+21+31+41+61+121=1+2+3+4+6+12=28, and the aliquot sum s(12) of proper divisors is:
s(12)=11+21+31+41+61=1+2+3+4+6=16. σ−1(n) is sometimes called the abundancy index of n, and we have:
σ−1(12)=1−1+2−1+3−1+4−1+6−1+12−1=11+12+13+14+16+112=1212+612+412+312+212+112=12+6+4+3+2+112=2812=73=σ1(12)12
Table of values The cases x = 2 to 5 are listed in OEIS: A001157 through OEIS: A001160, x = 6 to 24 are listed in OEIS: A013954 through OEIS: A013972.
Properties
Formulas at prime powers For a prime number p,
σ0(p)=2σ0(pn)=n+1σ1(p)=p+1 because by definition, the factors of a prime number are 1 and itself. Clearly, 1<σ0(n)<n for all n>2, and σx(n)>n for all n>1, x>0. In general, since the divisors of a prime power pa, with a a natural number, are 1=p0,p=p1,p2,…,pa, then
σx(pa)=1x+px+p2x+…+pax
General formula If n=∏i=1rpiai, where r = ω(n) is the number of distinct prime factors of n, pi is the ith prime factor, and ai is the maximum power of pi by which n is divisible, then we have:
σx(n)=∏i=1r∑j=0aipijx=∏i=1r(1+pix+pi2x+⋯+piaix). which, when x ≠ 0, is equivalent to:
σx(n)=∏i=1rpi(ai+1)x−1pix−1. When x = 0, σ0(n) is:
σ0(n)=∏i=1r(ai+1).
Proof: The proof is combinatorial in nature. Distributing (expanding) the product
∏i=1r(1+pix+pi2x+⋯+piaix) gives a sum in which each summand is a product. In the products there is one factor per parentheses, and each is one of the summands in the parentheses. Each such selection gives a different summand. Each such selection is equivalent to select, for each i=1,2,…,r, a value 0≤xi≤ai which will represent selecting the summand pixix from the i-th parentheses. On the other hand, this is the same collection of choices needed to select a divisor of n, and write it as its prime factorization. This is because each divisor of n can be written uniquely in the form ∏i=1rpixi, for 0≤xi≤ai. For example, the divisors of 24=23⋅31 are 20⋅30,20⋅31,21⋅30,21⋅31,22⋅30,22⋅31,23⋅30,23⋅31. These are the same summands obtained when expanding
(20+21+22+23)(30+31) A direct consequence of the formula is that the function n↦σx(n) is multiplicative. In fact, if a,b are relatively prime, then they have prime factorizations ∏i=1rpiai and ∏i=r+1spiai in which the set of primes {pi}i=1r and {pi}i=r+1s are disjoint. Then
σx(ab)=∏i=1s∑j=0aixpijx=∏i=1r∑j=0aixpijx⋅∏i=r+1s∑j=0aixpijx=σx(a)σx(b)
Other properties and identities Euler proved the remarkable recurrence:
σ1(n)=σ1(n−1)+σ1(n−2)−σ1(n−5)−σ1(n−7)+σ1(n−12)+σ1(n−15)+⋯=∑i∈ℕ(−1)i+1(σ1(n−12(3i2−i))+σ1(n−12(3i2+i))), where σ1(0)=n if it occurs and σ1(x)=0 for x<0, and 12(3i2∓i) are consecutive pairs of generalized pentagonal numbers (OEIS: A001318, starting at offset 1). Indeed, Euler proved this by logarithmic differentiation of the identity in his pentagonal number theorem. For a non-square integer, n, every divisor, d, of n is paired with divisor n/d of n and σ0(n) is even; for a square integer, one divisor (namely n) is not paired with a distinct divisor and σ0(n) is odd. Similarly, the number σ1(n) is odd if and only if n is a square or twice a square. We also note s(n) = σ(n) − n. Here s(n) denotes the sum of the proper divisors of n, that is, the divisors of n excluding n itself. This function is used to recognize perfect numbers, which are the n such that s(n) = n. If s(n) > n, then n is an abundant number, and if s(n) < n, then n is a deficient number. If n is a power of 2, n=2k, then σ(n)=2⋅2k−1=2n−1 and s(n)=n−1, which makes n almost-perfect. As an example, for two primes p,q:p<q, let
n=pq. Then
σ(n)=(p+1)(q+1)=n+1+(p+q), φ(n)=(p−1)(q−1)=n+1−(p+q), and
n+1=(σ(n)+φ(n))/2, p+q=(σ(n)−φ(n))/2, where φ(n) is Euler's totient function. Then, the roots of
(x−p)(x−q)=x2−(p+q)x+n=x2−[(σ(n)−φ(n))/2]x+[(σ(n)+φ(n))/2−1]=0 express p and q in terms of σ(n) and φ(n) only, requiring no knowledge of n or p+q, as
p=(σ(n)−φ(n))/4−[(σ(n)−φ(n))/4]2−[(σ(n)+φ(n))/2−1], q=(σ(n)−φ(n))/4+[(σ(n)−φ(n))/4]2−[(σ(n)+φ(n))/2−1]. Also, knowing n and either σ(n) or φ(n), or, alternatively, p+q and either σ(n) or φ(n) allows an easy recovery of p and q. In 1984, Roger Heath-Brown proved that the equality
σ0(n)=σ0(n+1) is true for infinitely many values of n, see OEIS: A005237.
Dirichlet convolutions
By definition:σ=Id∗𝟏By Möbius inversion:Id=σ∗μ
Series relations Two Dirichlet series involving the divisor function are:
∑n=1∞σa(n)ns=ζ(s)ζ(s−a)forℜ(s)>1+max{ℜ(a),0}, where ζ is the Riemann zeta function. The series for d(n) = σ0(n) gives:
∑n=1∞d(n)ns=ζ2(s)forℜ(s)>1, and a Ramanujan identity
∑n=1∞σa(n)σb(n)ns=ζ(s)ζ(s−a)ζ(s−b)ζ(s−a−b)ζ(2s−a−b), which is a special case of the Rankin–Selberg convolution. A Lambert series involving the divisor function is:
… excerpt ends here. Continue reading the full article.




