Arithmetic function Created 2026-09-24 Updated 2026-11-05
An arithmetic function is a function whose domain of a function is the positive integers, usually taking values in the complex numbers. Thus are its values; is outside this domain of a function. Examples include the divisor function, with , and the sum-of-divisors function, with . Studying an arithmetic function packages a question about each positive integer into one object whose values can be combined using Dirichlet convolution. [ref]
Floor and arithmetic functions by Darij Grinberg. Darij Grinberg, MIT 18.781 lecture notes, Section 2.1: arithmetic functions
Completely multiplicative function Created 2026-09-24 Updated 2026-10-20
An arithmetic function is a completely multiplicative function when and for every pair of positive integers . In particular for every prime number and every nonnegative exponent . Both the constant-one arithmetic function and the identity arithmetic function are completely multiplicative functions: and . The divisor function fails this stronger condition at .
Constant-one arithmetic function Created 2026-10-03 Updated 2026-10-14
The constant-one arithmetic function has for every positive integer , including . It is a completely multiplicative function. Its Dirichlet convolution with an arithmetic function is the divisor sum . Thus , the divisor function. Its pointwise product of arithmetic functions with is itself; its Dirichlet convolution with generally is not. The Identity for Dirichlet convolution is instead .
Dirichlet convolution Created 2026-09-24 Updated 2026-11-05
The Dirichlet convolution of arithmetic functions is the arithmetic functionIn the first sum, runs over the positive integer divisors of ; the second uses ordered pairs of positive integers whose product is . Both sums are finite. Each pair contributes one weight from and one from , so Dirichlet convolution combines information attached to complementary factors. It turns a divisor sum into an operation on arithmetic functions. [ref]
Floor and arithmetic functions by Darij Grinberg. Darij Grinberg, MIT 18.781 lecture notes, Sections 2.3 and 2.4: Dirichlet convolution and examples
For the six ordered pairs are . The constant-one arithmetic function gives one per pair, while the identity arithmetic function weights the first factor by its size:Here is the divisor function and is the sum-of-divisors function. By comparison, the pointwise product of arithmetic functions gives and .
Six ordered pairs of positive integers with product 12 contribute to Dirichlet convolution: one per pair for the divisor function, or the first factor for the sum-of-divisors function
. Details. Commutativity follows by swapping the two entries of every ordered pair. Associativity follows by reindexing either grouping over the same ordered tuples of three positive integers:For example, counts ordered tuples of three positive integers with product . Distribute the two occurrences of the prime factor among three entries in ways, and the one occurrence of the prime factor in ways. These binomial coefficients are the stars and bars counts of exponent choices in the nonnegative integers; prime factorization therefore gives such tuples. Directly, the same Dirichlet convolution is .
The Identity for Dirichlet convolution is , and the Möbius function reverses a divisor sum because . This makes Dirichlet convolution useful both for counting factorizations and for recovering an arithmetic function from its divisor sum.
Dirichlet hyperbola method Created 2026-09-24 Updated 2026-10-14
The Dirichlet hyperbola method turns a long summation over a Dirichlet convolution into two short ones by covering the lattice points below a hyperbola with two overlapping strips. Its simplest application is an exact count: for a positive integer , every positive integer divisor of corresponds to the ordered pair . Thus the divisor summatory function counts precisely the ordered pairs of positive integers with :Here is the divisor function, and the floor function gives the number of allowed values of for each . The axes are excluded, while points on are included.
Set , using the floor function and the positive square root. Every counted pair has or . Otherwise . The first strip contains points; swapping the two coordinates gives the same count for the second. Their overlap contains all pairs with , since . The inclusion-exclusion principle therefore gives the exact identityThe subtraction is for the whole overlap square, rather than only the diagonal. The same Dirichlet hyperbola method identity holds for real , with and . [ref]
Multiplicative number theory: The pretentious approach by Andrew Granville and K. Soundararajan. Andrew Granville and K. Soundararajan, Multiplicative number theory: The pretentious approach, §1.1.4, pp. 7–8: divisor pairing and the hyperbola split
The Dirichlet hyperbola method counts 35 positive lattice points with : two strips of 22 points overlap in a square of nine points
. Details. Divisor Created 2026-10-03 Updated 2026-10-14
A divisor of an integer is an integer satisfying the divisibility relation . Equivalently, for some integer . The word positive matters when listing or counting divisors: unless signs are restricted, both and qualify.
The positive divisors of areTheir negatives are also divisors of , giving twelve integer divisors altogether. The same list of positive divisors works for . One has only the positive divisor , while zero has every integer as a divisor, including zero under our divisibility convention. A nonzero integer never has zero as a divisor.
For a positive integer , the positive divisors come in pairs whose product is . For , the pairs are , and . Each pair contains a divisor at most , so searching through candidate divisors up to the square root suffices to find all pairs. A pair repeats its own member only when is a perfect square; for , the middle pair is . Consequently a positive integer has an odd number of positive divisors exactly when it is a perfect square.
The prime factorization gives another complete description. Since , its positive divisors are precisely with and . These independent choices give positive divisors, the value of the divisor function . A prime factor is one particular kind of divisor; , and show that divisors need not be prime numbers.
Thinking in pairs connects exact grouping with integer factorization: twelve objects can form three groups of four or four groups of three. Thinking in shared divisors gives the greatest common divisor; for and , the positive common divisors are , and the largest is .
Divisor function Created 2026-09-24 Updated 2026-11-05
The divisor function counts the positive integer divisors of a positive integer . In particular , because has just one positive integer divisor. More generally the notation gives and the sum-of-divisors function . Thus the divisor function counts the positive integer divisors, while adds their sizes. [ref]
Floor and arithmetic functions by Darij Grinberg. Darij Grinberg, MIT 18.781 lecture notes, Definition 2.1.2 and Theorem 2.1.6
If the prime factorization is with distinct prime numbers and positive exponents , thenThe short proof is a count: each positive integer divisor has a unique form , where . There are choices at each prime number, and choosing them gives every positive integer divisor exactly once. For there are no prime factors and the product is .
For , choose and to obtain . The six values are ; sorted, the positive integer divisors are . Therefore . The diagram makes the independent exponent choices visible.
The prime factorization gives a three-by-two array of positive integer divisors , so the divisor function has
. Details. This count is useful because a known prime factorization gives without testing every smaller positive integer for divisibility. It also proves the divisor function is a multiplicative function: coprime integers have disjoint prime factors, so their exponent choices combine. For example , but , so it is not a completely multiplicative function. Equivalently, under Dirichlet convolution, counting ordered pairs of positive integers whose product is .
Divisor-square summatory bound Created 2026-10-06 Updated 2026-11-05
For , the divisor function obeysOne proof compares it with the generalized divisor function , the number of ordered factorizations into four positive integers. At a prime power , the two counts are and . The inequality holds for every nonnegative integer , and multiplicativity gives . Hence, with the harmonic number,Applying partial summation to this upper bound also yields
Divisor sum Created 2026-09-24 Updated 2026-11-05
The divisor sum of an arithmetic function assigns to each positive integer the sumOnly positive integer divisors are included, so . The weights can count the integer divisors, measure their sizes, or record other arithmetic information: the constant-one arithmetic function gives the divisor function, whereas the identity arithmetic function gives the sum-of-divisors function.
Equivalently, , where is Dirichlet convolution and is the constant-one arithmetic function. If is a multiplicative function, then is a multiplicative function by Multiplicativity of Dirichlet convolution. [ref]
Floor and arithmetic functions by Darij Grinberg. Darij Grinberg, MIT 18.781 notes on floor and arithmetic functions, Proposition 2.4.2 and Theorem 2.6.1
Here is the mechanism. For positive coprime integers , every positive integer divisor of has a unique form with and ; moreover, are coprime integers. Thus a multiplicative function satisfiesAt a prime power, the divisor sum becomes . This turns a calculation over many integer divisors into short local calculations at prime powers.
Divisor summatory function 2026-10-14
The divisor summatory function adds the divisor function up to a cutoff . It counts all ordered pairs of positive integers whose product is at most . For , the twelve individual divisor function values areCounting columns of lattice points instead gives . The Dirichlet hyperbola method needs only the first three column counts:The arithmetic work of the Dirichlet hyperbola method is much smaller even though the answer is identical.
This is useful for elementary averages: individual divisor function values fluctuate, but their summation has the regular behavior given by the divisor summatory asymptotic. Dividing that estimate by a positive integer giveswhere is the natural logarithm, is the Euler--Mascheroni constant, and uses big O notation. This describes an average, rather than an estimate for every individual divisor function value. [ref]
Factor pair 2026-10-20
A pair of positive integers with for a specified positive integer . Pairing each divisor with gives unordered factor pairs for nonsquare , and for a perfect square, where is the divisor function.
Fourth moment of the Riemann zeta function 2026-10-06
The Riemann zeta function satisfies for . Squaring a short Dirichlet polynomial produces the divisor function; the divisor-square summatory bound controls the off-diagonal and diagonal terms.
Fundamental theorem of arithmetic Created 2026-09-24 Updated 2026-10-20
Every integer is a product of prime numbers, uniquely up to reordering the factors. More precisely, there are unique distinct prime numbers and unique positive integer exponents such thatIn the header's displayed form, is the prime valuation, the exponent of in this prime factorization; it is zero when does not divide . Reordering or regrouping the prime factors does not give a different prime factorization.
For , repeated division gives , , , then , , and . ThusIts nonzero prime valuations are , and . Recording only the distinct prime factors would lose the difference between and .
This turns divisibility into coordinatewise comparison of nonnegative exponents. A positive divisor of chooses an exponent from for , from for , and from for , giving positive divisors. The greatest common divisor takes the smaller exponent at each prime number; the least common multiple takes the larger. The theorem is a structural description, not an assertion that finding the factors of every large integer is computationally easy.
In general, for positive integers , the exact divisibility criterion isFor example, divides , with quotient , whereas does not: it requires four factors of two, but supplies only three. Both use only prime factors of , so membership in that list alone does not establish divisibility. Every positive divisor of is uniquely with , , . Sorted, all 24 positive divisors areThus the divisor function gives . These include divisors that are composite numbers, as well as the prime factors and one.
For another positive integer , the prime valuations give exact formulas for the greatest common divisor and least common multiple:With and , their prime valuations at are and . The smaller exponents give , and the larger give , henceIndeed, , , and . The same rules also explain : the smaller and larger exponents sum to the two original exponents. Here .
Prime valuations compute the greatest common divisor, least common multiple and all 24 positive divisors of 360
. The upper table compares exponents at the prime numbers for and , then takes their columnwise minimum and maximum. The lower tables enumerate for and ; each cell gives one positive divisor. Details.The useful change of viewpoint is that multiplication becomes addition of prime valuations, , and divisibility becomes comparison. Many different-looking calculations therefore share one representation. The prime valuations are coordinates for multiplication, rather than digits in positional notation: they do not turn ordinary addition of integers into coordinatewise addition.
Different intermediate splits lead to the same prime ingredients. Starting with gives and ; starting with gives and . Continuing to split the composite numbers produces the same multiset of prime factors: three twos, two threes, and one five. The factorization tree records choices in the calculation, while the prime factorization records the invariant result.
The proof outline explains the uniqueness. Existence follows by splitting a composite number into smaller factors until only prime numbers remain. For uniqueness, Euclid's lemma says that a prime factor of one product must divide one factor of any other prime product equal to it. That factor must be the same prime number; cancel it and repeat. The crucial divisibility step appears in Book VII, Proposition 30 of Euclid's Elements. [ref]
https://mathcs.clarku.edu/~djoyce/java/elements/bookVII/propVII30.html. Euclid, Elements VII.30: a prime divisor of a product
The ancient text supplies specific precursors to the modern statement: Book VII, Proposition 31 establishes that every composite number has a prime factor, and Book IX, Proposition 14 excludes any new prime factor from the least common multiple of given prime numbers. These are the propositions being cited, rather than the complete modern exponent formulation of the fundamental theorem of arithmetic. [ref]
https://mathcs.clarku.edu/~djoyce/java/elements/bookVII/propVII31.html. Euclid, Elements VII.31: every composite number has a prime divisor
[ref]https://mathcs.clarku.edu/~djoyce/java/elements/bookIX/propIX14.html. Euclid, Elements IX.14: prime divisors of a least common multiple of primes
Excluding one from the prime numbers keeps uniqueness meaningful: otherwise would give different collections of supposed prime factors. For , the natural convention is the empty product, equal to one, with no prime factors and all prime valuations zero.
Generalized divisor function 2026-11-05
For an integer , the generalized divisor function counts ordered factorizations of a positive integer into positive integer factors. If , thenTo prove the formula, distribute the exponent among the factors. The number of nonnegative exponent tuples with that sum is the stars and bars count, and different primes can be assigned independently.
Thus and is the ordinary divisor function. For , . The ordered condition matters: exchanging two unequal factors changes the counted tuple. Absolute convergence for permits multiplying Dirichlet series, giving and connecting these counts with powers of the Riemann zeta function.
Highly composite number 2026-10-25
A positive integer whose divisor count strictly exceeds that of every smaller positive integer. A record scan maintains the largest earlier value of the divisor function and emits exactly candidates exceeding it. Equality does not create a new record; the first candidate is handled by a zero initial record.
Multiplicative function Created 2026-10-13 Updated 2026-11-05
An arithmetic function is a multiplicative function when and for all coprime integers , meaning their greatest common divisor is . The condition excludes the identically zero function. This definition makes no assertion about a pair whose greatest common divisor exceeds . [ref]
Floor and arithmetic functions by Darij Grinberg. Darij Grinberg, MIT 18.781 lecture notes, Definition 2.2.1
For the divisor function, the integer divisors of are , those of are , and those of are . HenceHere and are coprime integers. In contrast, , because the integer divisors of are . Thus the divisor function is a multiplicative function but not a completely multiplicative function.
The practical gain is that prime factorization reduces all values to values at prime powers. For distinct prime numbers and positive exponents ,For instance, since and are coprime integers; replacing by additionally requires a completely multiplicative function. The short proof repeatedly applies the defining rule to prime powers belonging to different prime numbers, which are coprime integers.
Multiplicativity of Dirichlet convolution Created 2026-10-14 Updated 2026-11-05
The Dirichlet convolution of two multiplicative functions is a multiplicative function. For positive coprime integers , every positive integer divisor of has a unique form with and , by prime factorization. The pairs and are each coprime integers, so the defining rules for the two multiplicative functions separate the sum:Also . This short argument proves multiplicativity of both the divisor function and the sum-of-divisors function . The result need not be a completely multiplicative function, even when both inputs are: fails at . [ref]
Floor and arithmetic functions by Darij Grinberg. Darij Grinberg, MIT 18.781 lecture notes, Theorem 2.6.1
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 33 2 Solution Created 2026-10-03 Updated 2026-10-14
For the full modular group and integer weight , a modular form is a holomorphic function on the upper half-plane satisfyingand holomorphic at the cusp at infinity. Explicitly, periodicity under gives a Fourier expansion of a modular form in , and holomorphy at the cusp means . A cusp form has . All cusps are equivalent for this group. The matrix forces , so every odd-weight modular form is zero.
There is a corresponding qualification to the displayed Eisenstein series formula: the Bernoulli-normalized formula is for even integers . For odd integers , pairing with gives , while , so the printed expression divided by is undefined. We prove the asserted nonzero formula in its even-weight range.
On each compact set in the upper half-plane, the real-linear map has a uniformly bounded inverse. Hence there. For , lattice convergence gives locally uniform absolute convergence of , and therefore holomorphy. If , thenThe map permutes the nonzero integer pairs. Reindexing proves the weight- transformation law.
To compute the Fourier expansion of a normalized Eisenstein series, start from the cotangent partial-fraction expansionFor , the cotangent Fourier expansion is . Differentiating both normally convergent expressions times givesFor even , the terms with sum to , and the terms with duplicate those with . Substituting in the last identity and collecting givesThe rearrangement is absolutely convergent for every , since the divisor function grows at most polynomially.
For completeness, the normalization follows directly from the definition of the Bernoulli numbers. Near zero, the cotangent partial-fraction expansion givesOn the other hand . Substitute in the generating function of the Bernoulli numbers. The term cancels , and the higher odd terms vanish because is even. Comparison of Laurent coefficients proves the Euler evaluation of even zeta valuesThusThis Fourier series also proves holomorphy at infinity, completing the modular form verification.
For the Ramanujan congruence modulo 691, the standard facts we use are that the modular discriminant is the weight-twelve cusp form , and that . The latter also follows from the valence formula for the modular group: a nonzero weight-twelve modular form has total weighted zero order one, so a cusp form whose coefficient of vanishes would have cusp order at least two and must be zero. The product makes the Ramanujan tau function integer-valued.
Write . Using and the supplied , we haveBoth and have weight twelve and constant term one. Their difference is a cusp form, so is a multiple of . Its coefficient of is , which determines that multiple:The coefficients of are integers. Comparing the positive-index Fourier coefficients and reducing modulo therefore gives . Both numerical constants are congruent to modulo , and . Cancellation proves
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 29 4 Solution Created 2026-10-03 Updated 2026-10-07
A precise useful form of the principle is the type I–type II inverse principle for Möbius correlation. Normalize , and supposeFor any positive integer cutoffs with , defineThen , where is the divisor function, and at least one of the following two sums has modulus at least :The first is correlation against a controlled linear combination of indicators of multiples of small moduli, each a periodic function: this is the “somewhat periodic” branch. The second is a bilinear sum with independently weighted factors, both larger than the cutoffs: this is the “somewhat multiplicative” branch. The statement concerns these precise correlations, not an assertion that must itself be periodic or multiplicative.
For clarity, the Vaughan identity for the Möbius function proves this version immediately. Split and likewise at . Since ,Multiply by and sum. The first two terms contribute at most in modulus, and the remaining terms are . The triangle inequality gives the stated dichotomy. It is valid at finite and for any chosen cutoffs in the indicated range.
We now prove the required orthogonality without appealing to a stronger uniform exponential-sum theorem. Write and . The Diophantine bound for the square root of two iswhere is distance to the nearest integer. If is that nearest integer, then , while ; dividing proves the bound.
Use the preceding Dirichlet convolution identity with . The two short terms are . For the type I sum, the exponential geometric sum bound givesConsequentlyusing from counting factor pairs.
For the type II sum, perform a dyadic decomposition into , , keeping . Nonempty blocks have , while . A block satisfies, by the Cauchy-Schwarz inequality and the divisor-square summatory bound,To justify the cutoff, after expanding the square the permissible for a pair still form an interval, with upper endpoint . Its exponential sum has the same geometric bound. Diagonal pairs supply ; for each nonzero difference there are pairs.
The points modulo one are separated by at least . Counting points in consecutive distance bands around zero therefore givesSubstitution yields the bilinear cancellation for badly approximable phases estimateThere are blocks, so . The divisor-square bound itself can be obtained elementarily from prime-power by prime-power and ; no uncontrolled coefficient bound is being suppressed.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 4 c Solution Created 2026-10-03 Updated 2026-10-06
Put . The given bound for the Riemann zeta function, together with for , givesThe integral over is bounded, since the Riemann zeta function has no pole on this compact segment. It remains to estimate the fourth moment of the Riemann zeta function through this moving Dirichlet polynomial cutoff.
Let and . In the expansion of , a quadruple occurs precisely forIts oscillatory factor is , and its weight is . When , its integral has length at most . When these products differ, its integral over has absolute value at most . Thus the moving cutoff affects the lower endpoint but preserves the off-diagonal bound from part (a).
Write . The divisor function bounds . Grouping the off-diagonal majorant by the two products and using the weighted row-sum argument in part (a), with coefficient and , bounds it byThis uses only the given divisor-square summatory bound. For bounded , the desired conclusions follow by boundedness on compact segments, so these estimates may be read for large with . We have proved the requested diagonal-plus-error estimate:
The diagonal sum equals . If , then partial summation givesConsequently the full fourth-moment bound is




