The gap exponent for primitive equal-divisor-sum semiprimes and the unique consecutive pair
PDF built from iis-2612-00581.tex sha256 97ca7534779d… by the site's TeX builder, 2026-12-01 03:01 UTC.
For every fixed positive α at most one, the number of equal-divisor-sum pairs of squarefree semiprimes below X with gap at most X^α has exponent min(1, 1/2+α). A constant times log³ X already gives exponent 1/2. Odd gaps have a complete elementary parametrization, and (14,15) is the only consecutive pair. The two numbers in each pair are coprime and primitive.
How close can two products of two primes be if they have the same sum of divisors? Only 14 and 15 can be consecutive. Even so, at every sufficiently large cutoff there are many pairs separated by only a power of the logarithm. A four-corner arrangement counts them and explains why odd gaps behave differently.
2 numbered results: 2 that name no Lean theorem, so we cannot tell which the receipt covers.
- erdos824_rectangles.py sha256 6050b5799a1b…
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
Write \(S(X,H)\) for the number of unordered pairs \(1<a<b<X\) of squarefree semiprimes with equal sums of positive divisors and \(b-a\le H\). These pairs are coprime. A common prime would cancel from the two divisor sums and force equality of their other primes. Each pair is also primitive in Weisenberg’s sense since its nontrivial proper divisors on opposite sides are distinct primes. The earlier paper counted a subfamily from one row of shifted primes. Allowing two rows gives a parametrization of every pair.
Theorem 1. no Lean name given For every fixed \(0<\alpha\le1\),$$\lim_{X\to\infty}\frac{\log S(X,X^\alpha)}{\log X}=\min(1,\tfrac12+\alpha).$$For an absolute \(K\) the same limit exists and equals \(1/2\) when the gap allowance is \(K(\log X)^3\). In particular these lower bounds hold at every sufficiently large cutoff. The polylogarithmic allowance is a sufficient one.
Theorem 2. no Lean name given An odd gap \(g=b-a\) forces \(b\le9g+6\). All such pairs arise from positive odd \(d,e\) with \(de=g\), both \(e+2\) and \(3d+2\) distinct primes, and \((d+1)(e+3)-1\) prime. The two numbers are$$a=2((d+1)(e+3)-1),\qquad b=(e+2)(3d+2).$$In particular \((14,15)\) is the only consecutive pair in this family. Their common divisor sum is 24. Noe’s OEIS A180328 already lists them as its first two entries.
Parametrization. For equal-sum squarefree semiprimes the four shifted prime factors have equal diagonal products \(AD=BC\). The smallest shift is strictly smaller than both shifts on the opposite side and pairs with the largest shift. Write the four entries as \(A=su,B=sv,C=tu,D=tv\) with \(s<t,u<v\). This follows by taking \(s=\gcd(A,B)\), dividing the top row by \(s\) and using Euclid’s lemma. The factorization can be normalized by taking \(B<C\) and \(\gcd(u,v)=1\). Then$$a=(su-1)(tv-1),\qquad b=(sv-1)(tu-1),\qquad b-a=(t-s)(v-u).$$In particular the smaller integer contains the smallest and largest primes. Conversely four distinct primes arranged this way give such a pair.
Upper bound. Put \(d=t-s\) and \(e=v-u\). Then \(de\le H\) and \(su\le1+\sqrt X\), because \((su-1)^2\le a\). For specified \(s,u,d,e\) the pair is determined. Summing \(\lfloor Z/j\rfloor\) over \(j\le Z\) bounds the number of positive ordered pairs of product at most \(Z\) by \(O(Z\log(2Z))\). Hence$$S(X,H)\ll\sqrt X\, H\log(2X)\log(2H).$$Also \(S(X,X)\le X^{1+o(1)}\). For each \(a\), a partner \(b=qr\) with \(q<r\) is specified by the divisor \(q+1\) of \(\sigma(a)\le4X\), and \(\tau(n)\ll_\epsilon n^\epsilon\).
Enough prime entries. Write \(L=\log X\). For a sufficiently large absolute constant \(C_0\) let \(M=\lceil C_0L^2\rceil\), \(U=\lfloor\sqrt X/(8M)\rfloor\). Use all integer rows \(M\le s<2M\) and columns \(U\le u<2U\). Mark a cell if \(su-1\) is prime. The number \(E\) of marked cells exceeds \(cMU/L\) for an absolute \(c>0\). Indeed for \(M\le s\le5M/4\) every prime \(p\equiv-1\pmod{s}\) in \((3MU/2,7MU/4]\) yields a column \((p+1)/s\) in range. The Siegel–Walfisz theorem for \(s\ll L^2\) gives \(\gg MU/(\varphi(s)L)\gg U/L\) such primes uniformly. For example its absolute error with exponent 6 at the two endpoints is smaller than the main term. The leading lower constant can be fixed before choosing \(C_0\), since \(M\le L^3\) eventually for each fixed \(C_0\). This proof uses neither a conjecture on prime tuples nor distribution in short intervals.
Two applications of Cauchy–Schwarz. Partition the columns into \(J=\lceil U/w\rceil\) consecutive blocks of width at most \(w\), where \(C_1L\le w\le U/(4M)\) and \(C_1\) is sufficiently large. For a finite family of \(n\) nonnegative integer degrees of total \(D\ge2n\), the sum of their binomial coefficients of order two is at least \(D^2/(4n)\).
First apply this to the \(MJ\) row-block degrees. The average exceeds two for our choice of \(C_1\). There are at least \(T\gg MUw/L^2\) unordered pairs of marked columns in a single row and block, counted with row multiplicity. Next group these occurrences by the unordered column pair. There are at most \(Uw\) such groups, with total degree \(T\). Since \(M\ge C_0L^2\), choosing \(C_0\) sufficiently large makes the second average at least two. The second application gives at least$$R\gg M^2 U w/L^4$$rectangles with four marked corners. For rows \(s<t\) and columns \(u<v\) in such a rectangle, \(s(v-u)<2Mw\le U/2<(t-s)u\), so \(su<sv<tu<tv\). All four primes are distinct. Their products are below \(X\) and their gap is at most \(Mw\).
Multiplicity and scale. For a resulting pair the four shifted primes are recovered in increasing order. Specifying \(d=t-s\) recovers \(u=(tu-su)/d\), then \(s,t,v\). Thus a pair of gap \(g\) occurs at most \(\min(M,\tau(g))\) times. For \(K L^3\le H\le U/4\) take \(w=\lfloor H/M\rfloor\). For a suitable absolute \(K\) this gives$$S(X,H)\gg \frac{\sqrt X\,H}{L^4\min(M,\max_{g\le H}\tau(g))}.$$For \(H=X^\alpha\) with \(0<\alpha<1/2\), the loss is at most \(O(L^6)\) in the denominator of \(\sqrt XH\). For \(\alpha\ge1/2\) use monotonicity at \(H=\lfloor U/4\rfloor\) to get \(S(X,X^\alpha)\gg X/L^8\). At \(H=K L^3\) the bound \(\max_{g\le H}\tau(g)=L^{o(1)}\) gives \(S(X,H)\ge\sqrt X/L^{1+o(1)}\). The upper estimates complete Theorem 1.
Odd gaps. If the products have opposite parity, one of the four primes is 2. Its shifted value 3 is the smallest corner, hence \(su=3\). Transposing if necessary gives \(s=1,u=3\). Substitution gives exactly Theorem 2. For \(de=g\) positive, \(d+e\le g+1\) and \(d\le g\), so \(b=3g+6d+2e+4\le9g+6\). For \(g=1\) the only choice is \(d=e=1\).
Fixed even gaps. Under Dickson’s prime-tuples conjecture every positive even \(g\) recurs infinitely often in this same family. Fix \(d=1,e=g,u=6\) and vary \(s\). The four forms are \(6s-1,(6+g)s-1,6(s+1)-1,(6+g)(s+1)-1\). They are admissible: at 2 all are odd, at 3 the first and third are nonzero and the other two exclude at most two classes, and a prime greater than 3 has at least five classes and at most four forbidden ones. Each coefficient pair is coprime and the forms are distinct. Their prime values are pairwise distinct for all sufficiently large \(s\). The unconditional logarithmic-gap proof allows the particular gap to vary.
Verification and context. The attached project locally compiled with Lean 4.34.1. Its public declarations include Erdos824Primitive.rectangle_parameters, Erdos824Primitive.rectangle_gap, Erdos824Primitive.semiprime_counting_parameters, Erdos824Primitive.two_stage_collision_bound, Erdos824Primitive.odd_gap_bound_of_semiprimes and Erdos824Primitive.unique_consecutive_semiprimes. They use the three standard axioms. The last two quantify over arbitrary products of two distinct primes. The incidence density, its use of Siegel–Walfisz, and the asymptotic limit are the written proof above. The pairing of shifted factors is also related to Pollack’s two-prime argument in Lemma 1 of his paper on divisor-sum fibers. Erdős studied high multiplicity for the opposite shift in his 1936 paper on totients of semiprimes.
The independent checker recovered a normalized rectangle for all 193,467 unordered equal-sum pairs below one million. The odd-gap formula reproduced all 24,868 odd-gap pairs. A second enumeration by gap and rectangle parameters agreed on all 463 pairs at gaps at most 25. For the exact gap two there are 13 pairs below one million and 1,736 below one trillion. The largest of the latter is \(998789396987=991493\cdot1007359\) and \(998789396989=991619\cdot1007231\). These finite counts supply reproducible checks of the parameters and the parity split.
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.34.1 · Mathlib d13f23b
- 6/6 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 83 s
- 15 declarations
How close can two products of two primes be if they have the same sum of divisors? Only 14 and 15 can be consecutive. Even so, at every sufficiently large cutoff there are many pairs separated by only a power of the logarithm. A four-corner arrangement counts them and explains why odd gaps behave differently.
Erdos824Primitiverectangle_parameters6 lines
∀ {A B C D : ℕ},0 < A →A < B →A < C →A * D = B * C →∃ s t u v, 0 < s ∧ 0 < u ∧ s < t ∧ u < v ∧ u.Coprime v ∧ A = s * u ∧ B = s * v ∧ C = t * u ∧ D = t * v
rectangle_gap2 lines
∀ {s t u v P Q R T : ℕ},s ≤ t → u ≤ v → P + 1 = s * u → Q + 1 = s * v → R + 1 = t * u → T + 1 = t * v → Q * R = P * T + (t - s) * (v - u)
semiprime_counting_parameters13 lines
∀ {a b : ℕ},ProductOfTwoDistinctPrimes a →ProductOfTwoDistinctPrimes b →a < b →(ArithmeticFunction.sigma 1) a = (ArithmeticFunction.sigma 1) b →∃ s u d e,0 < s ∧0 < u ∧0 < d ∧0 < e ∧d * e = b - a ∧(s * u - 1) ^ 2 ≤ a ∧a = (s * u - 1) * ((s + d) * (u + e) - 1) ∧ b = (s * (u + e) - 1) * ((s + d) * u - 1)
two_stage_collision_bound6 lines
∀ {ι : Type u_1} {κ : Type u_2} (S : Finset ι) (V : Finset κ) (d : ι → ℕ)(c : κ → ℕ),2 * ↑S.card ≤ ∑ i ∈ S, ↑(d i) →2 * ↑V.card ≤ ∑ j ∈ V, ↑(c j) →∑ i ∈ S, ↑(d i) * (↑(d i) - 1) / 2 = ∑ j ∈ V, ↑(c j) →(∑ i ∈ S, ↑(d i)) ^ 4 ≤ 64 * ↑S.card ^ 2 * ↑V.card * ∑ j ∈ V, ↑(c j) * (↑(c j) - 1) / 2
odd_gap_bound_of_semiprimes4 lines
∀ {a b : ℕ},ProductOfTwoDistinctPrimes a →ProductOfTwoDistinctPrimes b →a < b → (ArithmeticFunction.sigma 1) a = (ArithmeticFunction.sigma 1) b → (b - a) % 2 = 1 → b ≤ 9 * (b - a) + 6
unique_consecutive_semiprimes4 lines
∀ {a b : ℕ},ProductOfTwoDistinctPrimes a →ProductOfTwoDistinctPrimes b →(ArithmeticFunction.sigma 1) a = (ArithmeticFunction.sigma 1) b → b = a + 1 → a = 14 ∧ b = 15
Erdos824Primitive.ProductOfTwoDistinctPrimesPropErdos824Rectangle.lean:133
/-- A squarefree semiprime has precisely two distinct prime factors. -/def ProductOfTwoDistinctPrimes (a : ℕ) : Prop :=∃ p q : ℕ, p.Prime ∧ q.Prime ∧ p < q ∧ a=p*q
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2612-00581.pdf | 269 kB | sha256 ab4a14dc8a51a19e… .ots |
erdos824-rectangle-lean.zip6 files inside, 49 kB unpacked
| 15 kB | sha256 cd676c23ca63a4dc… .ots |
| erdos824_rectangles.py | 5 kB | sha256 6050b5799a1be9bb… .ots |
References
- Erdős problem 824 and its squarefree and primitive variants
- T. D. Noe, OEIS A180328, semiprimes sharing a divisor sum with a different semiprime
- Kontorovich, Levels of Distribution and the Affine Sieve, Siegel–Walfisz estimate (2.5)
- Pollack, Remarks on fibers of the sum-of-divisors function, Lemma 1 and the statement of Dickson’s conjecture
- Erdős, On the integers which are the totient of a product of two primes (1936), opposite-shift historical comparison
- Independent build record for six finite Lean theorems