Cauchy sequence Created 2026-09-24 Updated 2026-10-14
A Cauchy sequence is a sequence whose sufficiently late terms are all close to one another. In a metric space , the precise condition is
For real numbers with their usual metric, . The useful feature is that the definition compares computed terms to other computed terms: it does not require an already known limit of a sequence. The one index must control every pair of later indices, not merely successive terms. [ref].
For an explicit example, take for . Its tail of a sequence beginning at lies in , and for every ,
Choose with to certify the entire future sequence. For , works because . The limit of a sequence is one, but the pairwise bound establishes the Cauchy sequence property without first needing that answer. By contrast, is not a Cauchy sequence: arbitrarily late even integers and odd integers give values separated by two. [ref].
Figure 1.
A Cauchy sequence confines every sufficiently late pair to a small band; persistent alternation cannot do so
. The original geometric example has all terms with in , a band narrower than . Only finitely many terms are drawn; the formula certifies the entire tail. The alternating example continues to attain both and arbitrarily late. Details.
Tiny successive changes do not provide this guarantee. For the harmonic numbers , the successive difference tends to zero, but
Thus, beyond every proposed , choosing and defeats the fixed tolerance . Even every fixed positive lag passes the weaker test: . The failing lag grows with , as explained more generally by convergence from arbitrary variable-lag increments. [ref].
Figure 2.
Harmonic numbers take vanishing successive steps while retaining a nonvanishing gap between indices and
. The blue curve is ; the red curve is . The exact lower bound holds for every positive integer , not just the plotted sample. The shaded region between and in the right panel illustrates how many individually small terms produce a substantial gap. Details.
Every convergent sequence in a metric space is a Cauchy sequence: apply the triangle inequality to two late terms and their common limit of a sequence. The reverse implication requires completeness. It holds in the real numbers by completeness of the real numbers, but can fail in the rational numbers: the rational endpoints from the bisection method approaching are a Cauchy sequence with no rational limit of a sequence. The existing construction in completeness of the real numbers shows how this happens. A Cauchy sequence is always a bounded sequence; in , boundedness gives a convergent subsequence by the Bolzano-Weierstrass theorem, and the pairwise condition forces the whole sequence to share its limit. [ref].
The Dirichlet hyperbola method gives , where . The harmonic number estimate , with the Euler's constant, yields . Substitution of gives the displayed asymptotic expansion. Comparison of with its integral consequently gives for integer .
For independent uniform points in a rectangle, condition on one point with normalized coordinates . It is a maximal external point if all others avoid the upper-right rectangle of area , giving conditional probability . Integrating gives , where is a harmonic number. Linearity of expectation over the indicator random variables gives . The same answer holds for independent continuous coordinate distributions, by transforming each coordinate with its distribution function.
Harmonic divisor sum Created 2026-10-06 Updated 2026-10-14
Write and . The weighted Dirichlet hyperbola method gives
Indeed, use and . The latter follows by comparing each summand with the integral on its unit interval: the derivative of has an integrable tail. Since , substitution yields the expansion. Here is the harmonic number and the Euler--Mascheroni constant.
Harmonic series Created 2026-09-24 Updated 2026-10-14
The harmonic series is the positive series
Its partial sums are the harmonic numbers . Although the individual terms tend to zero, grows without bound, so the harmonic series is not a convergent series. This is a basic warning against using the size of one term as a bound on all the terms still to come.
The growth is slow enough to be visually deceptive. The partial sums at are approximately . Adding ten times as many terms increases the accumulated total by roughly , rather than multiplying the total by ten. The telescoping series has similarly vanishing terms but approaches the finite sum one.
Figure 1.
Small terms can accumulate without bound or approach a finite sum
. The left panel compares the positive terms and on logarithmic scales. The right panel compares their partial sums against the number of terms on a logarithmic horizontal axis. The dashed curve is , a lower comparison for ; the horizontal line is the finite sum one of the telescoping series. Details.
A short block argument proves the divergence without trusting a finite plot. For each integer , the block from through contains terms, each at least . Therefore
Every doubling supplies at least another half, and arbitrarily many doublings are possible. A collection of tiny terms can still have a substantial combined contribution. See Jiří Lebl, Basic Analysis I, Example 2.5.11 for this grouping proof.
Integral comparison sharpens the growth estimate. Here denotes the natural logarithm. Since is a strictly decreasing function for positive , comparison of rectangles with the integral gives
Thus the divergence is logarithmic. The finer difference tends to the Euler--Mascheroni constant, approximately ; the harmonic number expansion supplies higher-order corrections. This turns the counterexample into a usable quantitative estimate of accumulated reciprocal contributions.
Euler's De progressionibus harmonicis observationes, written in 1734 and published in 1740, studies these sums beyond the yes-or-no question of convergence. Sections 2–3 compare long blocks to show continued growth, and later sections compare the sums with logarithms and calculate the constant offset. The [ref] identifies the dates and original publication; [ref] makes the calculations accessible. This is not a claim that Euler first discovered divergence: the paper's interest includes measuring how slowly a divergent sum grows.
For a nonnegative nonincreasing function , comparison with unit-width rectangles gives
On , the function is at most ; on , it is at least . Summing these inequalities gives the bounds. Applying them to gives for the harmonic numbers. Unlike a convergence verdict alone, the finite bounds estimate the size of a partial sum.
Partial sum Created 2026-09-24 Updated 2026-10-14
The th partial sum of a series with terms is the finite sum . It records the accumulated total after additions. The terms and their partial sums are different sequences: the terms of the harmonic series get small, while their partial sums grow without bound.
For the telescoping series with terms , the first three partial sums are
By contrast, the harmonic series gives , , and , where is the harmonic number. Computing more partial sums approximates an infinite sum only when a limit of a sequence exists, and the tail of a telescoping reciprocal series shows how an error estimate can certify the approximation.
The Selberg upper-bound sieve replaces an exact but long inclusion-exclusion expansion by a short nonnegative square, and then minimizes its main term. For an interval , the count of multiples of every integer is
Crucially the remainder bound is independent of .
Let and take real weights , supported on squarefree , with . If , the sum of these weights over divisors of is just one; for all other its square is nonnegative. Thus
Expanding and counting common multiples gives
This separates the local density from a uniform interval error. The weights will be chosen to minimize .
The Euler totient function identity yields the Selberg sieve diagonalization
Only squarefree occur. Inverting this finite triangular sum by Möbius inversion gives
Write . The Cauchy-Schwarz inequality gives , with equality at . The inverse formula then produces the optimal Selberg sieve weights
The constraints are satisfied, since the diagonal transformation is invertible and .
We need the leading constant, not just . Here is an elementary proof of the Selberg sieve denominator asymptotic. For define the multiplicative arithmetic function by
Checking the prime-local factors shows . Also : the local factors for absolute values differ from one by , and their logarithmic first moments sum . The signed local sums are all one, so absolute convergence gives . Using the harmonic number estimate,
For the last equality, is bounded and is bounded too.
The optimal Selberg weights have modulus at most one. To prove this here, for squarefree use . The product is the sum of over , , , with squarefree. All are distinct squarefree integers at most , and so these are a subset of the terms of . The displayed weight formula now gives . Consequently
Every prime in the interval exceeding survives the sieve; at most smaller primes must be restored. Choose . Then
and the uniform interval bound from optimal Selberg weights follows:
All constants are independent of . Given , make the absolute error in the coefficient smaller than by choosing large enough. Uniformly for every and ,
For each , let be the relative rank of among , with the smallest value assigned rank one. Then . The independent relative ranks of a uniform random permutation can be proved directly: for any choices , insert the index at position in the list of previous indices ordered by their values. After all insertions, assign the values along that list. This is a unique permutation with those relative ranks, and conversely every permutation yields one such insertion sequence.
There are possible insertion sequences, all equally likely because the uniform random permutation is uniform. Thus
The ranks are independent and each is uniform on its possible values. It follows that the independent record indicators have
The first indicator is the constant one, which is also independent of the others. For , additivity of expectation and variance additivity for independent random variables give
Here is the harmonic number.
Let be the year index of the second record. For , independence gives
The empty product for is one. There is no second record in the first years with probability
This exposes a finite-horizon qualification in the final request: a permutation of length alone does not specify when a record outside those years will occur. Under the usual continuation by an infinite sequence of independent, identically distributed observations with a continuous distribution, the same relative-rank argument holds for every finite prefix. Then for every , and . These probabilities sum to one, so the second record occurs almost surely, but
The expected number of additional years after year one, , is also infinite. This is the first-sample case of the waiting time for a new record after a fixed sample.
If instead one asks for the mean year conditional on the second record occurring within the stated years, then, for ,
The mean additional wait under that conditioning is this value minus one. These are distinct questions: assigning whenever no second record occurs in the finite horizon also gives an infinite unconditional mean, whereas a censored observation has finite expectation by the tail-sum formula for expectation.
Put . Comparing the harmonic number with an integral gives . By the fundamental theorem of arithmetic, the finite Euler product expands as the sum of over positive integers whose prime factors are at most . It therefore includes every term of , and
The first strict inequality is the geometric-series bound for the logarithmic remainder; the last uses the telescoping series . Thus the prime reciprocal lower bound is
Integrating the uniform density gives . By independence of random variables, . For the remaining expected value, integrate first in :
The value at is supplied by continuity. Therefore, with the harmonic number ,
Conditional on one sample point being , it is a maximal external point precisely when none of the other points falls in the upper-right rectangle . Its area is , so its conditional probability of being maximal is . Both and are independent uniform random variables, hence a given point is maximal with probability . Summing their indicator random variables and applying linearity of expectation gives the expected number of coordinatewise maxima:
This grows only logarithmically with the sample size, even though all points are potential candidates.
Write and let be the Identity for Dirichlet convolution. The Möbius function uses the empty-product convention ; the Von Mangoldt function has . We first establish all the arithmetic function identities needed below. Every integer divisor of contributes one to , so . If has distinct prime factors, the squarefree divisors correspond to their subsets and
At the sum is one. Thus . Writing , the only divisors with nonzero Von Mangoldt function are , and hence
The Dirichlet convolution is commutative by replacing with , and associative because either bracketing sums over . Consequently
These are consequences of the definitions, rather than unproved invocations of Möbius inversion.
To identify the constant, integrate on each interval :
The tail is , since the integrand is at most for . Summation therefore gives , where is the harmonic number, and . Thus this is Euler's constant.
Put . Counting pairs of positive integers whose product is at most , and subtracting the square counted twice, gives the Dirichlet hyperbola method identity
Since , the harmonic number estimate yields
The increasing natural logarithm also satisfies by comparison with its integral. Subtracting proves
For the second implication, denote the Mertens function by and the Second Chebyshev function by . Apply the proved Dirichlet convolution identities to :
Summing this identity over integers up to gives the exact relation
Fix an integer . The contribution to from has absolute value at most
For , group by . This gives exactly
under the assumed cancellation ; extending that assumption from integers to real uses . Therefore . Letting proves the prime number asymptotic from Mertens cancellation:
Every nonprincipal Dirichlet character modulo the prime is primitive, so its finite Fourier coefficients have modulus one off zero; the coefficient at zero is zero by character orthogonality. Fourier inversion theorem gives
The finite geometric series gives
The printed hint omits from the exponential; its literal constant summand would not obey the bound for arbitrary . The geometric-series calculation proves the needed estimate independently. Pairing with gives
The last sum is a harmonic number. This proves the Pólya–Vinogradov inequality uniformly in and ; complete blocks of length also vanish by Orthogonality of Dirichlet characters.
Finite rearrangement and the Von Mangoldt divisor identity give
For , integral comparison of the increasing logarithm gives . Moving to real changes the main term by . Thus the integrated Chebyshev sum has
For , choose
These are logarithmic Möbius function weights; they need not be upper-bound sieve weights. For , the Möbius inversion identities and give
Hence the expression suggested in the question is
We will use the elementary Möbius harmonic logarithmic moments, , for which
Here is a proof of the needed estimates. From , replacing floors by gives . Also , because . Substituting the permitted harmonic number estimate gives , so .
For , the weighted Dirichlet hyperbola method gives the harmonic divisor sum expansion
Explicitly, for , . Substitute the harmonic estimate and , obtained by unit-interval integral comparison. This proves the expansion without a prime-distribution theorem. Since , we have , and therefore
The summed error is bounded by , by integral comparison. Thus .
Finally substitute the asymptotic for into . The main term is
The error sum is : partition the integers into ; each interval contributes , and the resulting series converges. Using the moment estimates proves the Selberg symmetry formula:
In particular, the factor two comes from the quadratic logarithmic moment, rather than from an assumption of the Prime number theorem.
The Dirichlet hyperbola method counts each factorization once and gives, with ,
Using and the harmonic number estimate , where is the Euler--Mascheroni constant, we obtain
Thus one may take .
For , the harmonic number exceeds . The finite Euler product over the primes at most contains every summand of this harmonic number. Taking logarithms and applying the geometric-series bound for the logarithmic remainder bounds the total remainder by , proving the displayed bound.