Wiki
Wiki

Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.

Updated

Erdős 699: finite-range prime-pair certificates

P699 research · Erdős problem 699 · Small-index bounds · Interval certificates


For each pair in the table, let a,b≥0a,b\ge0 and u,v≥1u,v\ge1 be integers, and set

x=pau,y=qbv,h=min⁡(x,y).x=p^a u,\qquad y=q^b v,\qquad h=\min(x,y).

The exact certificate proves

max⁡(u,v)3≥hif∣x−y∣≤24,H≤h,max⁡(x,y)≤10976,(1)\boxed{\max(u,v)^3\ge h} \qquad\text{if}\qquad |x-y|\le24,\quad H\le h,\quad \max(x,y)\le10^{976}, \tag{1}

with the following thresholds. No coprimality or maximal-prime-power condition is imposed on u,vu,v.

p,qp,qHHExponent pairs after the safe filterExceptional minimal solutions with pa,qb>24p^a,q^b>24Largest exceptional hh
17,1917,1943334333202 191202\,1913343324332
2,172,1749 13149\,131859 352859\,352111149 13049\,130
11,2311,2326462646224 179224\,1791126452645
5,175,1734 37634\,376369 825369\,8253334 37534\,375
7,177,17319 334319\,334305 740305\,74044319 333319\,333
2,32,3510451042 215 2622\,215\,262303051035103
2,52,559 37659\,3761 512 3981\,512\,398323259 37559\,375
3,53,587 48187\,481953 347953\,347303087 48087\,480
3,73,758325832788 146788\,146121258315831
5,75,737513751538 090538\,0908837503750

The checker enumerates prime-power exponents and bounded differences. Its retained output contains all these exceptional minimal solutions and their heights. The calculation does not enumerate binomial rows or columns. It supplies stronger pair inequalities throughout an already bounded range, for use in a complete interval proof. This first table makes no assertion above 1097610^{976}; the longer range needed at index 21 is recorded separately below.

Why only minimal solutions need checking

Write P=paP=p^a, Q=qbQ=q^b, M=max⁡(u,v)M=\max(u,v), and more generally let the allowed difference be DD. The primes p,qp,q are distinct, so gcd⁡(P,Q)=1\gcd(P,Q)=1.

If min⁡(P,Q)≤D\min(P,Q)\le D, then M≥h/DM\ge h/D, and hence M3≥hM^3\ge h whenever h2≥D3h^2\ge D^3. For D=24D=24, every h≥118h\ge118 meets this condition. This also covers zero exponents. If x=yx=y, coprimality gives (u,v)=k(Q,P)(u,v)=k(Q,P) for a positive integer kk, so M2≥hM^2\ge h and again M3≥hM^3\ge h.

It remains to consider P,Q>DP,Q>D and a nonzero signed difference d=Pu−Qvd=Pu-Qv, with ∣d∣≤D|d|\le D. There is a unique solution

1≤u0<Q,u0≡dP−1(modQ),v0=Pu0−dQ.(2)1\le u_0<Q,\qquad u_0\equiv dP^{-1}\pmod Q,\qquad v_0=\frac{Pu_0-d}{Q}. \tag{2}

The assumptions P,Q>DP,Q>D imply 1≤v0<P1\le v_0<P. Every positive solution with this difference has the form

(u,v)=(u0+kQ,v0+kP),k≥0.(3)(u,v)=(u_0+kQ,v_0+kP),\qquad k\ge0. \tag{3}

For k≥1k\ge1, we have M≥max⁡(P,Q)M\ge\max(P,Q), whereas

h≤min⁡(P,Q)M≤M2≤M3.(4)h\le\min(P,Q)M\le M^2\le M^3. \tag{4}

Consequently only (u0,v0)(u_0,v_0) can violate (1). The minimal solution for −d-d is (Q−u0,P−v0)(Q-u_0,P-v_0), so testing the positive differences 1,…,D1,\ldots,D and these complementary solutions covers both signs.

Since P≤xP\le x and Q≤yQ\le y, the height cap bounds both prime powers. The retained calculation therefore includes every possible exponent: 793793 powers of 1717, 763763 of 1919, 32423242 of 22, 937937 of 1111, 716716 of 2323, 13961396 of 55, 11541154 of 77, and 20452045 of 33. Powers at most DD have already been handled uniformly. For all other powers the procedure tests the minimal solutions, retains only those with max⁡(x,y)≤10976\max(x,y)\le10^{976}, and records every failure of M3≥hM^3\ge h. The threshold HH is the larger of 118118 and one plus the largest recorded exceptional height. This proves (1).

The exceptional records can repeat a height when that height admits several prime-power decompositions. For example, 210⋅24=211⋅12=212⋅6=213⋅32^{10}\cdot24=2^{11}\cdot12=2^{12}\cdot6=2^{13}\cdot3 is checked in all four forms. The certificate requires no restriction that a chosen prime power be the full component of its integer.

Exact filters and modular inverses

Put A=max⁡(P,Q)A=\max(P,Q) and B=min⁡(P,Q)B=\min(P,Q). A violating solution satisfies

M3<h≤BM,h≥A−D.M^3<h\le BM,\qquad h\ge A-D.

Thus M2<BM^2<B, and necessarily

(A−D)2<B3.(5)(A-D)^2<B^3. \tag{5}

The program rejects an exponent pair only when integer bit lengths already prove the opposite inequality. If ℓ(z)\ell(z) denotes the bit length of a positive integer, then 2ℓ(z)−1≤z<2ℓ(z)2^{\ell(z)-1}\le z<2^{\ell(z)}. In particular,

2(ℓ(A−D)−1)≥3ℓ(B)⟹(A−D)2>B3.2(\ell(A-D)-1)\ge3\ell(B) \quad\Longrightarrow\quad (A-D)^2>B^3.

This is a sufficient rejection test; no approximation to logarithms is used. Similarly, u2≥Pu^2\ge P proves u3≥Pu≥hu^3\ge Pu\ge h, and v2≥Qv^2\ge Q proves v3≥Qv≥hv^3\ge Qv\ge h. The first test is sometimes settled immediately by the safe bit-length comparison 2(ℓ(u)−1)≥ℓ(P)2(\ell(u)-1)\ge\ell(P); otherwise the program multiplies the integers exactly.

For a fixed QQ, all inverses of successive powers of pp are computed without repeated extended Euclidean calculations. Start with I=1I=1, the inverse of p0p^0 modulo QQ. Choose 0≤k<p0\le k<p so that I+kQI+kQ is divisible by pp, and replace

I⟵I+kQp.(6)I\longleftarrow\frac{I+kQ}{p}. \tag{6}

If the old II is the inverse of pa−1p^{a-1}, (6) is the inverse of pap^a modulo QQ. Moreover 1≤I<Q1\le I<Q is preserved. The recurrence is performed for every exponent, including powers skipped because they are at most DD.

Use in the interval proof

For an index i≤25i\le25, choose maximal positions rp,rqr_p,r_q in {0,…,i−1}\{0,\ldots,i-1\} and write

n−rp=Ppup,n−rq=Pquq.n-r_p=P_pu_p,\qquad n-r_q=P_qu_q.

Their difference is at most 2424, their smaller height is at least n−i+1n-i+1, and their larger height is at most nn. Therefore (1) gives

max⁡(up,uq)≥(n−i+1)1/3forH+i−1≤n≤10976.(7)\max(u_p,u_q)\ge(n-i+1)^{1/3} \quad\text{for}\quad H+i-1\le n\le10^{976}. \tag{7}

Equivalently, putting zp=log⁡up/log⁡(n−i+1)z_p=\log u_p/\log(n-i+1), the pair contributes the exact constraint max⁡(zp,zq)≥1/3\max(z_p,z_q)\ge1/3. These constraints can be combined with the existing prime-pair inequalities when bounding the small-prime part of (ni)\binom ni throughout an integer interval. Coincident maximal positions are included by the x=yx=y argument above.

The finite-range inequalities and an independently established infinite tail have separate roles: the tail bounds the remaining rows by 1097610^{976}, and (7) strengthens the inequalities used to exclude intervals inside that bound. This note alone does not assert the completion of any particular interval partition.

To reproduce the ten certificates from the repository root:

sh
.venv/bin/python wiki/research/erdos_699/computations/erdos_699_finite_prime_pairs.py --cap 976 --difference 24

The longer range for index 21

The same proof and checker also cover differences at most 2020 and heights at most 10173210^{1732}. The second retained certificate gives the following lower thresholds HH:

PairHH
17,1917,1943334333
2,172,1724 56624\,566
5,175,1734 37634\,376
7,177,17319 334319\,334
2,32,351045104
2,52,559 37659\,376
3,53,587 48187\,481
3,73,758325832
5,75,713731373
11,1311,1343 92443\,924

Thus every edge in this second table applies to the selected numerator positions of an index-21 row whenever 319 354≤n≤101732319\,354\le n\le10^{1732}. The common interval cutoff 1 771 5951\,771\,595 is larger and also accommodates the original explicit BFT table. Reproduce this second table under the ignored repository tmp/ with:

sh
mkdir -p tmp/erdos699
.venv/bin/python wiki/research/erdos_699/computations/erdos_699_finite_prime_pairs.py \
  --pairs 17,19 2,17 5,17 7,17 2,3 2,5 3,5 3,7 5,7 11,13 \
  --cap 1732 --difference 20 \
  --output tmp/erdos699/erdos_699_finite_prime_pairs_21.json

Compare the regenerated file with the retained one on its mathematical fields; elapsed times differ between runs.

Completing the five-prime graph for index 13

Five further certificates cover differences at most 1212 and heights at most 10173210^{1732}:

PairHH
2,72,739 059 45739\,059\,457
2,112,111 376 2551\,376\,255
3,113,1130 61430\,614
5,115,11364364
7,117,11243243

Combine these with the five pairs among 2,3,5,72,3,5,7 already present in the index-21 table. The resulting ten edges form the complete graph on {2,3,5,7,11}\{2,3,5,7,11\}. All its one-third cofactor constraints hold for an index-13 row whenever 39 059 469≤n≤10173239\,059\,469\le n\le10^{1732}.

The retained extra certificates are reproduced under the ignored repository tmp/ by:

sh
mkdir -p tmp/erdos699
.venv/bin/python wiki/research/erdos_699/computations/erdos_699_finite_prime_pairs.py \
  --pairs 2,7 2,11 3,11 5,11 7,11 --cap 1732 --difference 12 \
  --output tmp/erdos699/erdos_699_finite_prime_pairs_13_extra.json

Compare the regenerated file with the retained one on its mathematical fields; elapsed times differ between runs.