In number theory, an arithmetic, arithmetical, or number-theoretic function is generally any function whose domain is the set of positive integers and whose range is a subset of the complex numbers. Hardy & Wright include in their definition the requirement that an arithmetical function "expresses some arithmetical property of n". There is a larger class of number-theoretic functions that do not fit this definition, for example, the prime-counting functions. This article provides links to functions of both classes. An example of an arithmetic function is the divisor function whose value at a positive integer n is equal to the number of divisors of n. Arithmetic functions are often extremely irregular (see table), but some of them have series expansions in terms of Ramanujan's sum.
Multiplicative and additive functions An arithmetic function a is
completely additive if a(mn) = a(m) + a(n) for all natural numbers m and n; completely multiplicative if a(1) = 1 and a(mn) = a(m)a(n) for all natural numbers m and n; Two whole numbers m and n are called coprime if their greatest common divisor is 1, that is, if there is no prime number that divides both of them. Then an arithmetic function a is
additive if a(mn) = a(m) + a(n) for all coprime natural numbers m and n; multiplicative if a(1) = 1 and a(mn) = a(m)a(n) for all coprime natural numbers m and n.
Notation In this article, ∑pf(p) and ∏pf(p) mean that the sum or product is over all prime numbers: ∑pf(p)=f(2)+f(3)+f(5)+⋯ and ∏pf(p)=f(2)f(3)f(5)⋯. Similarly, ∑pkf(pk) and ∏pkf(pk) mean that the sum or product is over all prime powers with strictly positive exponent (so k = 0 is not included): ∑pkf(pk)=∑p∑k>0f(pk)=f(2)+f(3)+f(4)+f(5)+f(7)+f(8)+f(9)+⋯. The notations ∑d∣nf(d) and ∏d∣nf(d) mean that the sum or product is over all positive divisors of n, including 1 and n. For example, if n = 12, then ∏d∣12f(d)=f(1)f(2)f(3)f(4)f(6)f(12). The notations can be combined: ∑p∣nf(p) and ∏p∣nf(p) mean that the sum or product is over all prime divisors of n. For example, if n = 18, then ∑p∣18f(p)=f(2)+f(3), and similarly ∑pk∣nf(pk) and ∏pk∣nf(pk) mean that the sum or product is over all prime powers dividing n. For example, if n = 24, then ∏pk∣24f(pk)=f(2)f(3)f(4)f(8).
Ω(n), ω(n), νp(n) – prime power decomposition The fundamental theorem of arithmetic states that any positive integer n can be represented uniquely as a product of powers of primes: n=p1a1⋯pkak where p1 < p2 < ... < pk are primes and the aj are positive integers. (1 is given by the empty product.) It is often convenient to write this as an infinite product over all the primes, where all but a finite number have a zero exponent. Define the p-adic valuation νp(n) to be the exponent of the highest power of the prime p that divides n. That is, if p is one of the pi then νp(n) = ai, otherwise it is zero. Then n=∏ppνp(n). In terms of the above the prime omega functions ω and Ω are defined by
To avoid repetition, formulas for the functions listed in this article are, whenever possible, given in terms of n and the corresponding pi, ai, ω, and Ω.
Multiplicative functions
σk(n), τ(n), d(n) – divisor sums σk(n) is the sum of the kth powers of the positive divisors of n, including 1 and n, where k is a complex number. σ1(n), the sum of the (positive) divisors of n, is usually denoted by σ(n). Since a positive number to the zero power is one, σ0(n) is therefore the number of (positive) divisors of n; it is usually denoted by d(n) or τ(n) (for the German Teiler = divisors). σk(n)=∏i=1ω(n)pi(ai+1)k−1pik−1=∏i=1ω(n)(1+pik+pi2k+⋯+piaik). Setting k = 0 in the second product gives τ(n)=d(n)=(1+a1)(1+a2)⋯(1+aω(n)).
φ(n) – Euler totient function φ(n), the Euler totient function, is the number of positive integers not greater than n that are coprime to n. φ(n)=n∏p∣n(1−1p)=n(p1−1p1)(p2−1p2)⋯(pω(n)−1pω(n)).
Jk(n) – Jordan totient function Jk(n), the Jordan totient function, is the number of k-tuples of positive integers all less than or equal to n that form a coprime (k + 1)-tuple together with n. It is a generalization of Euler's totient, φ(n) = J1(n). Jk(n)=nk∏p∣n(1−1pk)=nk(p1k−1p1k)(p2k−1p2k)⋯(pω(n)k−1pω(n)k).
μ(n) – Möbius function μ(n), the Möbius function, is important because of the Möbius inversion formula. See § Dirichlet convolution, below. μ(n)={(−1)ω(n)=(−1)Ω(n)if ω(n)=Ω(n)0if ω(n)≠Ω(n). This implies that μ(1) = 1. (Because Ω(1) = ω(1) = 0.)
τ(n) – Ramanujan tau function τ(n), the Ramanujan tau function, is defined by its generating function identity: ∑n≥1τ(n)qn=q∏n≥1(1−qn)24. Although it is hard to say exactly what "arithmetical property of n" it "expresses", (τ(n) is (2π)−12 times the nth Fourier coefficient in the q-expansion of the modular discriminant function) it is included among the arithmetical functions because it is multiplicative and it occurs in identities involving certain σk(n) and rk(n) functions (because these are also coefficients in the expansion of modular forms).
cq(n) – Ramanujan's sum cq(n), Ramanujan's sum, is the sum of the nth powers of the primitive qth roots of unity: cq(n)=∑gcd(a,q)=11≤a≤qe2πiaqn. Even though it is defined as a sum of complex numbers (irrational for most values of q), it is an integer. For a fixed value of n it is multiplicative in q:
If q and r are coprime, then cq(n)cr(n)=cqr(n).
ψ(n) – Dedekind psi function The Dedekind psi function, used in the theory of modular functions, is defined by the formula ψ(n)=n∏p|n(1+1p).
Completely multiplicative functions
λ(n) – Liouville function λ(n), the Liouville function, is defined by λ(n)=(−1)Ω(n).
χ(n) – characters All Dirichlet characters χ(n) are completely multiplicative. Two characters have special notations: The principal character (mod n) is denoted by χ0(a) (or χ1(a)). It is defined as χ0(a)={1if gcd(a,n)=1,0if gcd(a,n)≠1. The quadratic character (mod n) is denoted by the Jacobi symbol for odd n (it is not defined for even n): (an)=(ap1)a1(ap2)a2⋯(apω(n))aω(n). In this formula (ap) is the Legendre symbol, defined for all integers a and all odd primes p by (ap)={0if a≡0(modp),+1if a≢0(modp) and for some integer x,a≡x2(modp)−1if there is no such x. Following the normal convention for the empty product, (a1)=1.
Additive functions
ω(n) – distinct prime divisors ω(n), defined above as the number of distinct primes dividing n, is additive (see Prime omega function).
Completely additive functions
… excerpt ends here. Continue reading the full article.