Multiplicative Functions
How many divisors does have? Can we find that number without listing them all? A student factors . They compute . Whether or not they realize it, they've exploited a deep structural fact. Many natural functions on the positive integers respect multiplication of coprime numbers. This property is called multiplicativity. It converts an arithmetic function, defined a priori on all of , into something else. It becomes an object completely determined by its values on prime powers. Those values are usually trivial to compute. The idea matters for a key reason. The positive integers are built from primes via the Fundamental Theorem of Arithmetic. Multiplicative functions are precisely those arithmetic functions compatible with this multiplicative structure. Once we know a function is multiplicative, something remarkable happens. An infinite amount of information — its value at every integer — collapses dramatically. It reduces to a much smaller amount of information: its values at prime powers for each prime . This is the mechanism behind formulas for the divisor count , the sum of divisors , and Euler's totient . It is also the algebraic backbone underlying Dirichlet Convolution. Here is the big picture. Arithmetic functions form a vast, largely unstructured space. But multiplicativity carves out a subspace with rich internal structure. This subspace is closed under pointwise operations in limited ways. It is beautifully closed under Dirichlet convolution, though. It is also fully parametrized by an Euler product over primes. This turns hard combinatorial questions about all integers into easy local questions, one prime at a time. This article gives precise definitions of multiplicative and completely multiplicative functions. It proves the reduction theorem that pins a multiplicative function down by its prime-power values. It also proves a companion fact: a function is determined by, and can be reconstructed from, data at prime powers alone via unique factorization. Along the way we build intuition and a toolkit. This includes worked examples, a careful counterexample showing why the coprimality hypothesis cannot be dropped, and a look at where this machinery reappears throughout mathematics.
- A function is multiplicative if and whenever .
- It is completely multiplicative if that identity holds for all , no coprimality needed.
- Multiplicativity plus unique factorization forces for : prime powers determine everything.
- Completely multiplicative functions are even simpler: , so a single value per prime suffices.
- Classic examples: , , , are multiplicative but not completely multiplicative; and the constant function are completely multiplicative.
- Key idea: coprimality of the arguments is exactly the hypothesis that makes prime-power data suffice to reconstruct the whole function.
Where this lives today
The reduction of multiplicative functions to prime-power data is the computational engine behind essentially every classical arithmetic function: the divisor function and sum-of-divisors (see The Divisor and Sigma Functions), Euler's totient (see The Euler Totient Function), and the Möbius function all owe their tractability to being multiplicative. The algebraic structure this induces — Dirichlet Convolution, under which multiplicative functions form a group — is the backbone of analytic number theory, where Euler products translate additive information about all integers into local information at each prime, the technique underlying the analytic proof of the Prime Number Theorem and the study of the Riemann zeta function and Dirichlet -functions. Beyond pure number theory, multiplicativity underlies fast algorithms in computer science and cryptography: computing Euler's totient for RSA key generation reduces to factoring and multiplying prime-power totients, exactly the mechanism proved above, making key generation efficient once factorization is known (and correspondingly hard to invert without it). In combinatorics, multiplicative structure governs counting problems on integer partitions and divisor lattices, where generating functions factor as Euler products over primes. In algebraic number theory, multiplicative arithmetic functions generalize to ideal-theoretic norms in number fields, and the same prime-power reduction underlies local-global principles used throughout the theory of -functions and modular forms.
Ask the tutor: How do I prove that Dirichlet convolution of two multiplicative functions is again multiplicative, using this reduction theorem?
Let be an arithmetic function, where . 1. is multiplicative if is not identically zero and
2. is completely multiplicative if is not identically zero and
with no coprimality restriction. Every completely multiplicative function is multiplicative, since the defining identity for complete multiplicativity holds in particular when .
Intuition
Think of the positive integers as being assembled, brick by brick, from primes: unique factorization says in exactly one way (up to order). A general function on need not respect this construction at all — its value at could depend on in some way totally unrelated to its prime factorization. Multiplicativity is the demand that "sees" the assembly process: if you build by gluing together two coprime pieces and (pieces sharing no prime factors), then of the whole is the product of of the pieces. The coprimality condition is essential, and it is exactly what lets us split along its distinct prime factors. Since are pairwise coprime (they involve disjoint sets of primes), multiplicativity lets us peel them apart one at a time: . So the entire infinite table of values collapses to a much shorter list: the values for each prime and exponent , together with . Picture this as a two-dimensional grid, one row per prime, one column per exponent. A multiplicative function is fully specified by filling in this grid — freely, with no constraint linking different primes — and then multiplying across the rows corresponding to the primes dividing . Complete multiplicativity is a further collapse: within each row the entries must themselves be , a geometric progression, so one number per prime is enough.
Let be a multiplicative function. Then: 1. . 2. If is the prime factorization of (the distinct primes, ), then
3. Conversely, if is any function assigning a value to each pair (prime , integer ), then there is a unique multiplicative function with for all such pairs; it is given by the formula in (2) (with ). Consequently, a multiplicative function is completely and uniquely determined by its values at prime powers, and any assignment of values at prime powers extends to exactly one multiplicative function.
Lemma (complete multiplicativity on prime powers). If is completely multiplicative, then for every prime and integer ,
Hence a completely multiplicative function is determined by its values at the primes alone, via .
We prove each part in turn, using induction and the uniqueness of prime factorization as the only structural inputs.
(1) . Since is multiplicative, is not identically zero, so there exists with . Since , multiplicativity gives
Dividing both sides by the nonzero number yields .
(2) Factorization formula. We induct on the number of distinct prime factors of . Base case : here is itself a prime power, and the claimed identity is a tautology. Base case (i.e. ) is part (1). Inductive step: suppose the formula holds for every integer with fewer than distinct prime factors, and let have exactly distinct prime factors. Write
Because does not divide (the prime factorization of involves only , all distinct from ), and is a power of alone, we have . This is where unique factorization is used: the set of primes dividing is , and the set of primes dividing is , and these are disjoint, so no prime divides both, forcing . Multiplicativity of applied to the coprime pair gives
Now has exactly distinct prime factors, so the inductive hypothesis applies to :
Substituting,
completing the induction. Note this argument never invokes the value of at a non-prime-power composite, so there is no circularity.
(3) Existence and uniqueness of the extension. Uniqueness is immediate from (2): if is multiplicative and matches on prime powers, then formula (2) expresses for every purely in terms of the values , and is forced by (1); so is completely pinned down by , with no freedom left. Existence: define , and for with prime factorization , define
This is well-defined because the prime factorization of is unique up to the order of factors (Fundamental Theorem of Arithmetic), and multiplication of complex numbers is commutative, so reordering the does not change the product. We must check is multiplicative, i.e. that (true by definition) and whenever . Let with . If or the identity is trivial since . Otherwise write the prime factorizations
where are the distinct primes dividing and those dividing . Since , no prime divides both and , so and are disjoint; hence
is exactly the prime factorization of (all primes are distinct). By the defining formula for ,
Finally is not identically zero, e.g. . So is multiplicative, and by construction for every prime power. This proves existence, completing part (3).
Lemma. Let be completely multiplicative and fix a prime . We show by induction on . For this is trivial. Suppose for some . Complete multiplicativity applies to any pair , in particular to (which need not be coprime, and indeed when ; this is precisely why we need the complete hypothesis here, not mere multiplicativity):
This completes the induction, proving the lemma. Combining with part (2) (which applies since complete multiplicativity implies multiplicativity), for ,
Worked examples
Example 1: Reconstructing , the sum-of-divisors function, at . The function is known to be multiplicative (proved in the article on The Divisor and Sigma Functions); here we simply use the reduction theorem to compute it efficiently, illustrating the payoff of Part (2). First find at each prime power appearing in :
- ,
- ,
- .
Since the theorem guarantees (the three prime-power factors are pairwise coprime, and their product is ), we get
As a check, one can note the closed formula , giving , , , matching. Note that had we instead tried (splitting as ), this would be invalid: and share the common factor , so , and multiplicativity simply does not apply to that split. This is exactly the coprimality hypothesis at work: only the split into prime-power pieces is guaranteed to be usable.
Example 2: A completely multiplicative function versus a merely multiplicative one, evaluated at . Let if is odd and if is even — no, take instead a cleaner completely multiplicative example: let
the squaring function, and compare it against Euler's totient , which is multiplicative but not completely multiplicative. Squaring is completely multiplicative. For any (coprime or not), , and . So by the Lemma, , consistent with the direct computation . At :
consistent, and here we could equally have used directly: . Complete multiplicativity means one number per prime (, ) suffices, with exponents just along for the ride. Totient is not completely multiplicative. Recall (proved in the article on The Euler Totient Function). At the same :
Now test whether , the complete-multiplicativity signature from the Lemma. Take : , but . So fails the Lemma's conclusion, and indeed is not completely multiplicative — even though it is multiplicative, and Part (2) of the theorem still applies to it perfectly well (as just used). This contrast is the point: multiplicativity guarantees reduction to prime powers; complete multiplicativity further reduces prime powers to primes, and only enjoys the weaker property.
The hypothesis in the definition of multiplicativity is not a technical nicety — without it, the reduction theorem is false and the very notion of "value determined by prime powers" breaks down. To see this concretely, consider , Euler's totient, which is genuinely multiplicative (in the strict sense with the coprimality restriction). Test the identity on the non-coprime pair :
These disagree: . So the multiplicative identity genuinely fails once we drop the coprimality condition and demand it for all pairs — which is precisely why is multiplicative but not completely multiplicative, and why Part 2 of the theorem is stated with a factorization into pairwise coprime prime-power pieces , never an arbitrary factorization into two possibly non-coprime pieces. Concretely, if one attempted to prove " for all " as a blanket property of every multiplicative function (i.e., tried to erase the hypothesis in the theorem statement), the inductive step in the proof of Part (2) would be unjustified: the key move was , guaranteed only because 's prime factors are disjoint from . If we instead tried to split as, say, (i.e. times ), these share the factors and , so , and there is no license to write for a merely multiplicative . Indeed for : , while . This confirms that unrestricted splitting fails, and only the coprime, prime-power splitting used in the theorem is valid.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| multiplicative, | always | — |
| multiplicative, | no general identity | can be false (e.g. at ) |
| completely multiplicative | ; one value per prime suffices | — |
| forced for any multiplicative | Students sometimes forget this must be proved, not assumed | |
| Pointwise sum of two multiplicative functions | usually not multiplicative | in general, already violating the definition |
| Extending values from primes alone | fine for completely multiplicative | For merely multiplicative , values at alone do not determine |
The mathematician behind it
Origins · 1 minLeonhard Euler and how this was discovered
Euler did not use the modern vocabulary of "multiplicative function," which crystallized later, but he was the first to systematically exploit the phenomenon: his introduction of the totient function , his formula for via divisor sums, and above all his discovery of the Euler product \sum_{n=1}^\infty \frac{f(n)}{n^s} = \prod_{p \text{ prime}} \left(1 + \frac{f(p)}{p^s} + \frac{f(p^2)}{p^{2s}} + \cdots \right) for multiplicative (most famously for , giving the Euler product for the zeta function) is the direct analytic descendant of the reduction theorem proved here. Euler's genius was to see that unique factorization, translated into a statement about functions, becomes a statement about factoring an infinite series into an infinite product over primes — the seed of analytic number theory.
Why is required in the definition rather than left to be derived case by case?
Requiring not identically zero and using for some with , one can derive from the multiplicative identity itself, as done in the proof above — so strictly the definition need only assume plus the multiplicative property, and follows. Many textbooks instead build directly into the definition for convenience, avoiding the (easy) derivation each time. Either convention is standard; the content is identical, since the derivation is a one-line consequence. What must never be dropped is some mechanism forcing , since without it the zero function would vacuously satisfy for coprime , trivializing the definition.
Is the sum of two multiplicative functions multiplicative?
Generally no. Even setting aside the value at , take : then , already violating the normalization condition in the definition. Even functions engineered to fix typically fail the coprime-multiplicative identity, because generally does not factor as . Multiplicative functions are not closed under pointwise addition; they are closed under pointwise multiplication and, more importantly, under Dirichlet Convolution, which is the operation that respects their structure.
If two multiplicative functions agree on all primes, must they agree everywhere?
Not necessarily — agreement on primes alone is not enough for merely multiplicative functions, only for completely multiplicative ones. For example, (divisor count) and any completely multiplicative function with for every prime agree at every prime (), but while , so they disagree at . Two multiplicative functions agree everywhere if and only if they agree at every prime power , by the reduction theorem; agreement at primes is strictly weaker unless both functions are additionally completely multiplicative.
Does multiplicativity say anything about or additive behavior?
No — multiplicativity is purely about the operation of multiplication of coprime arguments, and it makes no claim about sums. A function can be multiplicative and behave wildly under addition; for instance is multiplicative but has no simple formula in terms of and (e.g. while ). This is a different regime from additive arithmetic functions (where for coprime , as with restricted suitably, or the number of distinct prime factors ), which form a separate but analogous theory.
How does this connect to Dirichlet convolution?
Dirichlet convolution defines a new arithmetic function from two arithmetic functions . A key theorem, built directly on the reduction result proved here, states that if and are both multiplicative, so is ; the proof again reduces to checking the identity at prime powers, using unique factorization to separate divisors of from divisors of coprime cofactors. This makes the set of multiplicative functions closed under convolution and turns it into a group under with identity element , a structure explored fully in Dirichlet Convolution.
Can a multiplicative function take the value somewhere without being identically zero?
Yes, and this is common. For instance the Möbius function is multiplicative with for every prime but for every — so , yet is not the zero function since and . The definition only excludes being identically zero on all of ; isolated or even infinitely many zero values are perfectly consistent with multiplicativity, and indeed 's zero pattern at non-squarefree prime powers is the entire content of its usefulness in the Möbius inversion formula.
What is the quickest way to check whether a formula defines a multiplicative function without testing all pairs ?
By the reduction theorem, it suffices to check and then verify the coprime-multiplicative identity directly from the formula, or — more practically — to derive a closed form for from the definition and confirm that plugging prime-power factorizations into the claimed product formula reproduces the original formula for general . In practice, one typically proves multiplicativity from a defining sum or product (e.g. a sum over divisors) using an explicit bijection between divisors of and pairs of divisors of when , as done for and in their dedicated articles, rather than testing infinitely many pairs by hand.