Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exact statements and proofs

The statements and arguments below are adapted from Haobo Ma and Wenlin Zhang’s version 2. Throughout, is an integer, is the least nonnegative remainder of modulo , counts primes at most , and is the -th prime.

Theorem 1.1 (Exact cubic exception set)WRITTEN PROOF

Let . This is the disjoint union of the primes with , the singleton if and , and the singleton if and . A singleton is omitted when its condition fails. Thus is finite and equals plus the two indicators (one if the condition holds, zero otherwise). Both corrections vanish when .

Proof

If , then . If and , the congruence below makes the remainder in the allowed range. For and the differences are and . Divisibility by in the first case is equivalent to ; divisibility by in the second is equivalent to . The extra exceptions occur only below the respective cubes, so none is counted twice. See Section 2 of the paper.

Lemma 1.2 (Glaisher's congruence)WRITTEN PROOF

For every positive integer and prime , , including when . This is Glaisher’s 1900 result; see Straub, Section 2.

Proof

All the denominators are invertible modulo powers of . Set . Inversion permutes the nonzero residues modulo , so by the sum of squares formula (its denominator is invertible). Pairing with gives . With we have . In the expansion of , terms of degree three and higher in vanish modulo , and the linear and quadratic terms vanish by the two cancellations. Only remains. No division by is needed. See Section 2.

Corollary 1.3 (Sharp growth threshold)WRITTEN PROOF

For integers and , if and only if . In particular, Noe’s stronger hypothesis implies the count bound.

Proof

Below only and can be exceptions. From onward the exceptions are exactly the primes whose cubes have been reached. The -th such event is for . The first primes lie among , so , and the nested-prime threshold is strictly larger. See Section 3.

Substituting into the correction terms also gives the two small count levels: iff ; iff or .

Corollary 1.4 (Least eventual good prime)WRITTEN PROOF

For every , the A222760 value exists and is the first prime greater than . For it is , but . When , it is .

Proof

Every prime after the last exception is good, whereas starting at or before the last exception still encounters it. If the set is empty, start at . At the witnesses are an initial segment of the primes. For they are or . Applying the two tests for leaves as the sole non-initial segment. See Section 3. The case uses the classical Wolstenholme congruence.

Corollary 1.5 (The two smaller moduli)WRITTEN PROOF

For the number of primes with is for and for .

Proof

For every odd prime the product above reduces to modulo . Pairing and gives , so the product also reduces to modulo . For , is divisible by . In either case the remainder equals when and is smaller than when . See Section 3 and the second Noe comment’s links to A000720 and A056811.

Corollary 1.6 (Prime-power counting in different forms)WRITTEN PROOF

For positive integers , set . It counts primes with , or primes with exponent at least in . For it also counts integers at most with exactly three positive divisors and gives the maximum size of a pairwise coprime collection of composite integers at most .

For , exactly when ; the zero interval is . As formal power series,

The series for is the right side for plus . For fixed , , and in particular , where means the ratio tends to .

Proof

The prime exponent in the least common multiple is the largest with . Exactly the prime squares have three divisors. Every composite at most has a prime factor at most ; pairwise coprimality makes these chosen primes distinct, and the prime squares attain the resulting bound. Consecutive prime powers give the intervals. Each prime power contributes one to every coefficient starting at , hence ; only finitely many primes contribute to any given coefficient. The two finite corrections give the extra cubic terms. Finally, substitute in the prime number theorem and use for . See Section 4 for the original credits for interpretations of A056811 and A000720.

What the Lean proof establishes

The existing Lean proof gives distinct prime exceptions for , , and . It does not show finiteness of the full set, lower the hypothesis to , or prove the converse. The fuller results above have written proofs in the paper. The sharp-threshold formalization request describes the remaining statement without re-requesting the original implication.