How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Average Orders Divisor Sums and Representation Counts
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Analyticity of Holomorphic Functions; Liouville and Morera
- Arc Length and Rectifiable Curves
- Arithmetic Functions and Dirichlet Convolution
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Variation and the Riemann–Stieltjes Integral
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Differentiability and the Cauchy–Riemann Equations
- Complex Power Series and Analytic Functions
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Connectedness
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Contour Integration
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Function Space Topologies and the Exponential Law
- Fundamental Trigonometric Identities
- Goursat's Theorem and Cauchy's Theorem in a Convex Domain
- Group Homomorphisms and the Isomorphism Theorems
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Improper Integrals
- Incidence Algebras and Möbius Inversion
- Isolated Singularities and Laurent Series
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Line Integrals and the Gradient Theorem
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Metric Spaces
- Mixed Partials, Taylor Formulae, and Extrema
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Partitions of Unity and Paracompactness
- pi: the Equivalent Characterizations
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Primitive Roots and Unit Groups Modulo N
- Properties of the Integral and the Working FTC
- Quadratic Residues and the Legendre Symbol
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Subspaces, Products, and Quotients
- Sums of Two Squares
- Suprema and Infima
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Fundamental Theorem of Finite Abelian Groups
- The Fundamental Theorems of Calculus
- The Identity Theorem, the Maximum Principle and the Open Mapping Theorem
- The Logarithm and General Powers
- The Residue Theorem and the Evaluation of Real Integrals
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The Total Derivative in ℝᵐ → ℝⁿ
- The Winding Number and the Global Cauchy Theorem
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page fixes the summatory notion of average order and then carries the standard finite-sum arguments that make the first analytic-number-theory constants visible: the harmonic asymptotic, the Dirichlet hyperbola split, and the summatory estimates for , , and .
The second half returns to sums of two squares. The ordered-sign representation count is put in arithmetic-function language, matched with a divisor formula, and averaged back to the constant through the same hyperbola method and the published Gregory-Leibniz theorem.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Summatory functions and average orders
Definition
Let be an arithmetic function (Arithmetic functions on the positive integers). Its summatory function is
for real .
An arithmetic function is an average order of when
as , and the comparison sum on the right is eventually nonzero.
Remarks
- This is a summatory asymptotic. It does not say that and are pointwise close term by term.
- Because the index condition is , every summatory function here is constant on each interval .
The Euler-Mascheroni constant
Definition
The Euler-Mascheroni constant is
provided the limit exists.
Remarks
- The next item proves existence and gives the sharper quantitative estimate needed later on this page.
The harmonic sum is log x plus gamma plus O(1/x)
Statement
For every real ,
Facts & Assumptions
Given: A real and an integer .
Proof
Since is decreasing on by The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t, monotonicity of the integral and additivity over subintervals give and
Put . Summing the first inequality of step 1.1 from to gives , and the same inequality at gives Also summing the second inequality of step 1.1 from to gives so . Thus is increasing and bounded, hence convergent by A nondecreasing sequence bounded above converges to the supremum of its range, and a nonincreasing sequence bounded below to the infimum.
Let . Since and by step 1.1, the sequence in The Euler-Mascheroni constant has the same limit . Therefore , and
For the given real , let . Then , so . Combining this with step 3.1 yields because for every .
Dirichlet's hyperbola method for summatory convolutions
Statement
Let be arithmetic functions with summatory functions and (Summatory functions and average orders). If and satisfy , then
Facts & Assumptions
Given: Arithmetic functions , a real , and reals with .
Proof
By Dirichlet convolution of arithmetic functions, where the last equality is the finite reindexing of Finite commutative-monoid sums are invariant under bijective reindexing, split over disjoint unions, and satisfy the finite Fubini rule.
Every lattice point with lies in at least one of the regions or , for otherwise and would give . Therefore
For fixed , the inner sum over is exactly , and for fixed the inner sum over is exactly . The overlap sum factors as Substituting these identities into step 2.1 gives the claimed formula.
The summatory divisor-counting function is x log x plus (2 gamma - 1)x plus O(sqrt x)
Statement
For every real ,
Facts & Assumptions
Given: A real and .
Proof
By The divisor functions arise by Dirichlet convolution, . Applying Dirichlet's hyperbola method for summatory convolutions with and gives
Since uniformly in , summing over yields
By The harmonic sum is log x plus gamma plus O(1/x), . Also , so and . Substituting these into step 2.1 gives
Since , combining step 3.1 with step 1.1 yields
The summatory logarithm is x log x minus x plus O(log x)
Statement
For every real ,
Facts & Assumptions
Given: A real and .
Proof
The function of The natural logarithm as the inverse of the exponential function is increasing on by The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t, so monotonicity of the integral gives
By Sums, scalar multiples, products and quotients: , , , and when and The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t, the function satisfies for every . Therefore The second fundamental theorem: if is differentiable on with and is integrable, then yields for every . Applying this with and in step 1.1 gives
Since , one has and therefore . Substituting this into step 2.1 and using proves
The average order of tau is log n
Statement
The arithmetic function is an average order of .
Facts & Assumptions
Given: A real .
Proof
By The summatory divisor-counting function is x log x plus (2 gamma - 1)x plus O(sqrt x) and The summatory logarithm is x log x minus x plus O(log x),
The two sums differ by , while the comparison sum is and is therefore eventually positive. Hence By Summatory functions and average orders, this is exactly the statement that is an average order of .
The summatory divisor-sum function is pi squared over 12 times x squared plus O(x log x)
Statement
For every real ,
Facts & Assumptions
Given: A real , an integer , and for .
Proof
By The divisor functions arise by Dirichlet convolution, . Summing over and writing each such as gives
For each , Therefore
Since uniformly in , one has . Summing and using The Basel sum is pi squared over six by a residue computation together with The harmonic sum is log x plus gamma plus O(1/x) gives
Substituting step 3.1 into step 2.1 yields
The average order of sigma is (pi squared over 6)n
Statement
The arithmetic function is an average order of .
Facts & Assumptions
Given: A real and .
Proof
The comparison sum is exact:
By The summatory divisor-sum function is pi squared over 12 times x squared plus O(x log x), . Comparing this with step 1.1 shows that the ratio of the two summatory functions tends to , and the comparison sum is eventually positive. Therefore Summatory functions and average orders makes an average order of .
The summatory totient function is 3 over pi squared times x squared plus O(x log x)
Statement
For every real ,
Facts & Assumptions
Given: A real and, for each positive integer , the integer .
Proof
By For every positive integer , , one has , where is from The power functions and the divisor-power-sum functions . Applying Classical Möbius inversion over positive divisors gives The same inversion applied to the identity , with from The Dirichlet-convolution identity and the constant-one function, yields
Summing the divisor formula from step 1.1 over and writing gives Also, multiplying the second identity of step 1.1 by and summing over yields the finite identity
For a positive integer , let . For every one has so Since The Basel sum is pi squared over six by a residue computation gives , it follows that . Apply this in the second formula of step 2.1 with . Because for every , one gets Together with from The number-theoretic Möbius function from prime factorisation and The harmonic sum is log x plus gamma plus O(1/x), this yields
For each , Therefore step 2.1 becomes Using step 3.1 and The harmonic sum is log x plus gamma plus O(1/x) now yields
The average order of Euler's totient is 6n over pi squared
Statement
The arithmetic function is an average order of .
Facts & Assumptions
Given: A real and .
Proof
The comparison sum satisfies
By The summatory totient function is 3 over pi squared times x squared plus O(x log x), . Comparing with step 1.1 shows that the two summatory functions are asymptotic, with the comparison sum eventually positive. Hence Summatory functions and average orders says that is an average order of .
Ordered coprime pairs in a box have asymptotic density 6 over pi squared
Statement
Let be the number of ordered pairs of positive integers with and (Coprime integers: ). Then
for real .
Facts & Assumptions
Given: A real and .
Proof
Since is equivalent to , the count is unchanged if is replaced by . For there is exactly one coprime pair with , namely . For , the coprime pairs with are exactly with and , together with with and ; these two families are disjoint because is not coprime. Hence
Applying The summatory totient function is 3 over pi squared times x squared plus O(x log x) at gives Since , this is
The proportion of pairs in {1,...,n}^2 that are coprime tends to 6 over pi squared
Statement
For positive integers , the proportion of pairs in that are coprime tends to .
Facts & Assumptions
Given: A positive integer .
Proof
By Ordered coprime pairs in a box have asymptotic density 6 over pi squared, the number of coprime pairs in is
Dividing by the total number of ordered pairs gives and the error term tends to .
The two-square representation function r_2
Definition
For each positive integer , define
This counts order and signs separately, in the sense of Representations and primitive representations as sums of two squares.
Remarks
- The domain is the positive integers, because is being used here as an arithmetic function. In particular, is outside the present convention.
- The ordered-sign convention gives .
The normalized two-square count is multiplicative with the expected prime-power values
Statement
The arithmetic function is multiplicative. More precisely,
and
Facts & Assumptions
Given: A natural exponent , a prime , a prime , and coprime positive integers .
Proof
The ordered-sign representations of are and , so and therefore .
Write a positive integer as where the , the , and all listed primes are distinct. If some is odd and , write with . Repeatedly applying A prime congruent to modulo divides both coordinates of a divisible two-square sum shows that and , so . One more application of the same lemma forces and , hence , contradiction. Therefore whenever some is odd. If every is even, the cited Hackman theorem gives Applying this to , , and yields
Let . If , the prime supports of and are disjoint. If step 2.1 gives or , then some prime has odd exponent in one factor, hence still odd exponent in , so step 2.1 also gives . Otherwise every prime occurs to even exponent in both and , so also in , and the primes occurring in are exactly those occurring in one factor or the other, with the same exponents. Step 2.1 therefore factors the nonzero case as Together with from step 1.1, this is exactly the multiplicativity condition of Multiplicative arithmetic functions.
Steps 1.1, 2.1, and 3.1 prove the stated prime-power values and multiplicativity.
Remarks
- The load-bearing sourced input is Hackman Chapter K.III.1's exact formula for . Steps 2.1 and 3.1 use that formula, read in the library's ordered-sign convention, to obtain both the prime-power values and the multiplicativity statement.
The divisor formula for the two-square representation count
Statement
Define
and let and count the positive divisors of congruent to and modulo , respectively. Then for every positive integer ,
Facts & Assumptions
Given: A positive integer , coprime positive integers , and a prime-power input.
Proof
Put . If , every positive divisor of is uniquely of the form with and ; because odd residue classes modulo multiply and every even divisor has -value , one gets . Therefore so is multiplicative.
The prime-power values of are immediate from the definition: because only the divisor contributes; if , then every divisor is modulo , so ; and if , then the divisor residues alternate, so
By The normalized two-square count is multiplicative with the expected prime-power values, the function is multiplicative with exactly the same prime-power values as in step 2.1. Hence Multiplicative functions are determined by their prime-power values gives
Among the positive divisors of , the even ones contribute , the divisors congruent to modulo contribute , and the divisors congruent to modulo contribute . Thus , and step 3.1 gives the claimed formula for .
The average order of the two-square representation count is pi
Statement
For every real ,
Consequently the constant function is an average order of .
Facts & Assumptions
Given: A real , , and .
Proof
By The divisor formula for the two-square representation count, . Applying Dirichlet's hyperbola method for summatory convolutions with , , and gives
The values of repeat as , so every complete block of length has sum and every initial partial block has sum or . Hence uniformly in , and step 1.1 gives Also , so
Deleting the zero even terms identifies with a partial Gregory-Leibniz sum. Therefore The Gregory-Leibniz series: pi over four equals 1-1/3+1/5-1/7+... gives
Substituting step 3.1 into step 2.1 and then into step 1.1 yields Since , Summatory functions and average orders now says that the constant function is an average order of .
5 · Examples, counterexamples and false statements
None yet.