Contents / Number Theory / Arithmetic Functions
Chapter 4
Arithmetic Functions
Dirichlet convolution and the ring it makes, with multiplicativity preserved under convolution as the engine of the chapter; Euler's totient derived three ways; the Mobius function, the key identity, and inversion in both directions as a convolution statement; sigma_k and the Euclid-Euler characterisation of even perfect numbers; the Carmichael function and Korselt's criterion; and Mertens' theorems.
Introduction
An arithmetic function is nothing more than a function . Stated that baldly the definition promises nothing: every sequence is an arithmetic function, and there is no theory of arbitrary sequences. What makes the subject is a single structural observation — the positive integers are not merely ordered, they factor — and the functions worth studying are the ones that notice.
The chapter is organised around that observation and around one operation. The operation is Dirichlet convolution,
which sums over the factorisations of rather than over its predecessors. Under it the arithmetic functions form a commutative ring with identity, invertible elements and all; the multiplicative functions form a group inside that ring; and almost every classical identity in the subject — Euler's , Möbius inversion, the formula — is a single line of algebra in that ring once the ring is built. Building it is therefore the first order of business, and the two facts that do the work, associativity and the multiplicativity of a convolution of multiplicative functions, are proved in full.
With the algebra in place the classical functions follow quickly: the totient , the Möbius function , the divisor functions , the Carmichael function . Each is introduced by what it counts, then computed from the prime factorisation, then related to the others by a convolution identity. Two named theorems get complete proofs — the Euclid–Euler classification of even perfect numbers, and Korselt's criterion for Carmichael numbers — because both are cases where a purely elementary argument settles a question that looks as though it should need machinery.
The last lesson is about size rather than structure. The functions here oscillate violently: comes arbitrarily close to and infinitely often equals ; is infinitely often and unbounded. What is stable is their average behaviour, and Mertens' three theorems are the sharpest elementary statements about how the primes distribute themselves in that average. Two of the three are proved here from Chebyshev-type estimates; the third needs the prime number theorem for its constant, and where that happens the argument is explicitly labelled a sketch.
Throughout, always denotes a prime, means runs over the positive divisors of , and is the prime factorisation of with the distinct and . Unique factorisation is assumed throughout, as developed in Fundamental Theorem of Arithmetic.
4.1Definitions and basic classes
A warning about terminology before anything else. In number theory "additive" and "multiplicative" do not describe behaviour under . Both describe behaviour under multiplication, and they differ only in whether the values are combined by or by . The convention is historical and unhelpful, and it is universal.
Definition 4.1 (Arithmetic function). An arithmetic function is a function . Two arithmetic functions are equal when they agree at every positive integer.
Definition 4.2 (Additive and multiplicative). An arithmetic function is
- additive if whenever ;
- completely additive if for all ;
- multiplicative if is not identically zero and whenever ;
- completely multiplicative if is not identically zero and for all .
The coprimality hypothesis is the whole point. It says the value of at is determined by its values at the prime powers , because those are pairwise coprime and multiply to . A multiplicative function is thus a function on prime powers that has been extended to all integers in the only consistent way, and specifying one means specifying a doubly-indexed table of numbers and nothing else.
Proposition 4.3 (Normalisation at ). If is multiplicative then . If is additive then .
Proof. Since , multiplicativity gives , so . If then for every , gives , so is identically zero, which the definition excludes. Hence . In the additive case the same computation reads , so ; no exclusion is needed because the zero function is additive and harmless.∎
Theorem 4.4 (A multiplicative function is determined by its prime powers). Let be multiplicative and let . Then
Conversely, given any values indexed by primes and exponents , the formula , together with , defines a multiplicative function.
Proof. For the first claim, induct on . When the empty product is by Normalisation at , and is trivial. For put and . No prime divides both and , so and multiplicativity gives ; the inductive hypothesis expands .
For the converse, let . No prime occurs in both factorisations, so the factorisation of is the concatenation of those of and with the exponents carried over unchanged. The product defining therefore splits as the product for times the product for . Finally , so is not identically zero.∎
The converse half is what licenses the standard style of proof in this chapter: to prove two multiplicative functions equal, check them on prime powers. Everything else is bookkeeping done once and for all.
Example 4.5 (Recognising the classes). Classify (the number of distinct primes dividing ), (the number of prime factors counted with multiplicity), , and (the number of positive divisors).
Solution.
- is additive: for coprime the prime sets are disjoint, so . It is not completely additive, since but .
- is completely additive: exponents simply add when any two integers are multiplied, coprime or not.
- is completely multiplicative, since with no hypothesis at all.
- is multiplicative — this is proved below as Divisors of a coprime product — but not completely multiplicative: while .
Proposition 4.6 (Divisors of a coprime product). If then every divisor of factors uniquely as with and , and the map is a bijection from divisors of paired with divisors of onto the divisors of . Consequently is multiplicative.
Proof. Set and . Since we have , and both divide , so . Conversely write with where and ; coprimality forces or for each , so or , meaning each prime power of lands entirely in or entirely in . Hence and so .
The map is injective because recovers from the product, again using ; and it is surjective by the previous paragraph. Counting both sides gives , and , so is multiplicative.∎
Remark. The bijection above is the reason so many proofs in this chapter look the same. Whenever a quantity is defined as a sum over divisors of , splitting into coprime parts splits the sum into a product of two sums, because the index set itself splits as a product. That single observation is upgraded into the theorem Convolution preserves multiplicativity later in the chapter.
Definition 4.7 (The basic functions). Four arithmetic functions recur constantly:
The function is the delta function (or unit function); is the constant one.
All four are completely multiplicative. For this is a small surprise worth checking: holds for all because both sides are when and otherwise. The property that actually matters about , however, is not its multiplicativity but the fact — proved in the lesson Dirichlet convolution — that it is the identity element for convolution.
4.2Values, order of magnitude, and the ring structure
Before convolution there are the two obvious operations. Arithmetic functions can be added and multiplied pointwise, since their values are complex numbers, and under those operations they form a commutative ring — a completely uninteresting one, isomorphic to a countable product of copies of , riddled with zero divisors and carrying no arithmetic information whatever. It is worth stating precisely once, because the contrast with the Dirichlet ring is the point.
Proposition 4.8 (The pointwise ring). Under and , the set of arithmetic functions is a commutative ring with identity . Its zero divisors are exactly the functions vanishing somewhere without vanishing identically, and its units are exactly the nowhere-zero functions.
Proof. Every axiom is checked at each separately, where it is an axiom of ; the identity is the function constantly , namely . If vanishes at some and is any function supported at alone, then while neither factor need be zero, giving a zero divisor; and if is nowhere zero then is a pointwise inverse. Conversely a unit cannot vanish anywhere, since forces .∎
Remark. Pointwise multiplication destroys multiplicativity in no way — a pointwise product of multiplicative functions is multiplicative — but it is useless for identities like , which relate a function's values at to its values at the divisors of . Nothing in the pointwise ring looks at divisors. Dirichlet convolution is the operation that does, and it is introduced in the lesson Dirichlet convolution.
Two more operations appear often enough to be named: the summatory function and the Dirichlet series, treated in the next section. The summatory function is the bridge to analysis.
Definition 4.9 (Summatory function). The summatory function of is
the sum running over positive integers not exceeding .
Individual values of a multiplicative function jump around: is at every prime and exceeds infinitely often, and no asymptotic formula for itself can exist. The summatory function smooths that out, and it is where all the asymptotic statements of the subject live. The basic tool for computing one is the exchange of order in a double sum, which deserves to be stated as a lemma because every later estimate uses it.
Lemma 4.10 (Dirichlet hyperbola exchange). For any arithmetic function and any ,
Proof. Both sides count the same set of pairs of positive integers with , weighted by . On the left the outer index is and the inner index is ; on the right the outer index is and the inner count is the number of with , which is . Since does not depend on , the inner sum on the right is times that count.∎
Example 4.11 (The average number of divisors). Use the exchange lemma to show .
Solution.
- Since , the lemma with gives .
- Write ; the error terms contribute in total, since there are at most of them.
- The main term is , using the harmonic sum estimate.
- Combining, , so the average number of divisors of an integer near is about even though no individual value is predictable.
Remark. The error term here can be improved a great deal — the hyperbola method gives , and the true exponent in the error is the subject of the unsolved Dirichlet divisor problem. The crude version above is enough for everything in this chapter.
4.3Generating functions and Dirichlet series
An arithmetic function has two natural generating objects. The ordinary power series is the right tool for additive structure — it turns into multiplication by — and is almost useless here. The right object is the Dirichlet series, which turns the multiplicative structure into an Euler product.
Definition 4.12 (Dirichlet series). The Dirichlet series of an arithmetic function is the formal series
When this is the Riemann zeta function , convergent for .
The reason this is the right transform is one line of algebra: . Multiplying two Dirichlet series therefore collects terms according to factorisations, exactly the way convolution does.
Theorem 4.13 (Dirichlet series multiply by convolution). For arithmetic functions ,
as an identity of formal Dirichlet series, and as an identity of functions wherever both series converge absolutely.
Proof. Formally, multiply out:
and the inner sum is , since the pairs with are exactly the pairs with . When both series converge absolutely at , the double series converges absolutely, so the rearrangement collecting terms with is legitimate by Fubini's theorem for series, and the identity holds as one between complex numbers.∎
This theorem is the dictionary for the rest of the chapter. Every convolution identity proved later has a Dirichlet series shadow, and it is usually the shadow one remembers: becomes , and the Möbius identity becomes .
Theorem 4.14 (Euler product). Let be multiplicative with . Then
for , the product over all primes. If is completely multiplicative the inner series is geometric and
Proof. Let be a finite set of primes and expand the finite product . By absolute convergence the product of the inner series may be expanded term by term, and a general term is where , the equality of coefficients being A multiplicative function is determined by its prime powers. Distinct exponent vectors give distinct by unique factorisation, so the finite product equals where is the set of integers all of whose prime factors lie in .
Now take . Every lies in , so the difference between and the finite product is bounded by , the tail of a convergent series, which tends to . Hence the products converge to . For completely multiplicative , and , the ratio having modulus because the single term of a convergent series of non-negative terms is less than for all but finitely many , and for the remaining finitely many the hypothesis of absolute convergence forces it too.∎
Corollary 4.15 (Euler's product for zeta). For ,
In particular in that half-plane.
Proof. Apply Euler product to the completely multiplicative function , for which converges when . Non-vanishing follows because a convergent infinite product of nonzero factors is nonzero: each factor is a nonzero complex number, and the partial products converge to while their reciprocals converge to a finite limit, so cannot be .∎
Intuition. The Euler product is unique factorisation, written as an equation between infinite sums. Choosing a term from each bracket is choosing an exponent for each prime; multiplying them out and collecting is exactly the statement that each integer arises from exactly one such choice.
Example 4.16 (The Dirichlet series of and of ). Write and in terms of .
Solution.
- , since . By Dirichlet series multiply by convolution, , valid for .
- , since . The Dirichlet series of is .
- Hence , valid for so that both factors converge absolutely.
4.4Multiplicative functions in practice
The definition of multiplicativity was given in Additive and multiplicative, and the theorem A multiplicative function is determined by its prime powers reduced every multiplicative function to a table of values . This section is about using that reduction: how to decide whether a given function is multiplicative, and how to read off its values once it is.
The practical test has two halves. To prove multiplicativity, exhibit the function as a count of something that splits across coprime parts, or as a convolution of functions already known to be multiplicative. To disprove it, one counterexample suffices — and the cheapest counterexample is almost always a comparison of against , which tests complete multiplicativity, or of against , which tests the real thing.
Example 4.17 (Which of these are multiplicative?). Decide whether each of , , is multiplicative.
Solution.
- : , so it fails Normalisation at immediately and is not multiplicative.
- : is additive, so for coprime , , and . Multiplicative. It is not completely multiplicative: but .
- : take , . Then while . That case works; in fact is multiplicative in for any fixed , because when , each prime power of being captured by exactly one of , .
Proposition 4.18 (Exponentiating an additive function). If is additive then is multiplicative for any constant ; if is completely additive then is completely multiplicative.
Proof. For coprime , , and by Normalisation at , so is not identically zero. Dropping the coprimality hypothesis on drops it on , giving the second claim.∎
Corollary 4.19 (The Liouville function). The Liouville function is completely multiplicative.
Proof. is completely additive, as observed in Recognising the classes, so Exponentiating an additive function applies with .∎
Pitfall. A multiplicative function need not be positive, need not be monotone, and need not be determined by finitely much data. The one thing it is determined by is its table on prime powers — and two multiplicative functions agreeing on all primes may still differ, because they can differ at . Checking an identity at primes only is the most common error in the subject.
Proposition 4.20 (Products and quotients). If and are multiplicative then so is the pointwise product , and so is provided is nowhere zero. The pointwise sum is in general not multiplicative.
Proof. For coprime : , and . The same computation with gives the quotient. For the last claim, , so a sum of two multiplicative functions is never multiplicative.∎
Example 4.21 (Reading values off the table). Let be multiplicative with for every prime and every . Compute and identify .
Solution.
- .
- By A multiplicative function is determined by its prime powers, .
- The number of divisors of is , so agrees with on all prime powers, and two multiplicative functions agreeing on prime powers are equal. Hence , and indeed .
4.5Convolution preserves multiplicativity
This is the engine of the chapter. Every classical multiplicative function below is built by convolving simpler ones, and the reason each is multiplicative is the single theorem proved here. It deserves a careful proof because the two hypotheses — that and are multiplicative, and that the divisors of a coprime product factor — enter at different points, and seeing where is what makes the result usable.
Theorem 4.22 (Convolution preserves multiplicativity). If and are multiplicative, then so is , where
Proof. First, , so is not identically zero.
Now let . By Divisors of a coprime product, every divisor of is uniquely with , , and every such pair arises. Reindexing the sum over as a double sum over the pairs,
Two coprimality facts now apply. Since and and , we have , so . Likewise divides and divides , so and
Substituting both and separating the variables, the double sum factors:
Remark. Note what was not assumed: nothing about complete multiplicativity, and nothing about convergence, since every sum is finite. Note also what fails: a convolution of two completely multiplicative functions is usually not completely multiplicative. and .
Corollary 4.23 (Local factors of a convolution). If are multiplicative then for every prime power ,
and is determined by these values.
Proof. The divisors of are exactly by unique factorisation, which is the stated sum. Determination is A multiplicative function is determined by its prime powers applied to , which is multiplicative by Convolution preserves multiplicativity.∎
This corollary is the computational form of the theorem. To identify a convolution it is enough to evaluate one finite sum at each prime power, and that sum is usually a geometric series or a telescoping one.
Example 4.24 (Identifying at a prime power). Compute and hence give a closed formula for .
Solution.
- By Local factors of a convolution, .
- Summing the geometric series, this is .
- Since is multiplicative, .
- Check: , and indeed .
Example 4.25 (A convolution that collapses). Let be the multiplicative function with for and for ; that is, if is squarefree and otherwise. Compute for .
Solution.
- : the only term is .
- : .
- : .
- : .
- So counts the ways to write as an ordered product of two squarefree numbers, and it vanishes as soon as some prime occurs to the third power or higher.
4.6Euler products for multiplicative functions
The theorem Euler product says that the Dirichlet series of a multiplicative function factors over the primes. In practice one rarely needs the analytic statement; one needs the bookkeeping, which is that a local factor
can be computed for each prime separately, and the answer for the whole function is the product. The art is recognising a local factor as a ratio of zeta values, because then the whole series is a ratio of zeta functions and its analytic behaviour is known.
Proposition 4.26 (The series of , and ). For large enough for absolute convergence,
Proof. Each is Dirichlet series multiply by convolution applied to a convolution identity established elsewhere in the chapter. For the first, by The Möbius sum identity, and since is supported at ; so . For the second, . For the third, by Divisor-power sums as a convolution, and . Absolute convergence holds for in the first two cases and in the third, since .∎
Example 4.27 (Counting squarefree integers). Let if is squarefree and otherwise. Compute the Euler product and Dirichlet series of , and deduce the density of squarefree integers.
Solution.
- is multiplicative with and for , so the local factor is .
- Hence . Multiplying and dividing by gives , so the product is .
- The density of squarefree integers is governed by the residue of that series at , which is .
- So about of integers are squarefree — a figure the local factors deliver with no analysis beyond knowing .
Proposition 4.28 (A completely multiplicative function has a one-term local factor). is completely multiplicative if and only if its local factors are all geometric, , equivalently for every prime power.
Proof. If is completely multiplicative, by induction on , and summing the geometric series gives the stated factor. Conversely, if for all , take any and compare prime by prime: writing , , both and equal , using multiplicativity of across distinct primes. Hence with no coprimality hypothesis.∎
Intuition. Reading a Dirichlet series as an Euler product is reading a function "one prime at a time". Every question about a multiplicative function that does not involve how the primes interact — and most do not — becomes a question about a single power series in .
4.7Euler's totient: definition and first values
Definition 4.29 (Euler's totient function). For , Euler's totient is the number of integers with and :
The convention falls out of the definition — is counted, since — and it is the right convention, as every identity below confirms. For a prime every one of is coprime to and itself is not, so ; this is the largest can be, and it characterises the primes.
Proposition 4.30 (The totient characterises primes). For : if and only if is prime.
Proof. If is prime the count above gives . Conversely suppose is composite, say with . Then lies in , is not , and satisfies , so at least two of the integers in the range — namely and — are excluded from the count, giving .∎
Theorem 4.31 (Totient of a prime power). For a prime and ,
Proof. An integer in fails to be coprime to exactly when , since is the only prime dividing . The multiples of in that range are , of which there are . Subtracting from the total gives the formula.∎
Example 4.32 (Small totients). Compute for directly from the definition, and check the prime-power values against the theorem.
Solution.
- : of the multiples of are , so , matching .
- , the excluded numbers being the eight even ones.
- : coprime residues are , so .
- : coprime residues are , so .
Remark. The scatter never settles down. Along the primes ; along the ratio is , which tends to by Mertens' third theorem. So has every point of as a limit point, and no asymptotic formula for itself exists — only for its average, which is per integer.
4.8The product formula, via inclusion–exclusion
There are two proofs of the closed formula for , and both are worth having. The first counts directly with inclusion–exclusion and needs no structural theory at all; the second, in the next section, deduces it from multiplicativity in two lines. The first proof is the one that explains why the answer is a product over the distinct primes and does not see the exponents.
Theorem 4.34 (Euler's product formula). For with distinct prime divisors ,
where .
Proof. By inclusion–exclusion. For each let . An integer in satisfies precisely when some prime dividing divides , that is, precisely when . Hence
For any subset , the intersection consists of the multiples of in , because the are distinct primes so divisibility by each is divisibility by the product. Since divides , the number of such multiples is exactly with no rounding. Inclusion–exclusion gives
The last sum is the expansion of the product : choosing, from each factor, either the or the corresponds exactly to choosing the subset of indices contributing their second term. Therefore . Distributing one factor at a time turns each into , which is the second form.∎
Intuition. Read as a probability: a random avoids with probability , avoids with probability , and — because the are distinct primes dividing — these events are genuinely independent on the range to . The formula is the product rule for independent events, and the exactness of in the proof is precisely that independence.
Example 4.35 (Computing from the factorisation). Compute , and .
Solution.
- , so .
- , all distinct primes, so .
- .
Corollary 4.36 (Divisibility and parity). is even for every . Moreover if then .
Proof. For the parity: if has an odd prime factor with , then the factor is even, so the product is. Otherwise with , and is even.
For the divisibility, compare prime by prime. Write and with . Then and . Every prime with also has , so each factor of divides the corresponding factor of , and the remaining factors of are integers. Multiplying, .∎
Pitfall. The formula sees only the distinct primes in the bracket form, which tempts one to write . It is : the exponent has been absorbed into the leading , not discarded. Similarly requires ; for it gives instead of the correct .
4.9Multiplicativity, Euler's theorem, and the second proof
The totient is multiplicative, and the cleanest proof is structural: counts the units of , and the Chinese remainder theorem splits that unit group across coprime factors.
Theorem 4.37 ( counts units). For , the residue class of is invertible in the ring if and only if . Hence .
Proof. If , Bézout gives integers with , so and is invertible. Conversely if then for some , so any common divisor of and divides , forcing . The residues represent each class of exactly once, so counting invertible classes counts exactly the in that range with .∎
Theorem 4.38 ( is multiplicative). If then .
Proof. The Chinese remainder theorem gives a ring isomorphism
valid because . A ring isomorphism carries units to units, and a pair is a unit in a product ring exactly when each coordinate is. Hence
which by counts units is . Since , is multiplicative.∎
Corollary 4.39 (Euler's product formula, second proof).
Proof. By is multiplicative and A multiplicative function is determined by its prime powers, , and each factor is by Totient of a prime power.∎
Comparing the two proofs is instructive. The inclusion–exclusion argument is self-contained and gives the answer for a single with no theory; the structural argument gives the answer for all at once and explains the product as a decomposition of a group. Both take about a page; only the second generalises, and it is the one that tells us what is rather than merely how large it is.
Theorem 4.40 (Euler's theorem). If then
Proof. The group is finite of order by counts units, and represents an element of . By Lagrange's theorem the order of the cyclic subgroup generated by divides , so is the identity of , which is the class of .
Without group theory the same argument runs directly: let be the residues coprime to . Multiplication by permutes them, since is again coprime to and forces after cancelling the invertible . Taking the product of all of them, , that is ; the product is coprime to and hence cancellable, leaving .∎
Corollary 4.41 (Fermat's little theorem). If is prime and then .
Proof. Take in Euler's theorem and use .∎
Example 4.42 (Reducing a large power). Compute .
Solution.
- , so , and .
- By Euler's theorem, .
- , so .
- ; ; .
- Final value: .
4.10Divisor sums of the totient
One identity dominates the applications of , and it is the first genuinely non-obvious convolution identity in the chapter.
Theorem 4.43 (Gauss's divisor sum for ). For every ,
Proof. By partitioning the fractions. Consider the fractions and reduce each to lowest terms. Each reduced fraction has the form with , and ; conversely every such arises exactly once, from . So the fractions are partitioned by their reduced denominator , and the class with denominator has exactly members. Counting the whole set in two ways gives .
By multiplicativity. Alternatively, is multiplicative by Convolution preserves multiplicativity, so it suffices to check it at prime powers. By Local factors of a convolution,
the sum telescoping. Since is also multiplicative and agrees at every prime power, the two functions are equal.∎
Remark. The two proofs are not the same argument in different clothes. The first is a bijection and gives the result for one without knowing is multiplicative; the second is a telescoping sum and needs the theory. Given Möbius inversion, later in the chapter, this identity will be run backwards to recover , which is how is usually computed in the convolution ring.
Example 4.44 (Checking Gauss's identity). Verify .
Solution.
- Divisors of : .
- Totients: , , , , , .
- Sum: .
Proposition 4.45 (Sum of the coprime residues). For ,
Proof. Pair with . Since , the map is an involution of the set of residues coprime to in — note is excluded as means . It has no fixed point: would give , so , which is only if , and for the set has odd size with its own partner, giving the sum as claimed. For , splits into pairs each summing to , so the total is .∎
Example 4.46 (A totient equation). Find all with .
Solution.
- Write ; then , so every divides and every odd contributes as a divisor of , forcing for odd .
- Odd primes with : give . ( is not prime; gives , excluded.)
- The power of contributes if or , and if .
- Enumerating: (), (), (), (), ().
- So the solution set is , five values — the totient is far from injective.
4.11The Möbius function
The Möbius function exists to invert divisor sums. Its definition looks arbitrary — three cases, one of which is a sign — and the only honest motivation is the identity proved at the end of this section, which is what the definition was reverse-engineered to satisfy.
Definition 4.47 (Möbius function). For ,
Equivalently, if is squarefree and otherwise.
So is supported on the squarefree integers and records the parity of the number of prime factors there. The first values are , , , , , , , .
Proposition 4.49 ( is multiplicative). is multiplicative: and whenever . It is not completely multiplicative.
Proof. Let . If either or is divisible by a square , then so is , and both sides are . Otherwise both are squarefree; since they share no prime, is squarefree too, and its distinct primes are those of together with those of , with no overlap. Hence and
It is not completely multiplicative because while .∎
Remark. On prime powers is as simple as a function can be: , and for every . Combined with A multiplicative function is determined by its prime powers this is an alternative definition, and it is the one to use in a proof, since it turns any local factor into a two-term expression.
Theorem 4.50 (The Möbius sum identity). For every ,
that is, .
Proof. For the only divisor is and .
For , let be the distinct primes dividing , so . A divisor of contributes nothing unless it is squarefree, so only the divisors for matter, and such a contributes . Grouping the subsets by size,
by the binomial theorem, using so that .
Alternatively and more briefly: is multiplicative by Convolution preserves multiplicativity, and at a prime power for , which is .∎
Intuition. The identity is inclusion–exclusion in disguise, and the disguise is thin: the alternating sum is exactly the signed count that appears when one over-counts a union and corrects. This is why shows up wherever a counting problem is solved by sieving.
4.12Möbius inversion
Möbius inversion is the statement that convolving with is an invertible operation, whose inverse is convolving with . Once The Möbius sum identity is available and convolution is known to be associative, the proof is two lines; the content is entirely in that identity.
Theorem 4.51 (Möbius inversion). Let and be arithmetic functions. Then
In convolution notation. if and only if .
Proof. () Suppose . Convolve with and use commutativity and associativity, established in Convolution makes a commutative ring:
the third equality by The Möbius sum identity and the fourth because is the convolution identity.
() Suppose . Then
by the same three facts. So each statement implies the other.∎
Remark. The symmetry of the two directions is not an accident of the proof; it is the statement that is a unit of the Dirichlet ring with inverse . Every "inversion formula" in combinatorics is of this shape — an incidence algebra in which one element is invertible — and the Möbius function of the divisibility order is the prototype.
Example 4.52 (Recovering by inversion). Apply Möbius inversion to Gauss's identity .
Solution.
- The identity says , so the hypothesis of Möbius inversion holds with , .
- Inverting, , that is .
- Check at : the squarefree divisors are with -values , giving .
- Dividing by turns the formula into , which on expanding over the squarefree divisors is exactly Euler's product — a third proof of Euler's product formula.
Corollary 4.53 (Multiplicativity transfers through inversion). If then is multiplicative if and only if is.
Proof. If is multiplicative then so is by Convolution preserves multiplicativity, since is multiplicative. Conversely if is multiplicative then is multiplicative by the same theorem, since is multiplicative by is multiplicative.∎
Example 4.54 (Inverting the divisor count). Given that , find the function with , and verify at .
Solution.
- By Möbius inversion, . But , so .
- So , which is the identity we started from — consistent.
- At : .
- This is .
Pitfall. Möbius inversion requires the relation to hold for every , not just the one of interest; the inverse formula at uses at all divisors of . And the and the argument must be paired as — writing gives the same sum by symmetry of the divisor pairing, but gives nonsense.
4.13The sum identity and what it does
The identity deserves a section of its own because almost every use of in practice is an application of it in the following form: it is a detector for the condition , and can be inserted into any sum to impose a coprimality or exactness constraint.
Proposition 4.55 ( as an indicator). For positive integers ,
Proof. Apply The Möbius sum identity with : the sum is , which is exactly when .∎
That single proposition converts "count the coprime to " into a double sum with no coprimality condition, which can then be exchanged. It is the engine behind the sieve of Eratosthenes made quantitative.
Example 4.56 (Euler's formula by sieving). Use as an indicator to recompute .
Solution.
- .
- Exchange the order: ranges over divisors of , and for fixed the inner condition , has exactly solutions.
- So , which is again.
- Expanding over squarefree divisors gives .
Definition 4.57 (Mertens function). The Mertens function is the summatory function of :
The pointwise identity says the signs cancel within each ; the size of asks whether they cancel across , which is a far deeper question. is equivalent to the Riemann hypothesis, and even is equivalent to the prime number theorem.
Proposition 4.58 (A crude bound on ). for all , and takes the values , , , , , .
Proof. The bound is the triangle inequality: , since . The listed values are direct summation of the table of given after the definition, extended by the same rule.∎
Proposition 4.59 (Squarefree indicator). For every ,
which is if is squarefree and otherwise.
Proof. Both sides are multiplicative: the left by is multiplicative and Products and quotients; the right because is the convolution-type sum whose value at depends only on the exponents, and splitting into coprime parts splits the condition as with dividing the respective part, exactly as in Divisors of a coprime product. So check at : the with are with , and unless . For or only qualifies, giving ; for both and qualify, giving . That is exactly .∎
Example 4.60 (Counting squarefree integers up to ). Use Squarefree indicator to estimate the number of squarefree integers not exceeding .
Solution.
- .
- Exchange: for each the number of with is , so .
- Replace the floor by ; the errors total .
- The main term is .
- Hence , agreeing with the density found in Counting squarefree integers.
4.14Applications of Möbius inversion
Möbius inversion is used whenever a quantity is easy to compute "with multiplicity" and hard to compute exactly. Two standard examples follow, one from polynomial algebra and one from combinatorics on words; both have the same shape, a total that decomposes over divisors.
Theorem 4.61 (Counting monic irreducibles over a finite field). Let be a prime power and let be the number of monic irreducible polynomials of degree over . Then
Proof. The field is the splitting field of over , and that polynomial is squarefree since its derivative is . Its monic irreducible factors over are exactly the monic irreducibles whose degree divides : an irreducible of degree has its roots in , which sits inside precisely when . Comparing degrees on both sides of the factorisation of gives .
Now set and . The displayed identity is , so Möbius inversion gives ; dividing by gives the formula.∎
Example 4.62 (Irreducible cubics and quartics over ). Compute and .
Solution.
- . The two are and .
- .
- As a sanity check, (namely and ) and gives , the polynomial .
Proposition 4.63 (Necklace counting). The number of aperiodic binary strings of length , up to nothing (as linear strings), is , and the number of binary necklaces with primitive period is .
Proof. Every binary string of length has a unique primitive period , namely the least such that the string is a -block repeated times. Letting be the number of strings of length that are aperiodic, classifying the strings by their primitive period gives . By Möbius inversion, . Cyclic rotation acts freely on the aperiodic strings of length — a nontrivial rotation fixing a string would force a smaller period — so the orbits all have size and there are of them.∎
Remark. The identical shape of the last two results is not coincidence: counts orbits of the Frobenius map on , and the Frobenius is a cyclic rotation of the "string" of conjugates. The necklace formula and the irreducible-polynomial formula are the same theorem about a cyclic group acting freely.
4.15Divisor functions
Definition 4.64 (Divisor-power functions). For and ,
In particular counts the divisors and sums them. When is omitted, means .
Theorem 4.65 (Divisor-power sums as a convolution). , and consequently is multiplicative for every .
Proof. By definition . Both and are completely multiplicative, hence multiplicative, so Convolution preserves multiplicativity makes multiplicative.∎
Example 4.66 (Divisor counts and sums). Compute , and .
Solution.
- , so .
- .
- , so ; directly, .
Proposition 4.67 (Divisors come in pairs). The map is an involution on the divisors of , and
Consequently is odd if and only if is a perfect square.
Proof. If then , and applying the map twice returns , so it is an involution and in particular a bijection of the divisor set. Substituting in the defining sum gives .
For the parity of : the involution pairs up divisors, so is odd exactly when the involution has a fixed point, that is when for some divisor, i.e. . (A fixed point is unique when it exists, since is determined as .)∎
Example 4.68 (A divisor-count equation). Find the smallest positive integer with exactly divisors.
Solution.
- If then , so the exponent pattern must have .
- The factorisations of into factors are , , , , , and so on; the exponent multisets are , , , .
- To minimise , assign the largest exponent to the smallest prime: ; ; ; .
- The smallest is , with divisors .
Pitfall. is multiplicative, not additive or completely multiplicative. while ; and has no relation to . Only coprime products split.
4.16Formulas and Dirichlet series for
Theorem 4.69 (Closed formula for ). Let . For ,
and for ,
Proof. By Divisor-power sums as a convolution, is multiplicative, so by A multiplicative function is determined by its prime powers it is enough to evaluate at . The divisors of are , so
For this is a geometric series with ratio , summing to . For every term is and there are of them. Taking the product over gives both statements.∎
Corollary 4.70 (Divisor series). For ,
Proof. This is The series of , and , restated; it follows from and Dirichlet series multiply by convolution.∎
Example 4.71 (Using the closed formula). Compute two ways.
Solution.
- Directly: the divisors of are , so .
- By the formula: .
Proposition 4.72 (Bounds on ). For every ,
Proof. The lower bound holds because and are distinct divisors when , so . The upper bound is term by term.
For the last claim, Divisors come in pairs gives . Every divisor of is a product with , so , and each factor is a truncation of the geometric series , hence strictly smaller.∎
Remark. Combined with Euler's product formula, the last bound says for all : the totient and the divisor sum pull in opposite directions, and their product is pinned near . Indeed , so the ratio lies between and .
4.17Perfect numbers and the Euclid–Euler theorem
Definition 4.73 (Perfect, abundant, deficient). Call perfect if , abundant if , and deficient if . Equivalently, the sum of the proper divisors equals, exceeds, or falls short of .
The first perfect numbers are , , and . Each is of the form with prime, and the theorem below says the even ones are exactly these — a complete classification, proved in full, with the odd case still open after twenty-three centuries.
Theorem 4.75 (Euclid–Euler). An even number is perfect if and only if
for some prime such that is also prime (a Mersenne prime).
Proof. (, Euclid.) Let be prime and . Since is odd, , so multiplicativity of gives
(, Euler.) Let be even and perfect. Write with and odd. Coprimality of and gives
Thus , and since is odd it divides ; write . Substituting,
Now and are both divisors of — indeed — and they are distinct because forces . So with equality only if and are the only divisors of . Equality holds, so has exactly two divisors, forcing and prime. Then and .
It remains to see that is prime. If with , then is a proper divisor of strictly greater than , by the factorisation , contradicting primality of . Setting gives the stated form.∎
Remark. The theorem is a classification only of the even perfect numbers. Whether an odd perfect number exists is open; it is known that one would have to exceed , have at least ten distinct prime factors, and satisfy a long list of further constraints, every one of which is derived from the multiplicativity of in essentially the manner above.
Example 4.76 (Testing for perfection). Determine whether and are perfect, abundant or deficient.
Solution.
- and is prime, so Euclid–Euler applies with : is perfect. Check: .
- , so .
- So is abundant — and it is the smallest odd abundant number, which is why abundance is so strongly associated with even numbers.
Definition 4.77 (Aliquot sequence, amicable pairs). The aliquot sequence of is where . A pair with and , , is an amicable pair; a cycle of length is a sociable chain.
Example 4.78 (The amicable pair and ). Verify that and are amicable.
Solution.
- , so and .
- , so and .
- Each is the sum of the other's proper divisors, and note the coincidence that both have — which is forced, since for any amicable pair.
4.18The Carmichael function
Euler's theorem says for every coprime to . It does not say is the smallest exponent that works, and usually it is not: modulo every odd satisfies , while . The sharp exponent has a name and a formula.
Definition 4.79 (Carmichael function). For , is the least positive integer such that
Equivalently, is the exponent of the group : the least common multiple of the orders of its elements.
The two descriptions agree because for all units is exactly the statement that is a common multiple of all element orders, and the least such is the lcm.
Theorem 4.80 (Carmichael's formula). , , and
while for ,
Proof. The last formula first. By the Chinese remainder theorem, as in the proof of is multiplicative, . An element of a direct product has order the lcm of the coordinate orders, so the exponent of a product of groups is the lcm of their exponents, which is the displayed formula.
For odd , the group is cyclic of order — the existence of a primitive root modulo an odd prime power — and a cyclic group of order has exponent , since a generator has order . Hence .
For the group is cyclic only for : is trivial and has exponent . For one has with of order , so the exponent is because . That has order follows by induction from with odd, which squares to with odd.∎
Example 4.81 (Computing ). Compute for .
Solution.
- : every odd square is mod .
- , while .
- , while .
- , while .
- , so , while .
4.19 against
Theorem 4.82 ( divides ). For every , , and . Equality holds if and only if is cyclic, that is if and only if for an odd prime .
Proof. The exponent of a finite group divides its order: if is the exponent and any element, the order of divides , and by Lagrange every element order divides , so of element orders divides as well — each element order divides , hence so does their lcm. With by counts units and by definition, .
Equality means some element has order , that is is cyclic; this is the classification of the possessing a primitive root, namely . For any other the Chinese remainder decomposition has at least two factors of even order, or the factor with , and in both cases the lcm is a proper divisor of the product.∎
Proof. The first statement is the definition of . For the second, write ; then .∎
Example 4.84 (Where beats ). Compute the order of modulo and compare with and .
Solution.
- , .
- So has order , and no unit modulo has order .
- Euler's exponent is therefore twice as large as it needs to be; in a modular exponentiation this is a factor-of-two waste, which is why rather than is the exponent used in RSA key generation.
Remark. The gap can be enormous. For a primorial, while , and the lcm discards all the shared factors of : for one has but .
4.20Carmichael numbers and Korselt's criterion
Fermat's little theorem gives a primality test: if for some coprime to , then is composite. The test has false positives, and the numbers that fool it for every base are the subject here.
Definition 4.85 (Carmichael number). A composite is a Carmichael number if
Equivalently, for every integer .
Theorem 4.86 (Korselt's criterion). A composite is a Carmichael number if and only if is squarefree and
Proof. () Suppose is squarefree with each , and let . Then , so Fermat's little theorem gives , and since divides we may raise to the appropriate power: for each . The are distinct primes, so by the Chinese remainder theorem .
() Suppose is composite and for every coprime to . By the definition of the Carmichael function as the least such exponent, . Since , it follows that .
Squarefree. Suppose for some prime . If is odd, Carmichael's formula gives with , so , contradicting . If , then , so is even, is odd, yet divides — again a contradiction. Hence is squarefree.
The divisibility. Now with distinct primes. If some is odd, then is even, so , forcing odd; and if all then is not composite. So is odd and every is odd. By Carmichael's formula, , and each divides that lcm, which divides . Hence for every .∎
Corollary 4.87 (A Carmichael number has at least three prime factors). Every Carmichael number is odd and is a product of at least three distinct primes.
Proof. Oddness was established inside the proof of Korselt's criterion. Suppose with distinct odd primes. Korselt requires . But , so , which is impossible since . Hence , and would make prime, so .∎
Example 4.88 (Verifying ). Show that is a Carmichael number and that is as well.
Solution.
- , squarefree, and .
- ; since ; since .
- All three conditions hold and is composite, so Korselt's criterion certifies it. It is the smallest Carmichael number.
- with : (), (), (). So is Carmichael too.
Example 4.89 (A number Korselt rejects). Is a Carmichael number? Is ?
Solution.
- For : . Check (), (), (). All hold, so is Carmichael.
- For : it has only two prime factors, so A Carmichael number has at least three prime factors rules it out at once. Concretely does not divide .
- Indeed , so base detects that is composite.
Remark. Carmichael numbers are rare but infinite in number: Alford, Granville and Pomerance proved in 1994 that there are at least of them below . Their existence is why the Fermat test is replaced in practice by the Miller–Rabin test, which has no analogue of a Carmichael number — no composite is a strong pseudoprime to more than a quarter of the bases.
4.21Dirichlet convolution
The operation has been used throughout; here it is defined properly and its elementary properties are established.
Definition 4.90 (Dirichlet convolution). For arithmetic functions , their Dirichlet convolution is the arithmetic function
The second form is the one to use in proofs: it is manifestly symmetric in and , and it generalises immediately to three or more factors.
Proposition 4.91 (Commutativity). for all arithmetic functions .
Proof. In the symmetric form, . Swapping the names of the summation variables turns this into , since the condition is symmetric and multiplication in is commutative.∎
Proposition 4.92 (The delta function is an identity). for every .
Proof. , and unless , that is unless . The single surviving term is . Commutativity gives the other order.∎
Example 4.93 (Convolution by hand). Compute and .
Solution.
- Divisors of : with -values and -values .
- .
- That is no accident: , so , giving .
- .
4.22The ring of arithmetic functions
Theorem 4.95 (Associativity of convolution). For all arithmetic functions ,
the sum over ordered triples of positive integers with product .
Proof. Expand the left-hand side using the symmetric form of the definition twice:
A pair with together with a pair with is the same data as a triple with : given the triple, is determined, and given the pairs, the triple is read off. So the double sum is exactly .
The same expansion on the right gives
and pairs with together with with are again the same data as triples with . Both sides equal the symmetric triple sum, so they are equal.∎
Theorem 4.96 (Convolution makes a commutative ring). The set of arithmetic functions, with pointwise addition and Dirichlet convolution, is a commutative ring with identity . It is moreover an integral domain.
Proof. Addition makes an abelian group, as it is pointwise addition of complex-valued functions. Convolution is commutative by Commutativity, associative by Associativity of convolution, and has identity by The delta function is an identity. Distributivity is immediate from the definition, since
For the domain property, let be nonzero and let , be the least integers with , . Consider . A term is nonzero only if and ; combined with this forces , . So and .∎
Theorem 4.97 (Units of the Dirichlet ring). An arithmetic function has a convolution inverse if and only if . The inverse is then unique and determined recursively by
Proof. If then evaluating at gives , so .
Conversely suppose . We construct with by strong induction on . At , must equal , which forces and permits . For the requirement is
which determines uniquely as the displayed expression, every occurring in it having and so being already defined. The resulting satisfies at every by construction, and uniqueness at each step gives uniqueness of .∎
Example 4.98 (Inverting from the recursion). Use the recursion of Units of the Dirichlet ring to compute for .
Solution.
- .
- ; likewise .
- .
- .
- The values are exactly , as The Möbius sum identity predicts: .
Corollary 4.99 (Möbius inversion restated). and are mutually inverse units of , and Möbius inversion is precisely the statement that convolution by a unit is a bijection of with inverse convolution by the inverse unit.
Proof. by The Möbius sum identity, so each is the inverse of the other by uniqueness in Units of the Dirichlet ring. In any ring, multiplication by a unit is a bijection with inverse multiplication by ; applied to this reads , which is the inversion formula.∎
Remark. The ring is in fact a local ring: its non-units are exactly the with , and those form an ideal, since a sum of two such has and a product has . It is also isomorphic to a ring of formal power series in countably many variables, one per prime — a fact that makes the Euler product look like a change of coordinates.
4.23The group of multiplicative functions
Inside the ring , the multiplicative functions form a group. This is the cleanest statement of the chapter's organising principle, and everything else has been proved already.
Theorem 4.100 (Multiplicative functions form a group). The set of multiplicative functions is an abelian group under Dirichlet convolution, with identity . In particular the convolution inverse of a multiplicative function is multiplicative.
Proof. Closure is Convolution preserves multiplicativity; associativity and commutativity are inherited from ; and is multiplicative and is the identity by The delta function is an identity. Every has , so by Units of the Dirichlet ring it has a unique inverse in ; it remains to see is multiplicative.
Let be the multiplicative function defined on prime powers by — this exists by the converse half of A multiplicative function is determined by its prime powers. Then is multiplicative, and at a prime power
Two multiplicative functions agreeing on all prime powers are equal, so . By uniqueness of inverses, , and is multiplicative.∎
Corollary 4.101 (The completely multiplicative inverse). If is completely multiplicative then , the pointwise product. In particular and .
Proof. Both and are multiplicative — the first by Products and quotients — so is multiplicative and may be checked at prime powers. There,
since for and by complete multiplicativity. For the two terms are both and cancel, and for the value is . That is .∎
Example 4.102 (Convolution identities as algebra). Derive and purely by algebra in .
Solution.
- Gauss's identity is . Convolving both sides with gives .
- , so .
- Evaluating the second at any gives .
- Similarly , so .
Example 4.103 (An inverse computed at prime powers). Find the convolution inverse of .
Solution.
- , so by uniqueness of inverses in a commutative ring.
- At a prime power, , which is for , for , for , and for .
- So is the multiplicative function with , , and for ; for instance .
Pitfall. The group is closed under convolution but not under addition: is not multiplicative, as noted in Products and quotients. is a subgroup of the unit group of , never a subring.
4.24Mertens' three theorems
The chapter closes with the average behaviour of the primes. The three statements below were proved by Mertens in 1874, two decades before the prime number theorem, and two of the three are genuinely elementary: they need only Chebyshev-type bounds and careful summation. They are the quantitative form of "the primes thin out like ".
Theorem 4.104 (Mertens' first theorem). For ,
the sum over primes , with the implied constant absolute.
Theorem 4.105 (Mertens' second theorem). There is a constant , the Meissel–Mertens constant, with
Theorem 4.106 (Mertens' third theorem). With the Euler–Mascheroni constant,
The three are a chain: the first is the raw input, the second follows from it by partial summation, and the third follows from the second by taking logarithms — except for the value of the constant, which is the one genuinely hard point and the only place where analytic machinery is unavoidable.
Remark. The second theorem says the sum of reciprocals of primes diverges, and tells us how: like , which is the slowest divergence one is likely to meet. To make exceed one needs beyond . Compare : the primes are sparse enough to cost an entire logarithm.
Intuition. If "the probability that is prime" is , then should behave like , which is exactly Mertens' second theorem. The heuristic gets the shape right and says nothing about the constant — which is the honest summary of the situation.
4.25Proving the three theorems
Lemma 4.107 (Legendre's factorial formula). For ,
Proof. By unique factorisation, where is the exponent of in . Counting the multiples of , then of , and so on among , each multiple of contributing one to the count for every , gives , a finite sum. Taking logarithms gives the formula.∎
Proof (Proof of Mertens' first theorem). Apply Legendre's factorial formula and split off :
The second sum is : bounding each floor by and summing the geometric series gives at most , and that series converges, being dominated by .
In the first sum write . The error contributes , using Chebyshev's estimate — itself elementary, from the fact that the binomial coefficient is divisible by every prime in and is at most . Hence
Stirling's formula in its crude form gives . Equating and dividing by ,
Finally, for real the sum over equals the sum over and , giving the statement for all .∎
Proof (Proof of Mertens' second theorem). Let , so that with bounded, by Mertens' first theorem. Write and apply partial summation with the weight :
Substituting , the first term is and the integral splits as
The infinite integral converges absolutely because is bounded and is finite, and the same bound makes the tail . Collecting the constants into a single gives the theorem. The numerical value follows by comparing with the third theorem.∎
Proof (Sketch of Mertens' third theorem). Take logarithms of the product and expand:
The double sum converges absolutely as , to a constant say, with tail . By Mertens' second theorem the whole expression is , so
Everything to this point is elementary. What is not elementary is the evaluation . This is where the sketch stops being a proof: identifying the constant requires comparing the Euler product of near with the pole and using -function asymptotics, or equivalently invoking the prime number theorem in the form . Assuming that input, the constant comes out as and the theorem follows.∎
Remark. It is worth being precise about what is assumed where. Mertens' first and second theorems are proved above from Stirling's formula and Chebyshev's bound, both elementary; no zero-free region and no prime number theorem is used, and indeed Mertens proved them before the PNT existed. Only the constant in the third theorem needs more, and the shape of the third theorem does not.
4.26What the theorems are used for
Proposition 4.108 (The density of coprime pairs to a primorial). Let be the product of the first primes. Then
Hence .
Proof. The product formula is Euler's product formula applied to the squarefree . The asymptotic is Mertens' third theorem with , since the primes are exactly . The right-hand side tends to because there are infinitely many primes, so , and exhibiting a sequence along which establishes the liminf.∎
Example 4.109 (How small can get?). Estimate for and compare with Mertens' prediction.
Solution.
- Exactly: , so
- Mertens predicts .
- The agreement is about — unimpressive, and exactly what one expects from an asymptotic with a relative error of order at this size. The approximation is a statement about , not about .
Proposition 4.110 (Sieve heuristic bound). The number of integers in with no prime factor below is at most for an absolute constant , which by Mertens' third theorem is .
Proof. By inclusion–exclusion over the squarefree built from primes below , the count is , which equals plus an error of at most one per term, and there are terms. Applying Mertens' third theorem to the product gives the stated order .∎
Remark. Taking in the last proposition would count the primes up to and give — except that the error term swamps the main term long before that. Controlling that error is the entire subject of sieve theory, and the Legendre sieve above is its crudest form.
4.27Mertens, the zeta function and the Euler product
The third theorem has a clean interpretation in terms of , which also explains where comes from.
Proposition 4.111 (The product and the pole). For real,
Thus the Euler product diverges as at exactly the rate , and the constant term of the Laurent expansion is .
Proof. The product formula is Euler's product for zeta. For the expansion, compare with the integral:
Each integrand is bounded by in absolute value, so the series converges uniformly for in a neighbourhood of and defines a continuous function there. Its value at is , which is the definition of the Euler–Mascheroni constant.∎
Remark. Compare the two appearances of . In The product and the pole it arises from the difference between a harmonic sum and a logarithm; in Mertens' third theorem it appears in the exponent, . They are the same constant for the same reason: the finite Euler product must approximate with , and matching against produces exactly the factor . Making that matching rigorous is the analytic step the sketch above declined to take.
Proposition 4.112 (Möbius and the reciprocal of zeta). For , , and the statement is equivalent to for all real , hence to the prime number theorem.
Proof. The series identity is The series of , and . For the equivalence we only prove the easy direction: if then partial summation shows converges for , so extends continuously to the line , forcing . The converse, that non-vanishing on the line implies , is a Tauberian theorem and is not proved here.∎
Example 4.113 (Reading off a density from a zeta quotient). The Dirichlet series of is . What density does that predict, and why?
Solution.
- As , has a simple pole with residue while .
- So : a simple pole of residue .
- A residue at corresponds to a summatory function , so the squarefree integers have density — matching the direct count in Counting squarefree integers up to .
- Reading "multiplicative" as linear. has nothing to do with and ; and needs unless is completely multiplicative. , not .
- Forgetting the exponent in . The value is , not . The bracket form sees only the distinct primes because the exponents are already inside the leading .
- Checking an identity at primes only. Two multiplicative functions can agree at every prime and differ everywhere else; the correct check is at every prime power. This is what separates from , which agree at all primes.
- Writing in the inversion formula. The pairing is ; the arguments must multiply to .
- Applying Möbius inversion to one value of . The hypothesis must hold at every positive integer; knowing it at a single says nothing.
- Assuming . Equality holds only when a primitive root exists, that is for . For the correct exponent is , not .
- Treating and as the same thing. is the convolution identity and is supported at ; is constantly and is the summing operator. Convolving with takes divisor sums; convolving with does nothing.
- Calling every Fermat pseudoprime a Carmichael number. A Carmichael number must fool the test for every coprime base, which by Korselt's criterion forces squarefreeness and at least three prime factors. is a pseudoprime to base only.
- Expecting or to converge. Neither has a limit; both have a whole interval of limit points. Only averages and the extreme behaviour described by Mertens' theorems are stable.
- Adding multiplicative functions. A sum of two multiplicative functions has value at and so is never multiplicative. The closure properties are pointwise product, quotient by a nowhere-zero function, and Dirichlet convolution.