elementary number theory
Arithmetic Functions
You should know: mobius function, eulers totient function
Overview
An arithmetic function is simply a function defined on the positive integers, usually capturing something about a number's divisors or prime factorization: the divisor-counting function d(n) (also written τ(n)), the divisor-sum function σ(n), and Euler's totient φ(n) are the classic examples, alongside the Möbius function μ(n). What makes this family so useful is that most of them are multiplicative — f(mn) = f(m)f(n) whenever gcd(m, n) = 1 — which means each one is completely determined by its values on prime powers, and those values are easy to write down from a number's prime factorization. This turns hard-looking questions ('how many divisors does 360 have?') into quick prime-factorization exercises, and the same multiplicative structure underlies deep results like the Möbius inversion formula, Dirichlet convolution, and the study of perfect numbers (n with σ(n) = 2n).
Intuition
Every divisor of n = p₁^{a₁} ⋯ p_k^{a_k} is obtained by picking, independently for each prime pᵢ, an exponent between 0 and aᵢ — so the divisors are in bijection with the (a₁+1)(a₂+1)⋯(a_k+1) possible exponent-tuples, which is exactly d(n). σ(n) uses the same independence: summing over all divisors factors into a product of separate geometric sums 1 + pᵢ + pᵢ² + ⋯ + pᵢ^{aᵢ}, one per prime, because a divisor's total is the product of independently-chosen prime-power pieces. Multiplicativity for coprime m, n is the formal statement of this independence — the divisor structure of m and n don't interact at all when they share no prime factors, so any 'divisor-counting-and-summing' function built this way factors cleanly.
Formal Definition
For a positive integer n with prime factorization n = p₁^{a₁} p₂^{a₂} ⋯ p_k^{a_k}, the key multiplicative arithmetic functions are:
Worked Examples
Factor 12 = 2² · 3.
d(12) = (2+1)(1+1) = 6.
σ(12) = (2³−1)/(2−1) · (3²−1)/(3−1) = 7·4 = 28.
Answer: d(12) = 6 (divisors 1,2,3,4,6,12); σ(12) = 28 (their sum: 1+2+3+4+6+12=28).
Practice Problems
Compute d(28), the number of divisors of 28.
Verify that 28 is a perfect number by computing σ(28) and checking σ(28) = 2·28.
Compute φ(28) using multiplicativity, given φ(4) = 2 and φ(7) = 6.
Quiz
Summary
- Arithmetic functions like d(n) (divisor count), σ(n) (divisor sum), and φ(n) (Euler's totient) are determined entirely by n's prime factorization when they are multiplicative.
- For n = p₁^{a₁}⋯p_k^{a_k}, d(n) = ∏(aᵢ+1) and σ(n) = ∏(pᵢ^{aᵢ+1}−1)/(pᵢ−1), each factoring over the distinct primes.
- Multiplicativity (f(mn)=f(m)f(n) for coprime m,n) is the structural reason these functions reduce to easy prime-power computations, and underlies deeper tools like Möbius inversion.
Mathematics