betaFeedback

WorksMathematics

Every friend of 10 has at least eleven distinct prime factors

Abstract

A friend of 1010 is a positive integer N≠10N\neq 10 such that σ(N)/N=σ(10)/10=9/5σ(N)/N=σ(10)/10=9/5. Whether one exists is an open problem. Thackeray proved that a friend of 1010 has at least 1010 distinct prime factors. We describe a computer-assisted proof that it has at least 1111. The proof is an exhaustive search over sets of primes, carried out by a recursive certifier written in PARI/GP, which extends the open-source project caioross/solitary10. The new ingredients are a split of ``almost tight'' nodes that avoids enumerating the smallest unknown prime, a treatment of nodes with three or more unknown primes by a saturation dichotomy, a counting rule for unfactored cofactors of cyclotomic values, and the correction of a soundness gap in the earlier closure rule. The certification run for ω=10ω=10 visited 157,210,962157{,}210{,}962 nodes in 11.411.4 hours on 1212 threads. As a consequence, a friend of 1010 would be larger than 103810^{38}.

Introduction

For a positive integer nn let σ(n)\sigma(n) be the sum of its divisors and I(n)=σ(n)/nI(n) = \sigma(n)/n its abundancy index. Two distinct integers are friends if they have the same abundancy index; an integer with no friend is solitary. The smallest integer whose status is unknown is 10, with I(10)=9/5I(10) = 9/5.

Earlier results

Earlier results. Ward [1] showed that a friend NN of 10 is an odd square, that its least prime factor is 5, that 3∤N3 \nmid N and that NN has at least 6 distinct prime factors. Thackeray [2] proved that NN has at least 10 distinct prime factors, using a bound on the exponents of the known primes (his Corollary 6 and Proposition 9, which we will extend in this paper). Necessary conditions and bounds on the individual prime divisors of NN are studied in [3, 5, 6]; [4] treats the analogous question for 20. To our knowledge (as of 11 November 2026) no bound beyond Thackeray’s has been announced in the literature.

The project solitary10 [7] is an open-source Python implementation of a recursive certifier for the statement “no friend of 10 has exactly kk distinct prime factors”. It re-derives Ward’s theorems, eliminates k≤8k \le8, and documents the node at which the method stops for k=9k = 9. Our computational work starts from that code and its documentation, after correcting a closure rule that was unsound (see § 7).

Results

Results. Write ω(N)\omega(N) for the number of distinct prime factors of NN.

Theorem 1.1. If σ(N)/N=9/5\sigma(N)/N = 9/5 and N≠10N \ne10, then ω(N)≥11\omega(N) \ge11.

Combined with an exhaustive bounded search (§ 9) this gives:

Corollary (see Corollary 9.1). Every friend of 10 is larger than 103810^{38}.

The proof of Theorem 1.1 consists of the application of mathematical rules described in § 3–§ 7, each of which removes only configurations that contain no friend of 10, and of a computation (§ 8) that applies them until nothing is left for ω(N)=k\omega(N)=k, 1≤k≤101 \le k \le10.

§ 2 fixes the notation and collects the elementary facts used throughout, with proofs. § 3 defines the nodes of the search tree, what it means for a rule to be sound, and proves the index lemma, which is the source of every size bound. § 4 recalls the rules inherited from [7]. § 5 and § 6 state and prove the new rules. § 7 describes the corrected closure rule. § 8–§ 10 describe the computations and their verification.

Notation and elementary facts

Notation

Throughout, pp, qq, rr, uu and UU (with or without indices) denote primes, and ℓ\ell is used for the lower bound of a node as defined in § 3. When ℓ\ell denotes a prime (in the budgets of § 4) we say so explicitly.

SymbolMeaning
σ(n)\sigma(n)sum of the positive divisors of nn
I(n)I(n)abundancy index σ(n)/n\sigma(n)/n
ω(n)\omega(n)number of distinct prime factors of nn
vr(x)v_r(x)exponent of the prime rr in the rational number x≠0x \ne0
ord⁡q(p)\operatorname{ord}_q(p)multiplicative order of pp modulo the prime q∤pq \nmid p
Φd(x)\Phi_d(x)dd-th cyclotomic polynomial
sup⁡(p)\operatorname{sup}(p)p/(p−1)p/(p-1), the limit of I(pa)I(p^a) as a→∞a \to\infty
NNa friend of 10: σ(N)/N=9/5\sigma(N)/N=9/5, N≠10N \ne10
SSthe set of prime factors of NN; N=∏p∈SpapN=\prod_{p\in S}p^{a_p}
apa_pthe exponent of p∈Sp\in S in NN
⌊x⌋\lfloor x\rfloorthe largest integer ≤x\le x
(x,y](x,y]the set of integers nn with x<n≤yx<n\le y (or the primes in it, when listing primes)

Table 1.

For a prime pp and a≥1a\ge1 we write I(pa)=σ(pa)/paI(p^a)=\sigma(p^a)/p^a. Note that sup⁡(p)\operatorname{sup}(p) is defined for every integer p≥2p\ge2 by the same formula, and we use it for integers as well.

Facts about the abundancy index

Lemma 2.1. Let n,m≥1n,m\ge1 and let p≥2p\ge2 be an integer.

(i) I(n)=∑d∣n1/dI(n)=\sum_{d\mid n}1/d.

(ii) If gcd⁡(n,m)=1\gcd(n,m)=1 then I(nm)=I(n)I(m)I(nm)=I(n)I(m).

(iii) For a≥1a\ge1, I(pa)=1+p−1+⋯+p−a=pa+1−1pa(p−1)I(p^a)=1+p^{-1}+\cdots+p^{-a}=\frac{p^{a+1}-1}{p^a(p-1)}; it is strictly increasing in aa and strictly smaller than sup⁡(p)\operatorname{sup}(p).

(iv) For a real number B>1B>1, let sup⁡(B)=1+1B−1\operatorname{sup}(B)=1+\frac{1}{B-1} and, by a harmless abuse of notation, I(B2)=1+1B+1B2I(B^2)=1+\frac{1}{B}+\frac{1}{B^2}; when BB is a prime these agree with the definitions above, and they are only ever evaluated at bounds for primes. Both are strictly decreasing functions of BB, and I(B2)<sup⁡(B)I(B^2)<\operatorname{sup}(B).

Proof. (i) The map d↦n/dd\mapsto n/d is a bijection of the set of divisors of nn onto itself, so σ(n)=∑d∣nd=∑d∣nn/d=n∑d∣n1/d\sigma(n)=\sum_{d\mid n}d=\sum_{d\mid n}n/d=n\sum_{d\mid n}1/d. (ii) When gcd⁡(n,m)=1\gcd(n,m)=1, every divisor of nmnm is uniquely a product dede with d∣nd\mid n, e∣me\mid m, so ∑f∣nm1/f=∑d∣n1/d⋅∑e∣m1/e\sum_{f\mid nm}1/f=\sum_{d\mid n}1/d\cdot\sum_{e\mid m}1/e. (iii) The divisors of pap^a are 1,p,…,pa1,p,\ldots,p^a; the closed form is the geometric sum. Each increase of aa adds the positive term p−a−1p^{-a-1}, and the infinite sum is 1/(1−1/p)=sup⁡(p)1/(1-1/p)=\sup(p). (iv) Both expressions decrease as BB grows, and sup⁡(B)=∑j≥0B−j>1+1/B+1/B2\sup(B)=\sum_{j\geq0}B^{-j}>1+1/B+1/B^2.

Ward's theorem and its consequences

Theorem W (Ward). ([1]). Let NN be a friend of 10. Then NN is an odd square, its least prime factor is 5, and 3∤N3\nmid N. Equivalently, N=∏p∈SpapN=\prod_{p\in S}p^{a_p} with min⁡(S)=5\min(S)=5 and every apa_p even and at least 2.

We use Theorem W as an established result. The following consequences are elementary.

Lemma 2.2 (Product equation, valuations, closure). Let NN be a friend of 10. Then

95=∏p∈SI(pap),(1)\frac{9}{5}=\prod_{p\in S}I(p^{a_p}), \tag*{(1)}
v3(σ(N))=2,v5(σ(N))=a5−1,vr(σ(N))=ar(r∈S, r≠5),(2)v_3(\sigma(N))=2,\qquad v_5(\sigma(N))=a_5-1,\qquad v_r(\sigma(N))=a_r\quad(r\in S,\ r\ne5), \tag*{(2)}

and every prime factor of σ(pap)\sigma(p^{a_p}), for every p∈Sp\in S, lies in S∪{3}S\cup\{3\}.

Proof. Equation (1) is I(N)=9/5I(N)=9/5 together with Lemma 2.1(ii). From 5σ(N)=9N5\sigma(N)=9N we get σ(N)=32⋅5−1⋅N\sigma(N)=3^2\cdot5^{-1}\cdot N, and since 3∉S3\notin S this gives (2). Every prime factor of σ(N)=9N/5\sigma(N)=9N/5 is therefore 3 or a prime of NN. Finally σ\sigma is multiplicative, so σ(N)=∏p∈Sσ(pap)\sigma(N)=\prod_{p\in S}\sigma(p^{a_p}), and each prime factor of a factor σ(pap)\sigma(p^{a_p}) divides σ(N)\sigma(N).

Cyclotomic values

The polynomial identity xn−1=∏d∣nΦd(x)x^n-1=\prod_{d\mid n}\Phi_d(x) gives, for a prime pp and a≥1a\geq1,

σ(pa)=pa+1−1p−1=∏d∣a+1d>1Φd(p).(3)\sigma(p^a)=\frac{p^{a+1}-1}{p-1}=\prod_{\substack{d\mid a+1\\d>1}}\Phi_d(p). \tag*{(3)}

For a friend of 10, every apa_p is even, so ap+1a_p+1 is odd and only odd dd occur in (3). A prime qq dividing Φd(p)\Phi_d(p) is called primitive if ord⁡q(p)=d\operatorname{ord}_q(p)=d.

Lemma 2.3. Let pp be a prime, d≥1d\geq1, and q≠pq\ne p a prime dividing Φd(p)\Phi_d(p). Then d=ord⁡q(p)⋅qed=\operatorname{ord}_q(p)\cdot q^e for some e≥0e\geq0. In particular: if qq is primitive then q≡1(modd)q\equiv1\pmod d; if qq is not primitive then q∣dq\mid d; and a prime dividing both Φd(p)\Phi_d(p) and Φd′(p)\Phi_{d'}(p) with d≠d′d\ne d' divides dd′dd'.

Proof. The first statement is a standard property of cyclotomic polynomials (see e.g. [8]). If ord⁡q(p)=d\operatorname{ord}_q(p)=d then d∣q−1d\mid q-1 by Fermat’s little theorem. If e≥1e\geq1 then q∣dq\mid d. If qq divides Φd(p)\Phi_d(p) and Φd′(p)\Phi_{d'}(p) with d≠d′d\ne d', then d=ord⁡q(p)qed=\operatorname{ord}_q(p)q^e and d′=ord⁡q(p)qe′d'=\operatorname{ord}_q(p)q^{e'} with e≠e′e\ne e'. Since e,e′≥0e,e'\geq0 are integers, it follows that max⁡(e,e′)≥1\max(e,e')\geq1 so qq divides at least the larger of d,d′d,d'.

Theorem Z (Zsigmondy). ([8]). Let a>b≥1a>b\geq1 be coprime integers and n≥1n\geq1. Then an−bna^n-b^n has a prime factor that divides no ak−bka^k-b^k with 1≤k<n1\leq k<n (a primitive prime divisor), except in the following cases: n=1n=1 and a−b=1a-b=1; n=2n=2 and a+ba+b is a power of 2; (a,b,n)=(2,1,6)(a,b,n)=(2,1,6).

We use it in the following form.

Lemma 2.4. Let p≥5p\geq5 be a prime and d≥3d\geq3 an integer. Then Φd(p)\Phi_d(p) has a primitive prime factor, that is, a prime qq with q∣Φd(p)q\mid\Phi_d(p) and ord⁡q(p)=d\operatorname{ord}_q(p)=d.

Proof. Apply Theorem Z with a=pa=p, b=1b=1 and n=dn=d; these are coprime and a>ba>b. None of the exceptional cases occurs: n=d≥3n=d\geq3 excludes the first two, and a=p≥5a=p\geq5 excludes (2,1,6)(2,1,6). So pd−1p^d-1 has a prime factor qq that divides no pk−1p^k-1 with 1≤k<d1\leq k<d. In particular q≠pq\ne p, since pp does not divide pd−1p^d-1, so ord⁡q(p)\operatorname{ord}_q(p) is defined.

From q∣pd−1q \mid p^d-1 we get ord⁡q(p)∣d\operatorname{ord}_q(p) \mid d. If ord⁡q(p)=k<d\operatorname{ord}_q(p)=k<d, then q∣pk−1q \mid p^k-1, which is excluded. Hence ord⁡q(p)=d\operatorname{ord}_q(p)=d.

By the identity xn−1=∏k∣nΦk(x)x^n-1=\prod_{k\mid n}\Phi_k(x) used in (3), pd−1=∏k∣dΦk(p)p^d-1=\prod_{k\mid d}\Phi_k(p), so the prime qq divides Φk(p)\Phi_k(p) for some k∣dk\mid d. If k<dk<d, then Φk(p)\Phi_k(p) divides pk−1p^k-1, so q∣pk−1q\mid p^k-1, which is again excluded. Hence k=dk=d, and qq is a primitive prime factor of Φd(p)\Phi_d(p).

By Lemma 2.3, primitive primes for different dd are different. Hence:

Corollary 2.5. For a friend NN of 10 and p∈Sp\in S, each divisor d>1d>1 of ap+1a_p+1 provides a prime qd∈Sq_d\in S such that qd≡1(modd)q_d\equiv1\pmod{d}, and different divisors provide different primes.

Proof. Lemma 2.4 gives a primitive prime qdq_d of Φd(p)\Phi_d(p); it divides σ(pap)\sigma(p^{a_p}) by (3), so qd∈S∪{3}q_d\in S\cup\{3\} by Lemma 2.2; qd≡1(modd)q_d\equiv1\pmod{d} with d≥3d\ge3 excludes qd=3q_d=3; and ord⁡qd(p)=d\operatorname{ord}_{q_d}(p)=d determines dd.

A lemma on fractions

The following trivial fact is used several times; we state it to make the later proofs explicit.

Lemma 2.6 (Denominator lemma). Let x=A/Dx=A/D with integers AA and D≥1D\ge1 (not necessarily in lowest terms). If x>1x>1 then x≥1+1/Dx\ge1+1/D.

Proof. x>1x>1 means A>DA>D, so A≥D+1A\ge D+1.

Nodes, soundness and the index lemma

Nodes

The certifier proves, for one value of kk at a time, that no friend of 10 has exactly kk distinct prime factors. It does so by exploring a tree of nodes, each describing a set of possible friends.

Definition 3.1 (Node). A node N=(C,s,ℓ,F,m,M,κ)\mathcal{N}=(C,s,\ell,F,m,M,\kappa) consists of:

  • a finite set CC of primes (with at least 5∈C5\in C), the known primes;

  • an integer s≥0s\ge0, the number of unknown primes;

  • an integer ℓ≥5\ell\ge5, the lower bound;

  • a partial map FF on CC assigning fixed exponents F(p)F(p);

  • for the primes p∈Cp\in C without a fixed exponent (the free primes), a lower bound m(p)≥2m(p)\ge2 (default 2) and possibly an upper bound M(p)M(p);

  • a constraint κ\kappa, which is either empty or one of the constraints defined in § 5 and § 6.

A friend NN of 10 belongs to N\mathcal{N} if: C⊆SC\subseteq S and ∣S∣=∣C∣+s|S|=|C|+s; the exponents satisfy ap=F(p)a_p=F(p) for fixed pp and m(p)≤ap≤M(p)m(p)\le a_p\le M(p) for free pp; the constraint κ\kappa holds; and the invariant holds: every prime of SS that is at most ℓ\ell lies in CC.

For a friend belonging to N\mathcal{N} we write the primes of S∖CS\setminus C in increasing order as U1<U2<⋯<UsU_1<U_2<\cdots<U_s and their exponents as a1,…,asa_1,\ldots,a_s. By the invariant, U1>ℓU_1>\ell. The root node for a given kk is ({5},k−1,5,∅,…)(\{5\},k-1,5,\varnothing,\ldots): every friend with ω(N)=k\omega(N)=k belongs to it, since 5 is its least prime (Theorem W).

The bounds attached to a node

For a node, let apa_p be F(p)F(p) if pp is fixed and m(p)m(p) otherwise, and let

I‾p={I(pF(p))if p is fixed,I(pM(p))if p is free with an upper bound,sup⁡(p)otherwise.\overline{I}_p = \begin{cases} I(p^{F(p)}) & \text{if }p\text{ is fixed},\\ I(p^{M(p)}) & \text{if }p\text{ is free with an upper bound},\\ \sup(p) & \text{otherwise}. \end{cases}

Define

pmin⁡=∏p∈CI(pap),psup⁡=∏p∈CI‾p,R=9/5psup⁡,δ=R−1.(4)p_{\min}=\prod_{p\in C} I(p^{a_p}),\qquad p_{\sup}=\prod_{p\in C}\overline{I}_p,\qquad R=\frac{9/5}{p_{\sup}},\qquad\delta=R-1. \tag*{(4)}

For a friend NN belonging to the node, write IC=∏p∈CI(pap)I_C=\prod_{p\in C}I(p^{a_p}) for the true contribution of the known primes.

Lemma 3.2. For a friend NN belonging to a node,

pmin⁡≤IC≤psup⁡and95=IC∏i=1sI(Uiai).(5)p_{\min}\le I_C\le p_{\sup}\qquad\text{and}\qquad\frac{9}{5}=I_C\prod_{i=1}^{s}I(U_i^{a_i}). \tag*{(5)}

Moreover R≤45/31<2R\le45/31<2.

Proof. By Lemma 2.1(iii), I(pa)I(p^a) is increasing in aa and below sup⁡(p)\sup(p), so I(pap)≤I(pap)≤I‾pI(p^{a_p})\le I(p^{a_p})\le\overline{I}_p for each p∈Cp\in C; multiply. The equation is (1) split into the known and the unknown primes. Since 5∈C5\in C with exponent at least 2, psup⁡≥I(52)=31/25p_{\sup}\ge I(5^2)=31/25 (the other factors are greater or equal to 1), so R≤95⋅2531=4531R\le\frac{9}{5}\cdot\frac{25}{31}=\frac{45}{31}.

The number δ\delta measures the gap the unknown primes must fill. A node is called almost tight when δ\delta is very small.

Rules and soundness

Definition 3.3 (Soundness rule). A rule replaces a node NN by finitely many nodes N1,…,NtN_1,\ldots,N_t (possibly t=0t=0), its children. The rule is sound if every friend of 10 that belongs to NN belongs to at least one child.

Proposition 3.4. Suppose the certifier, starting from the root node for kk, applies only sound rules, and every node it creates is eventually replaced (in particular every node with s=0s=0 is decided by an exact search, see § 4). If the process ends with no node left, then no friend of 10 has exactly kk distinct prime factors.

Proof. Suppose NN is a friend with ω(N)=k\omega(N)=k. It belongs to the root. By soundness, whenever a node to which NN belongs is replaced, NN belongs to one of its children. So at every stage some node in the current set contains NN, and the set is never empty.

If some node cannot be treated by any rule, the program records a refusal; a run with a refusal proves nothing. A rule that kills a node (replaces it by no children) is sound exactly when no friend belongs to that node.

The index lemma

Lemma 3.5 (Index lemma). (a) For a friend belonging to a node,

∏i=1ssup⁡(Ui)>9/5IC≥R.\prod_{i=1}^{s}\sup(U_i)>\frac{9/5}{I_C}\ge R.

(b) Let j≥1j\ge1 and let 2≤V1≤V2≤⋯≤Vj2\le V_1\le V_2\le\cdots\le V_j be integers with ∏i=1jsup⁡(Vi)>ρ\prod_{i=1}^{j}\sup(V_i)>\rho, where 1<ρ≤21<\rho\le2. Then

V1<1+2jρ−1.V_1<1+\frac{2j}{\rho-1}.

Proof. (a) By (5), ∏iI(Uiai)=95/IC\prod_i I(U_i^{a_i}) = \frac{9}{5}/I_C, and I(Uiai)<sup⁡(Ui)I(U_i^{a_i}) < \operatorname{sup}(U_i) by Lemma 2.1(iii); the second inequality is IC≤psup⁡I_C \le p_{\operatorname{sup}}.

(b) Since sup⁡\operatorname{sup} is decreasing (Lemma 2.1(iv)) and V1V_1 is the smallest, each factor is at most sup⁡(V1)\operatorname{sup}(V_1), so sup⁡(V1)j≥∏isup⁡(Vi)>ρ\operatorname{sup}(V_1)^j \ge\prod_i \operatorname{sup}(V_i) > \rho. Put x=1/(V1−1)>0x = 1/(V_1 - 1) > 0, so that sup⁡(V1)=1+x\operatorname{sup}(V_1) = 1 + x. Using 1+x≤ex1 + x \le e^x we get ejx≥(1+x)j>ρe^{jx} \ge(1 + x)^j > \rho, hence jx>ln⁡ρjx > \ln\rho. For ρ>1\rho> 1 we have ln⁡ρ≥1−1/ρ=(ρ−1)/ρ\ln\rho\ge1 - 1/\rho= (\rho- 1)/\rho (the inequality ln⁡y≥1−1/y\ln y \ge1 - 1/y holds for all y>0y > 0), and ρ≤2\rho\le2 gives (ρ−1)/ρ≥(ρ−1)/2(\rho- 1)/\rho\ge(\rho- 1)/2. So jx>(ρ−1)/2jx > (\rho- 1)/2, that is, V1−1=1/x<2j/(ρ−1)V_1 - 1 = 1/x < 2j/(\rho- 1). □

Remark 3.6. By Lemma 3.2, part (b) always applies with ρ=R\rho= R and j=sj = s, giving U1<1+2s/δU_1 < 1 + 2s/\delta. This bound is finite, but very large when δ\delta is small: that is the difficulty Blocks 7 and 8 address.

The rules inherited from solitary10

We recall the rules of [7] (its “Blocks 3–6”). They are restated and proved in the review document distributed with the code; here we state what each one does and the fact it relies on. Below, ℓ′\ell' denotes a prime (not the lower bound of a node).

(R1) Lower index bound. If s≥1s \ge1 and pmin⁡≥9/5p_{\min} \ge9/5, the node is empty, since every unknown contributes a factor >1> 1 in (5).

(R2) Complete sets. If s=0s = 0, the finitely many exponent vectors allowed by the closure rule (R3) are tested exactly against (1).

(R3) Closure. For a fixed exponent F(p)F(p), the value σ(pF(p))\sigma(p^{F(p)}) is computed piece by piece by (3) and factored (up to a size limit, 160 bits in our runs). By Lemma 2.2, each prime factor outside C∪{3}C \cup\{3\} is an unknown prime of SS; it is pinned, that is, moved into CC, and ss decreases by one. A pin u≤ℓu \le\ell contradicts the invariant, so the node is empty. A composite part that cannot be factored within the limit is an unfactored cofactor (§ 6.6).

(R4) Budgets of 3 and 5. For ℓ′∈{3,5}\ell' \in\{3,5\} the number ℓ′−1\ell' - 1 has no odd divisor above 1, while ord⁡ℓ′(q)\operatorname{ord}_{\ell'}(q) must divide the odd number aq+1a_q + 1 whenever ℓ′∣σ(qaq)\ell' \mid\sigma(q^{a_q}); so only primes q≡1(modℓ′)q \equiv1 \pmod{\ell'} contribute, and for them vℓ′(σ(qaq))=vℓ′(aq+1)v_{\ell'}(\sigma(q^{a_q})) = v_{\ell'}(a_q + 1) (lifting the exponent). By (2),

∑q∈S,q≡1 (3)v3(aq+1)=2,∑q∈S,q≡1 (5)v5(aq+1)=a5−1,\sum_{\substack{q \in S,\\q\equiv1\ (3)}} v_3(a_q + 1) = 2, \qquad \sum_{\substack{q \in S,\\q\equiv1\ (5)}} v_5(a_q + 1) = a_5 - 1,

and each power ℓ′j∣aq+1\ell'^j \mid a_q + 1 requires its own primitive prime of Φℓ′j(q)\Phi_{\ell'^j}(q) in SS (Corollary 2.5).

(R5) Last unknown. If s=1s = 1, some prime ℓ′\ell' divides aU+1a_U + 1, so Φℓ′(U)\Phi_{\ell'}(U) divides σ(N)\sigma(N); by Lemma 2.3 its prime factors are ℓ′\ell' (to the power at most 1) and primes ≡1(modℓ′)\equiv1 \pmod{\ell'}, which must be known. So Φℓ′(U)=ℓ′ε∏q∈C,q≡1 (ℓ′)qeq\Phi_{\ell'}(U) = \ell'^\varepsilon\prod_{\substack{q \in C,\\q\equiv1\ (\ell')}} q^{e_q}, and since Φℓ′\Phi_{\ell'} is increasing, each right-hand side gives at most one UU. Once UU or the eqe_q are bounded there are finitely many candidates.

(R6) Exponent bound (Thackeray [2], Corollary 6 and Proposition 9). See Proposition 4.1 below.

(R7) Exponent branching. A free exponent apa_p (even, greater or equal to m(p)m(p)) is replaced by the children ap=m(p),m(p)+2,…,A−2a_p = m(p), m(p) + 2, \ldots, A - 2 (fixed) and one tail child with m(p):=Am(p) := A. This is a partition of the possible values, hence sound for every choice of AA.

(R8) Listing the smallest unknown. If nothing else applies, the certifier creates, for each prime q>ℓq > \ell, q∉Cq \notin C, in increasing order, the child (C∪{q},s−1,q=U1(C \cup\{q\}, s - 1, q = U_1; this is sound because no prime of NN lies strictly between ℓ\ell and U1U_1. The listing stops at the first qq with psup⁡sup⁡(q)∏(the s−1 next sups)≤9/5p_{\operatorname{sup}} \operatorname{sup}(q)\prod(\text{the }s - 1\text{ next sups}) \le9/5; this quantity decreases with qq, so by Lemma 3.5(a) no later qq can be U1U_1 either.

For the next statement we need some notation. Fix a prime r∈Cr \in C (so r≥5r \ge5 is odd). Put P=C∪{3}P = C \cup\{3\}. For j≥1j \ge1 let WjW_j be the number of primes t∈Pt \in P, t≠rt \ne r, with t≡1(modr)t \equiv1 \pmod r, and for q∈Cq \in C let Wj(q)W_j^{(q)} be the same number with qq left out. For a sequence W=(Wj)W=(W_j) and an integer c≥0c \ge0 let

λ(W,c)=max⁡{v≥0:Wj+c≥v−j+1 for all 1≤j≤v}.\lambda(W,c)=\max\{v\ge0: W_j+c\ge v-j+1\text{ for all }1\le j\le v\}.

For an integer xx prime to rr let wr(x)=vr(xr−1−1)≥1w_r(x)=v_r(x^{r-1}-1)\ge1. For t≥1t\ge1 let

mt(r)=min⁡2≤y≤r−1(yt−1 mod rt),ωr(L)=max⁡{t≥1:mt(r)≤L}.m_t(r)=\min_{2\le y\le r-1}(y^{t-1}\bmod r^t),\qquad\omega_r(L)=\max\{t\ge1:m_t(r)\le L\}.

Note that m1(r)=2m_1(r)=2, so ωr(L)≥1\omega_r(L)\ge1 for every L≥2L\ge2.

Proposition 4.1 (Exponent bound, after Thackeray). Let r∈Cr\in C be a free prime and let L1,…,LsL_1,\ldots,L_s be integers. Let c5=1c_5=1 and cr=0c_r=0 for r≠5r\ne5, and

A=cr+∑q∈Cfixedvr(σ(qF(q)))+∑q∈C freeq≠rβ(q)A=c_r+\sum_{\substack{q\in C\\\mathrm{fixed}}}v_r\left(\sigma\left(q^{F(q)}\right)\right)+\sum_{\substack{q\in C\ \mathrm{free}\\q\ne r}}\beta(q)
+∑i=1s(ωr(Li)+λ(W,s−1)),+\sum_{i=1}^{s}\left(\omega_r(L_i)+\lambda(W,s-1)\right),

where, with λq=min⁡(λ(⋅,s),⌊log⁡r(M(q)+1)⌋)\lambda_q=\min(\lambda(\cdot,s),\lfloor\log_r(M(q)+1)\rfloor) (the second term only if qq has an upper bound M(q)M(q)),

β(q)={λq computed with W(q)if q≡1(modr),wr(q)+λq computed with Wif q≢1(modr) and ord⁡r(q) is odd,0if ord⁡r(q) is even.\beta(q)= \begin{cases} \lambda_q\text{ computed with }W^{(q)} & \text{if }q\equiv1\pmod r,\\ w_r(q)+\lambda_q\text{ computed with }W & \text{if }q\not\equiv1\pmod r\text{ and }\operatorname{ord}_r(q)\text{ is odd},\\ 0 & \text{if }\operatorname{ord}_r(q)\text{ is even}. \end{cases}

Then every friend belonging to the node with Ui≤LiU_i\le L_i (1≤i≤s1\le i\le s) has ar≤Aa_r\le A. (The bound holds friend by friend; it is not required that every friend of the node satisfies Ui≤LiU_i\le L_i.)

Proof. Let NN be such a friend.

Step 0: the valuation identity. By (2), vr(σ(N))=ar−crv_r(\sigma(N))=a_r-c_r. Since σ(rar)≡1(modr)\sigma(r^{a_r})\equiv1\pmod r and σ\sigma is multiplicative,

ar=cr+∑q∈Sq≠rvr(σ(qaq)).(6)a_r=c_r+\sum_{\substack{q\in S\\q\ne r}}v_r\left(\sigma\left(q^{a_q}\right)\right). \tag*{(6)}

For a known prime with a fixed exponent the term is computed exactly. We need to bound the term of a free known prime qq by β(q)\beta(q), and the term of each unknown UiU_i by ωr(Li)+λ(W,s−1)\omega_r(L_i)+\lambda(W,s-1).

Step 1: the valuation of one term. Let q≠rq\ne r be a prime and a≥2a\ge2 even, and let e=ord⁡r(q)e=\operatorname{ord}_r(q). Since σ(qa)=(qa+1−1)/(q−1)\sigma(q^a)=(q^{a+1}-1)/(q-1) and rr is odd, lifting the exponent gives:

  • if q≡1(modr)q\equiv1\pmod r: vr(qa+1−1)=vr(q−1)+vr(a+1)v_r(q^{a+1}-1)=v_r(q-1)+v_r(a+1), so vr(σ(qa))=vr(a+1)v_r(\sigma(q^a))=v_r(a+1);

  • if e>1e>1 and e∣a+1e\mid a+1: vr(q−1)=0v_r(q-1)=0 and vr(qa+1−1)=vr(qe−1)+vr((a+1)/e)v_r(q^{a+1}-1)=v_r(q^e-1)+v_r((a+1)/e). Here vr(qe−1)=wr(q)v_r(q^e-1)=w_r(q) and vr((a+1)/e)=vr(a+1)v_r((a+1)/e)=v_r(a+1), because ee divides r−1r-1, which is prime to rr. So vr(σ(qa))=wr(q)+vr(a+1)v_r(\sigma(q^a))=w_r(q)+v_r(a+1);

  • if e>1e>1 and e∤a+1e\nmid a+1: r∤qa+1−1r\nmid q^{a+1}-1 and vr(σ(qa))=0v_r(\sigma(q^a))=0.

The exponent aa is even (Theorem W), so a+1a+1 is odd, and an even ee never divides it: a prime qq of even order modulo rr contributes 0. In all cases

vr(σ(qa))≤ε(q)wr(q)+vr(a+1),ε(q)={1if q≢1(modr) and e is odd,0otherwise,(7)v_r(\sigma(q^a))\le\varepsilon(q)w_r(q)+v_r(a+1),\qquad \varepsilon(q)= \begin{cases} 1 & \text{if }q\not\equiv1\pmod r\text{ and }e\text{ is odd},\\ 0 & \text{otherwise}, \end{cases} \tag*{(7)}

and the left-hand side is 0 when ee is even.

Step 2: the levels vr(a+1)v_r(a+1). Let q∈Sq \in S, q≠rq \ne r, and j=vr(aq+1)j = v_r(a_q+1). For 1≤i≤j1 \le i \le j the number rir^i divides aq+1a_q+1, so Φri(q)\Phi_{r^i}(q) divides σ(qaq)\sigma(q^{a_q}) by (3). By Lemma 2.4, Φri(q)\Phi_{r^i}(q) has a prime factor tit_i with ord⁡ti(q)=ri\operatorname{ord}_{t_i}(q)=r^i; hence ti≡1(modri)t_i \equiv1 \pmod{r^i}, the primes t1,…,tjt_1,\ldots,t_j are distinct, none is qq or rr, and each lies in S∪{3}S \cup\{3\} (Lemma 2.2). Fix i≤ji \le j. The j−i+1j-i+1 primes ti,…,tjt_i,\ldots,t_j are all ≡1(modri)\equiv1 \pmod{r^i}. Those that are known lie in P∖{q,r}P \setminus\{q,r\}, so there are at most WiW_i of them (Wi(q)W_i^{(q)} if q∈Cq \in C). The others are unknown primes different from qq: at most ss of them if qq is known, at most s−1s-1 if qq is itself unknown. Therefore j−i+1≤Wi+cj-i+1 \le W_i+c for every i≤ji \le j, with c=sc=s or s−1s-1, that is j≤λ(W,c)j \le\lambda(W,c). Moreover rj≤aq+1≤M(q)+1r^j \le a_q+1 \le M(q)+1 when qq has an upper bound. This gives vr(aq+1)≤λqv_r(a_q+1) \le\lambda_q for a free known prime and vr(ai+1)≤λ(W,s−1)v_r(a_i+1) \le\lambda(W,s-1) for an unknown, and with (7) the bound β(q)\beta(q) for a free known prime.

Step 3: the term wr(U)w_r(U) of an unknown. Let UU be an unknown with U≤LU \le L. If ϵ(U)=0\epsilon(U)=0 there is nothing to prove, since ωr(L)≥1\omega_r(L) \ge1. Otherwise U≢1(modr)U \not\equiv1 \pmod r; let t=wr(U)t=w_r(U), so Ur−1≡1(modrt)U^{r-1} \equiv1 \pmod{r^t}. The congruence xr−1≡1(modrt)x^{r-1} \equiv1 \pmod{r^t} has exactly r−1r-1 solutions modulo rtr^t, one in each non-zero class modulo rr, namely yrt−1(modrt)y^{r^{t-1}} \pmod{r^t} for 1≤y≤r−11 \le y \le r-1. Since U≢1(modr)U \not\equiv1 \pmod r, the residue of UU modulo rtr^t is one of those with y≥2y \ge2, so U≥mt(r)U \ge m_t(r), hence mt(r)≤Lm_t(r) \le L. The sequence mt(r)m_t(r) is non-decreasing in tt, because a solution modulo rt+1r^{t+1} reduces to a solution modulo rtr^t in the same class modulo rr, and the residue can only grow. So t≤ωr(L)t \le\omega_r(L).

Putting Steps 1–3 into (6) gives ar≤Aa_r \le A. □

This is essentially Corollary 6 and Proposition 9 of [2], with one change: Step 3 is applied to each unknown separately, so each unknown UiU_i may have its own bound LiL_i, where [2] uses one bound for all. We use the method of [2 Corollary 6], but not its original statement. The primes counted in Step 2 are the primitive prime factors tit_i of Φri(q)\Phi_{r^i}(q); they divide σ(N)\sigma(N), and Step 2 places them in S∪{3}S \cup\{3\} by Lemma 2.2 without any assumption on their size. The bounds LiL_i are used only in Step 3, for the unknown prime factors of NN. (In [2 Corollary 6] the hypothesis is stated for the prime factors q>rq>r of nn; it should be stated for every prime q>rq>r, or for the prime factors q>rq>r of σ(n)\sigma(n), as H. R. Thackeray has confirmed. For a friend of 10 and r≥5r \ge5 the three readings coincide, since the prime factors of σ(N)=9N/5\sigma(N)=9N/5 are those of NN together with 3<r3<r.) Besides Theorem Z and Lemma 2.2 (Steps 0 and 2), the proof uses only that the exponents are even (Step 1) and that rr is odd. Of the node it uses only CC, ss, the fixed exponents and the upper bounds M(q)M(q); it does not use the lower bound ℓ\ell, the constraint κ\kappa or any index bound, so the bound holds at every node and for every choice of the LiL_i. The bound holds for every rr but the program uses it only for r≤106r \le10^6, because computing mt(r)m_t(r) costs time proportional to rr. For larger rr the rule is not applied. The bound is also tested against true values during the computation (§ 10).

Block 7: almost tight nodes

Throughout this section, N\mathcal{N} is a node with s≥1s \ge1 and psup<9/5p_{\mathrm{sup}} < 9/5 at which the listing (R8) would otherwise be used.

Two thresholds

Definition 5.1.

B′=max⁡{B≥2:psupI(B2)>95},Bmin⁡=max⁡{U≥2:psupsup⁡(U)≥95}.B'=\max\{B \ge2:p_{\mathrm{sup}}I(B^2)>\frac{9}{5}\},\qquad B_{\min}=\max\{U \ge2:p_{\mathrm{sup}}\sup(U)\ge\frac{9}{5}\}.

Both sets are defined through the functions B↦I(B2)=1+1/B+1/B2B \mapsto I(B^2)=1+1/B+1/B^2 and U↦sup⁡(U)=1+1/(U−1)U \mapsto\sup(U)=1+1/(U-1), which are strictly decreasing for real B,U>1B,U>1 and tend to 1 (Lemma 2.1(iv)). Hence the left-hand sides psupI(B2)p_{\mathrm{sup}}I(B^2) and psupsup⁡(U)p_{\mathrm{sup}}\sup(U) decrease to psup<9/5p_{\mathrm{sup}}<9/5, so both sets are bounded. They are non-empty, because 5∈C5 \in C gives psup≥I(52)=31/25p_{\mathrm{sup}} \ge I(5^2)=31/25, so that psupI(22)=74psup>95p_{\mathrm{sup}}I(2^2)=\frac{7}{4}p_{\mathrm{sup}}> \frac{9}{5} and psupsup⁡(2)=2psup>95p_{\mathrm{sup}}\sup(2)=2p_{\mathrm{sup}}> \frac{9}{5}. Finally, since the left-hand sides decrease, the defining inequality holds for every 2≤B≤B′2\le B\le B' and every 2≤U≤Bmin⁡2\le U\le B_{\min}.

Lemma 5.2. Bmin⁡=⌊1+1/δ⌋B_{\min}=\lfloor1+1/\delta\rfloor, and B′≤Bmin⁡B'\le B_{\min}.

Proof. psupsup⁡(U)≥9/5p_{\mathrm{sup}}\sup(U)\ge9/5 means sup⁡(U)≥R\sup(U)\ge R, that is 1+1U−1≥1+δ1+\frac{1}{U-1}\ge1+\delta, that is U≤1+1/δU\le1+1/\delta. For the second claim, I(B2)<sup⁡(B)I(B^2)<\sup(B) (Lemma 2.1(iv)), so psupI(B′2)>9/5p_{\mathrm{sup}}I(B'^2)>9/5 implies psupsup⁡(B′)>9/5p_{\mathrm{sup}}\sup(B')>9/5, hence B′≤Bmin⁡B'\le B_{\min}. □\square

Since I(B2)=1+1/B+1/B2I(B^2)=1+1/B+1/B^2 and sup⁡(B)=1+1/B+1/B2+1/B3+⋯\sup(B)=1+1/B+1/B^2+1/B^3+\cdots differ only by terms of order B−3B^{-3}, the gap (B′,Bmin⁡](B',B_{\min}] is tiny; in the census of k=9k=9 it was empty at every node.

The split

Definition 5.3 (Constraint “hi”). The constraint κ=h\kappa=h, for an integer hh, means: the smallest unknown prime satisfies U1≤hU_1\le h.

Rule 5.4 (Split). Replace N\mathcal{N} by the following children:

(a) N\mathcal{N} with the added constraint κ=B′\kappa=B';

(b) for each prime q∈(B′,Bmin⁡]q\in(B',B_{\min}], q∉Cq\notin\mathcal{C}, the child of (R8) in which U1=qU_1=q;

(c) N\mathcal{N} with ℓ\ell replaced by Bmin⁡B_{\min}.

Soundness. Let N\mathcal{N} belong to N\mathcal{N}. Its smallest unknown U1U_1 lies in exactly one of (ℓ,B′](\ell,B'], (B′,Bmin⁡](B',B_{\min}] and (Bmin⁡,∞)(B_{\min},\infty). In the first case N\mathcal{N} belongs to (a). In the second it belongs to the child (b) with q=U1q=U_1. In the third case every unknown exceeds Bmin⁡B_{\min}, so every prime of SS that is smaller or equal to Bmin⁡B_{\min} is known: the invariant holds with ℓ=Bmin⁡\ell=B_{\min} and N\mathcal{N} belongs to (c). The argument uses no property of B′B' and Bmin⁡B_{\min} other than ℓ≤B′≤Bmin⁡\ell\le B'\le B_{\min}, so floating-point errors in computing them could only affect efficiency; the program nevertheless checks both thresholds exactly. □\square

A node that already carries a constraint. If N\mathcal{N} already carries κ=h\kappa=h (alone, or as part of a saturation constraint, Definition 6.4), every child of the split keeps it: (b) is listed only over (B′,min⁡(h,Bmin⁡)](B',\min(h,B_{\min})], child (c) is omitted when h≤Bmin⁡h\le B_{\min}, and the split is not applied at all when h≤B′h\le B'. Intersecting each child with U1≤hU_1\le h still covers every friend of N\mathcal{N}, since every such friend satisfies U1≤hU_1\le h.

The hi rule

The point of child (a) is that the constraint U1≤B′U_1\le B' gives a lower bound on the factor of U1U_1, which kills the child without listing U1U_1.

Lemma 5.5 (Hi rule). Let N\mathcal{N} carry the constraint κ=h\kappa=h.

(i) Every friend belonging to N\mathcal{N} satisfies pmin⁡I(h2)≤9/5p_{\min}I(h^2)\le9/5, with strict inequality if s≥2s\ge2. Hence N\mathcal{N} is empty if pmin⁡I(h2)>9/5p_{\min}I(h^2)>9/5, or if pmin⁡I(h2)=9/5p_{\min}I(h^2)=9/5 and s≥2s\ge2, or if h≤ℓh\le\ell.

(ii) Suppose a rule pins a set PP of unknown primes. If no prime of PP is smaller or equal to hh, the child may keep the constraint κ=h\kappa=h. If moreover PP contains all ss unknowns, the child is empty.

Proof. (i) Let N\mathcal{N} belong to N\mathcal{N}. Since a1≥2a_1\ge2 and U1≤hU_1\le h, Lemma 2.1(iii) and (iv) give I(U1a1)≥I(U12)≥I(h2)I(U_1^{a_1})\ge I(U_1^2)\ge I(h^2). By (5),

95=ICI(U1a1)∏i≥2I(Uiai)≥pmin⁡I(h2)∏i≥2I(Uiai).\frac{9}{5}=I_{\mathcal{C}}I(U_1^{a_1})\prod_{i\ge2}I(U_i^{a_i})\ge p_{\min}I(h^2)\prod_{i\ge2}I(U_i^{a_i}).

and the last product is 11 if s=1s=1 and >1>1 if s≥2s\ge2. If h≤ℓh\le\ell then U1≤h≤ℓU_1\le h\le\ell contradicts the invariant. (ii) The smallest unknown U1U_1 satisfies U1≤hU_1 \le h. If no pinned prime is smaller or equal to hh, then U1∉PU_1 \notin P, so U1U_1 is still unknown in the child and is the smallest of the remaining unknowns; the constraint holds. If PP contains all the unknowns, then U1∈PU_1 \in P and U1≤hU_1 \le h, a contradiction.

In child (a), h=B′h = B' and, by definition of B′B', psupI(B′2)>9/5p_{\mathrm{sup}} I(B'^2) > 9/5. The certifier treats V=I(B′2)V = I(B'^2) as an extra factor: it branches the free exponents (R7) and, in each tail, pmin⁡p_{\min} grows. Because psupV>9/5p_{\mathrm{sup}} V > 9/5, there is room for pmin⁡Vp_{\min} V to exceed 9/59/5, at which point Lemma 5.5(i) kills the node; exact children are treated by the closure. The range (ℓ,B′](\ell, B'], which contains almost all of the millions of candidates for U1U_1, is thus never listed.

Branch (c) with two unknowns

Lemma 5.6. Let s=2s = 2 and suppose every unknown exceeds Bmin⁡B_{\min}. Write R=n/mR = n/m in lowest terms. Then

U1<1+4δ=:L1andU2<1+mU1≤1+mL1.U_1 < 1 + \frac{4}{\delta} =: L_1 \qquad\text{and}\qquad U_2 < 1 + mU_1 \le1 + mL_1.

Proof. The bound on U1U_1 is Lemma 3.5(b) with j=2j = 2, ρ=R\rho= R, using part (a). Since U1>Bmin⁡U_1 > B_{\min}, the definition of Bmin⁡B_{\min} gives psupsup⁡(U1)<9/5p_{\mathrm{sup}} \operatorname{sup}(U_1) < 9/5, that is sup⁡(U1)<R\operatorname{sup}(U_1) < R. Put ρ2=R/sup⁡(U1)>1\rho_2 = R/\operatorname{sup}(U_1) > 1. By Lemma 3.5(a), sup⁡(U1)sup⁡(U2)>R\operatorname{sup}(U_1)\operatorname{sup}(U_2) > R, that is sup⁡(U2)>ρ2\operatorname{sup}(U_2) > \rho_2. Now

ρ2=nm⋅U1−1U1=n(U1−1)mU1\rho_2 = \frac{n}{m}\cdot\frac{U_1-1}{U_1} = \frac{n(U_1-1)}{mU_1}

is a fraction >1> 1 with denominator mU1mU_1, so ρ2−1≥1/(mU1)\rho_2 - 1 \ge1/(mU_1) by Lemma 2.6. Finally sup⁡(U2)>ρ2\operatorname{sup}(U_2) > \rho_2 means 1/(U2−1)>ρ2−11/(U_2 - 1) > \rho_2 - 1, that is U2<1+1/(ρ2−1)≤1+mU1U_2 < 1 + 1/(\rho_2 - 1) \le1 + mU_1.

The program uses the weaker bound U2<1+2mL1U_2 < 1 + 2mL_1. So in branch (c) with s=2s = 2 every unknown is bounded, and Proposition 4.1 bounds the exponent of every free prime r≤106r \le10^6 of CC.

Narrowing

Lemma 5.7 (Narrowing). Let s=2s = 2, and suppose the closure (R3) of the fixed exponents produced no pin and at least one unfactored cofactor cc. Then both unknown primes divide cc; in particular U1∣cU_1 \mid c.

Proof. By Lemma 6.10 below, cc has at least two distinct prime factors, all of them unknown primes of SS. There are only two unknown primes, so they are exactly those factors.

The listing (R8) then runs only over the prime factors of cc below the stop, found by trial division, instead of over every prime.

The safe chain and the band

Lemma 5.8 (Safe chain). Let s≥3s \ge3 and define η\eta by

1+η=9/5psupsup⁡(ℓ+1)s−1.1 + \eta= \frac{9/5}{p_{\mathrm{sup}}\operatorname{sup}(\ell+1)^{s-1}}.

If η>0\eta> 0, then every unknown prime of every friend belonging to the node is <1+1/η< 1 + 1/\eta.

Proof. All unknowns exceed ℓ\ell, so by Lemma 2.1(iv) each of U1,…,Us−1U_1,\ldots,U_{s-1} has sup⁡(Ui)≤sup⁡(ℓ+1)\operatorname{sup}(U_i) \le\operatorname{sup}(\ell+1). Lemma 3.5(a) gives sup⁡(Us)∏i<ssup⁡(Ui)>R\operatorname{sup}(U_s)\prod_{i<s}\operatorname{sup}(U_i) > R, hence sup⁡(Us)>R/sup⁡(ℓ+1)s−1=1+η\operatorname{sup}(U_s) > R/\operatorname{sup}(\ell+1)^{s-1} = 1+\eta, that is Us<1+1/ηU_s < 1+1/\eta. The other unknowns are smaller than UsU_s.

Let TsafeT_{\mathrm{safe}} be the least ℓ\ell for which η>0\eta> 0; it is about (s−1)/δ(s-1)/\delta. Branch (c) is cut into two sound children: “U1≤TsafeU_1 \le T_{\mathrm{safe}}” (constraint κ=Tsafe\kappa= T_{\mathrm{safe}}) and “every unknown exceeds TsafeT_{\mathrm{safe}}” (ℓ:=Tsafe\ell:= T_{\mathrm{safe}}). In the second, Lemma 5.8 bounds every unknown and Proposition 4.1 applies. What remains to be listed is the band

U1∈(Bmin⁡,Tsafe](s≥3),U_1 \in(B_{\min},T_{\mathrm{safe}}] \qquad(s \ge3),

where the index alone does not bound U2,…,UsU_2,\ldots,U_s. At k=10k=10 a band holds between 10410^4 and 10810^8 primes.

Block 8: the band

Throughout this section, N\mathcal{N} is a node with s≥2s \ge2 unknowns (from § 6.3 on, s≥3s \ge3) and psup<9/5p_{\mathrm{sup}} < 9/5. The only exception is the lower lift (Rule 6.1), which the program applies at every node with s≥1s \ge1; its proof uses neither restriction.

The lower lift

Rule 6.1 (Lower lift). Let B′′B'' be the largest integer BB with pmin⁡I(B2)≥9/5p_{\min} I(B^2) \ge9/5 if s≥2s \ge2 (resp. pmin⁡I(B2)>9/5p_{\min} I(B^2) > 9/5 if s=1s=1), or B′′=ℓB''=\ell if there is none. Replace ℓ\ell by max⁡(ℓ,B′′)\max(\ell,B'').

Soundness. Let NN belong to N\mathcal{N}. As in the proof of Lemma 5.5(i), 9/5≥pmin⁡I(U12)∏i≥2I(Uiai)9/5 \ge p_{\min} I(U_1^2)\prod_{i\ge2} I(U_i^{a_i}), so pmin⁡I(U12)≤9/5p_{\min} I(U_1^2) \le9/5 if s≥2s \ge2 and pmin⁡I(U12)≤9/5p_{\min} I(U_1^2) \le9/5 if s=1s=1. If some unknown prime were ≤B′′\le B'', then U1≤B′′U_1 \le B'', and since I(B2)I(B^2) decreases, pmin⁡I(U12)≥pmin⁡I(B′′2)p_{\min} I(U_1^2) \ge p_{\min} I(B''^2), which is at least 9/59/5 (resp. strictly greater than $9/5): a contradiction. So every unknown exceeds B′′B'', every prime of SS that is at most max⁡(ℓ,B′′)\max(\ell,B'') is known, and the invariant holds with the new value. □

Deepening

Let T=⌊1+2s/δ⌋T=\lfloor1+2s/\delta\rfloor, so that U1≤TU_1 \le T by Lemma 3.5(b) (if the node carries κ=h\kappa=h with h<Th<T, the program uses T=hT=h instead, which is also an upper bound for U1U_1; everything below holds with either value), let nfn_f be the number of free primes in CC, and τ=1/(nfT3)\tau=1/(n_fT^3). Before the region step, the certifier applies exponent branching (R7) to the free prime with the largest ratio I‾p/I(pap)\overline{I}_p/I(p^{a_p}) until every free prime satisfies

I‾pI(pap)−1≤τ.\frac{\overline{I}_p}{I(p^{a_p})}-1\le\tau.

Each step is an instance of (R7), so this is sound whatever τ\tau is. Its effect is that pmin⁡p_{\min} and psupp_{\mathrm{sup}} agree to within a relative error of order T−3T^{-3}, which is what makes the test of § 6.5 effective.

The saturation dichotomy

For each p∈Cp\in C choose a number xp≥I‾px_p\ge\overline{I}_p; the program takes xp=sup⁡(p)x_p=\sup(p) when sup⁡(p)/I‾p−1≤τ\sup(p)/\overline{I}_p-1\le\tau, and xp=I‾px_p=\overline{I}_p otherwise (so xp=sup⁡(p)x_p=\sup(p) for a free prime without an upper bound, and xp=I(pM(p))x_p=I(p^{M(p)}) for a free prime with an upper bound M(p)M(p) far from sup⁡(p)\sup(p)). Put

p∗=∏p∈Cxp≥psup,R∗=9/5p∗=n∗m∗(lowest terms).p^*=\prod_{p\in C}x_p\ge p_{\mathrm{sup}},\qquad R^*=\frac{9/5}{p^*}=\frac{n^*}{m^*}\quad\text{(lowest terms)}.

The purpose of p∗p^* is to keep the denominator m∗m^* small; replacing I‾p\overline{I}_p by the simple fraction p/(p−1)p/(p-1) removes the huge denominators of exact values I(pa)I(p^a) with large aa. If R∗≤1R^*\le1 the region step below is not used. Otherwise 1<R∗≤R<21<R^*\le R<2.

Definition 6.2 (The two regions). A friend belonging to N\mathcal{N} is saturated if

∏i=1s−1sup⁡(Ui)≥R∗,\prod_{i=1}^{s-1}\operatorname{sup}(U_i) \ge R^*,

and unsaturated otherwise. In words: the s−1s-1 smallest unknown primes, at their largest possible contributions, already reach R∗R^*, so the largest unknown may be arbitrarily large.

Lemma 6.3 (Bounds in the unsaturated region). Define L1=TL_1=T and, for 1≤t≤s−11\le t\le s-1,

Lt+1=1+2(s−t)m∗∏i=1tLi.L_{t+1}=1+2(s-t)m^*\prod_{i=1}^{t}L_i.

Every unsaturated friend belonging to N\mathcal{N} satisfies Ui≤LiU_i\le L_i for 1≤i≤s1\le i\le s.

Proof. Fix an unsaturated friend. First, U1≤T=L1U_1\le T=L_1 by Lemma 3.5(b). We show, for 1≤t≤s−11\le t\le s-1,

Ut+1<1+2(s−t)m∗∏i=1tUi;(8)U_{t+1}<1+2(s-t)m^*\prod_{i=1}^{t}U_i; \tag*{(8)}

since the right-hand side increases with U1,…,UtU_1,\ldots,U_t, induction on tt then gives Ui≤LiU_i\le L_i.

Step 1: a ratio larger than one. Put

Rt∗=R∗∏i=1tsup⁡(Ui).R_t^*=\frac{R^*}{\prod_{i=1}^{t}\operatorname{sup}(U_i)}.

Each factor sup⁡(Ui)\operatorname{sup}(U_i) exceeds 1, so ∏i≤tsup⁡(Ui)≤∏i≤s−1sup⁡(Ui)<R∗\prod_{i\le t}\operatorname{sup}(U_i)\le\prod_{i\le s-1}\operatorname{sup}(U_i)<R^* (the friend is unsaturated). Hence Rt∗>1R_t^*>1.

Step 2: how much larger. Since sup⁡(U)=U/(U−1)\operatorname{sup}(U)=U/(U-1),

Rt∗=n∗m∗⋅∏i=1tUi−1Ui=n∗∏i≤t(Ui−1)m∗∏i≤tUi,R_t^*=\frac{n^*}{m^*}\cdot\prod_{i=1}^{t}\frac{U_i-1}{U_i} =\frac{n^*\prod_{i\le t}(U_i-1)}{m^*\prod_{i\le t}U_i},

a fraction larger than 1 with denominator D=m∗∏i≤tUiD=m^*\prod_{i\le t}U_i. By Lemma 2.6, Rt∗−1≥1/DR_t^*-1\ge1/D.

Step 3: the remaining unknowns. By Lemma 3.5(a) and IC≤psup⁡≤p∗I_C\le p_{\operatorname{sup}}\le p^*,

∏i=1ssup⁡(Ui)>9/5IC≥9/5p∗=R∗,so∏i=t+1ssup⁡(Ui)>Rt∗.\prod_{i=1}^{s}\operatorname{sup}(U_i)>\frac{9/5}{I_C}\ge\frac{9/5}{p^*}=R^*, \qquad\text{so}\qquad \prod_{i=t+1}^{s}\operatorname{sup}(U_i)>R_t^*.

The s−ts-t integers Ut+1<⋯<UsU_{t+1}<\cdots<U_s and ρ=Rt∗\rho=R_t^*, which satisfies 1<ρ≤R∗<21<\rho\le R^*<2, meet the hypotheses of Lemma 3.5(b) with j=s−tj=s-t. Therefore

Ut+1<1+2(s−t)Rt∗−1≤1+2(s−t)D,U_{t+1}<1+\frac{2(s-t)}{R_t^*-1}\le1+2(s-t)D,

which is (8). □

The region step

Definition 6.4 (Saturation constraint). For an integer hh, an integer k≥2k\ge2 and a rational ρ0>1\rho_0>1, the constraint κ=[h,k,ρ0]\kappa=[h,k,\rho_0] means:

U1≤hand∏i=1ksup⁡(Ui)≥ρ0.U_1\le h \qquad\text{and}\qquad \prod_{i=1}^{k}\operatorname{sup}(U_i)\ge\rho_0.

It is used only when k=s−1k=s-1. Whenever a rule pins an unknown prime (so that the set of unknowns changes), the child drops the second part of the constraint, which is about the

unknowns of the parent; the first part, U1≤hU_1 \le h, is kept as long as no pinned prime is smaller or equal to hh (Lemma 5.5(ii)). Rules that pin nothing (exponent branching, deepening, the split of Rule 5.4, narrowing) pass the constraint on unchanged to every child; the split and narrowing list their children by Rule 6.6 below. Dropping a constraint, or a part of it, enlarges the set of friends belonging to a node, so it is always sound.

Rule 6.5 (Region step). Let r∈Cr \in C be a free prime with r≤106r \le10^6, and let AA be the bound of Proposition 4.1 computed with the bounds L1,…,LsL_1,\ldots,L_s of Lemma 6.3. Replace N\mathcal{N} by:

  • the children with ara_r fixed to each admissible even value in [m(r),A][m(r),A];

  • one tail child with m(r)m(r) raised to the least admissible value strictly above AA, carrying the constraint [h,s−1,R∗][h,s-1,R^*], where

h=min⁡(T,max⁡{U≥2:sup⁡(U)s−1>R∗}).h=\min\left(T,\max\{U\ge2:\operatorname{sup}(U)^{s-1}>R^*\}\right).

Soundness. The children partition the possible values of ara_r, so it suffices to show that every friend with ar>Aa_r>A satisfies the constraint. Such a friend cannot be unsaturated: if it were, then Ui≤LiU_i\le L_i for all ii by Lemma 6.3, and Proposition 4.1 would give ar≤Aa_r\le A. So it is saturated: ∏i<ssup⁡(Ui)≥R∗\prod_{i<s}\operatorname{sup}(U_i)\ge R^*. Moreover, s−1≥2s-1\ge2 and U1<U2U_1<U_2, so sup⁡(U1)>sup⁡(U2)\operatorname{sup}(U_1)>\operatorname{sup}(U_2) and

sup⁡(U1)s−1>∏i=1s−1sup⁡(Ui)≥R∗,\operatorname{sup}(U_1)^{s-1}>\prod_{i=1}^{s-1}\operatorname{sup}(U_i)\ge R^*,

which, sup⁡\operatorname{sup} being decreasing, means U1≤max⁡{U:sup⁡(U)s−1>R∗}U_1\le\max\{U:\operatorname{sup}(U)^{s-1}>R^*\}. Also U1≤TU_1\le T. So U1≤hU_1\le h. The number R∗R^* is a fixed rational, so the constraint stays true in every descendant with the same unknown primes. □

Listing under saturation

Let N\mathcal{N} carry the constraint [h,k,ρ0][h,k,\rho_0] with k=s−1≥2k=s-1\ge2. Its smallest unknown is listed, U1=qU_1=q for the primes q∈(ℓ,h]q\in(\ell,h], q∉Cq\notin C. For each qq put

ρ=ρ(q)=ρ0sup⁡(q).\rho=\rho(q)=\frac{\rho_0}{\operatorname{sup}(q)}.

Dividing the constraint by sup⁡(U1)=sup⁡(q)\operatorname{sup}(U_1)=\operatorname{sup}(q) gives, for every friend in the child U1=qU_1=q,

∏i=2ksup⁡(Ui)≥ρ.(9)\prod_{i=2}^{k}\operatorname{sup}(U_i)\ge\rho. \tag*{(9)}

A prime qq with pmin⁡I(q2)≥9/5p_{\min} I(q^2)\ge9/5 is skipped, because its child is empty: by Lemma 3.2, 9/5=ICI(qa1)∏i≥2I(Uiai)>pmin⁡I(q2)9/5=I_C I(q^{a_1})\prod_{i\ge2}I(U_i^{a_i})>p_{\min}I(q^2), since a1≥2a_1\ge2 and s≥2s\ge2. If ρ≤1\rho\le1 the child gets no constraint (nothing is claimed). Otherwise:

Rule 6.6 (Saturated listing). Assume ρ>1\rho>1.

(i) If k≥3k\ge3, let H=max⁡{U≥2:sup⁡(U)k−1>ρ}H=\max\{U\ge2:\operatorname{sup}(U)^{k-1}>\rho\}. If H≤qH\le q the child is empty; otherwise it carries the constraint [H,k−1,ρ][H,k-1,\rho].

(ii) If k=2k=2 (that is, s=3s=3), let

H(q)=⌊ρρ−1⌋.H(q)=\left\lfloor\frac{\rho}{\rho-1}\right\rfloor.

If H(q)≤qH(q)\le q, or if

pmin⁡I(q2)I(H(q)2)≥95,(10)p_{\min}I(q^2)I(H(q)^2)\ge\frac{9}{5}, \tag*{(10)}

the child is empty. Otherwise it carries the constraint κ=H(q)\kappa=H(q) (Lemma 5.5).

Soundness. (i) In the child, the constrained unknowns are U2<⋯<UkU_2 < \cdots< U_k, which are k−1≥2k-1 \ge2 integers. As in the proof of Rule 6.5, sup⁡(U2)k−1>∏i=2ksup⁡(Ui)≥ρ\sup(U_2)^{k-1} > \prod_{i=2}^{k}\sup(U_i) \ge\rho, so U2≤HU_2 \le H. Since U2>U1=qU_2 > U_1 = q, the case H≤qH \le q is impossible. The new constraint [H,k−1,ρ][H,k-1,\rho] is exactly (9) together with U2≤HU_2 \le H, where U2U_2 is now the smallest unknown and k−1=(s−1)−1k-1=(s-1)-1.

(ii) Here (9) reads sup⁡(U2)≥ρ\sup(U_2) \ge\rho. Since ρ>1\rho> 1,

U2U2−1≥ρ⟺U2≥ρU2−ρ⟺U2(ρ−1)≤ρ⟺U2≤ρρ−1.\frac{U_2}{U_2-1} \ge\rho\Longleftrightarrow U_2 \ge\rho U_2-\rho\Longleftrightarrow U_2(\rho-1) \le\rho\Longleftrightarrow U_2 \le\frac{\rho}{\rho-1}.

so U2≤H(q)U_2 \le H(q), and H(q)≤qH(q) \le q is impossible as before. Now use (5) with the three unknowns q=U1q=U_1, U2U_2, U3U_3 and bound each factor from below: IC≥pmin⁡I_C \ge p_{\min}, I(qa1)≥I(q2)I(q^{a_1}) \ge I(q^2), I(U2a2)≥I(H(q)2)I(U_2^{a_2}) \ge I(H(q)^2) (Lemma 2.1), and I(U3a3)>1I(U_3^{a_3}) > 1. This gives

q5=ICI(qa1)I(U2a2)I(U3a3)>pmin⁡I(q2)I(H(q)2).\frac{q}{5}=I_C I(q^{a_1})I(U_2^{a_2})I(U_3^{a_3})>p_{\min}I(q^2)I(H(q)^2).

So if (6.3) holds, no friend belongs to the child. The remaining constraint U2≤H(q)U_2 \le H(q) is a hi constraint for the child, whose smallest unknown is U2U_2. □

Lemma 6.7 (Integer form of the test). Write ρ0=n/m\rho_0=n/m and pmin⁡/(9/5)=a/bp_{\min}/(9/5)=a/b with positive integers, and put d=n(q−1)−mqd=n(q-1)-mq. Then ρ>1\rho>1 if and only if d>0d>0; in that case

H(q)=⌊n(q−1)d⌋.H(q)=\left\lfloor\frac{n(q-1)}{d}\right\rfloor.

and (6.3) holds if and only if

a(q2+q+1)(H2+H+1)≥bq2H2(H=H(q)).a(q^2+q+1)(H^2+H+1)\ge bq^2H^2 \qquad(H=H(q)).

Proof. ρ=nm⋅q−1q=n(q−1)mq\rho=\frac{n}{m}\cdot\frac{q-1}{q}=\frac{n(q-1)}{mq}, so ρ−1=dmq\rho-1=\frac{d}{mq}, which is positive if and only if d>0d>0, and then ρ/(ρ−1)=n(q−1)/d\rho/(\rho-1)=n(q-1)/d. For the test, I(x2)=(x2+x+1)/x2I(x^2)=(x^2+x+1)/x^2, so (6.3) reads ab⋅(q2+q+1)(H2+H+1)q2H2≥1\frac{a}{b}\cdot\frac{(q^2+q+1)(H^2+H+1)}{q^2H^2}\ge1; multiply by the positive number bq2H2bq^2H^2. □

Remark 6.8 (Why almost every qq dies). To first order, with exponents 2, the constraint asks 1/q+1/U2≳δ∗1/q+1/U_2\gtrsim\delta^* (with R∗=1+δ∗R^*=1+\delta^*), while (5) asks 1/q+1/U2+1/U3≲δ1/q+1/U_2+1/U_3\lesssim\delta, and after deepening δ\delta and δ∗\delta^* agree to within O(T−3)O(T^{-3}). So U2U_2 is squeezed into a window whose width is of the order of the third-order terms; (6.3) checks whether that window still contains an integer, and it almost never does. By Lemma 6.7 each test costs a few integer multiplications. In the certification run for k=10k=10, 5.16×1095.16\times10^9 candidates qq were discarded in this way.

Counting unfactored cofactors

Definition 6.9 (Unfactored cofactor). When the closure (R3) factors a piece Φd(p)\Phi_d(p) of σ(pF(p))\sigma(p^{F(p)}), it removes the primes below 10510^5, the primes of C∪{3}C\cup\{3\} and the primes pinned so far. If the remaining part c>1c>1 is composite, is not a prime power, and is too large to factor within the budget, cc is called an unfactored cofactor.

Lemma 6.10. An unfactored cofactor cc has at least two distinct prime factors, and each of them is an unknown prime of SS (an element of S∖CS\setminus C).

Proof. A composite integer that is not a prime power has at least two distinct prime factors. Each prime factor of cc divides σ(pF(p))\sigma(p^{F(p)}), so it lies in S∪{3}S\cup\{3\} (Lemma 2.2); it is not 3 and not in CC, since those primes were removed from cc. □

Rule 6.11 (Coprime cofactors). Let c1,…,ctc_1,\ldots,c_t be the unfactored cofactors produced at a node, let PP be the product of all primes pinned at that node, and let F⊆{c1,…,ct}\mathcal{F} \subseteq\{c_1,\ldots,c_t\} be a family of cofactors that are pairwise coprime and each coprime to PP. If

#{pins}+2#F>s,\#\{\text{pins}\} + 2\#\mathcal{F} > s,

the node is empty.

Soundness. For a friend belonging to the node, the pins are distinct unknown primes. By Lemma 6.10, each c∈Fc \in\mathcal{F} contributes at least two distinct unknown primes; they are not pins (gcd⁡(c,P)=1\gcd(c,P)=1), and two different members of F\mathcal{F} share none (they are coprime). So NN has at least #{pins}+2#F\#\{\text{pins}\} + 2\#\mathcal{F} distinct unknown primes, but it has exactly ss.

The program applies the rule to a whole node (step 1 of the partition) and also, in the budget cases (R4), to the pins and cofactors of each single assignment of the budget. The proof is the same in both cases: only the pins and the cofactors of the set under consideration are used.

Lemma 6.12 (Tight family). If no prime was pinned and 2#F=s2\#\mathcal{F}=s, then every unknown prime divides ∏c∈Fc\prod_{c\in\mathcal{F}}c, and each c∈Fc\in\mathcal{F} has exactly two distinct prime factors.

Proof. By the proof of Rule 6.11, the members of F\mathcal{F} contain at least 2#F=s2\#\mathcal{F}=s distinct unknown primes. There are exactly ss unknowns, so these are all of them, and no member can have a third distinct prime factor.

Lemma 6.12 extends narrowing (Lemma 5.7, which is the case s=2s=2, #F=1\#\mathcal{F}=1) to s=4,6,…s=4,6,\ldots: the smallest unknown is searched only among the prime factors of ∏c∈Fc\prod_{c\in\mathcal{F}}c below the index stop.

A correction to the closure rule

The closure of [7], and our port of it, discarded a node when #{pins}+e>s\#\{\text{pins}\}+e>s, where ee is twice the largest number of unfactored cofactors coming from a single known prime. A cofactor is stripped of the primes pinned before it is computed, but a prime pinned later, from the closure of another fixed exponent, may divide it. Its two “further” unknown primes then include that pin, and the count is too large.

Proposition 7.1. The rule above is unsound. Let p3=1091p_3=1091, so that u=σ(p32)=1191373u=\sigma(p_3^2)=1191373 is prime, and let q1=50038757q_1=50038757, so that σ(q12)=u⋅2101673659\sigma(q_1^2)=u\cdot2101673659 with 21016736592101673659 prime. With a factoring budget below 52 bits and the fixed exponents processed in the order q1,p3q_1,p_3, the node with C={5,p3,q1}C=\{5,p_3,q_1\}, F(q1)=F(p3)=2F(q_1)=F(p_3)=2 and s=2s=2 is discarded, although the two unknown primes needed, uu and 21016736592101673659, fit into s=2s=2.*

Proof. Processing q1q_1 first, σ(q12)\sigma(q_1^2) (of 52 bits) cannot be factored within the budget and becomes an unfactored cofactor: e=2e=2. Processing p3p_3 next pins uu. The rule counts 1+2=3>21+2=3>2. But the cofactor u⋅2101673659u\cdot2101673659 is divisible by the pin uu, so only one further unknown prime is needed.

A planted target with this structure (§ 10) was indeed lost by the earlier program. The corrected rule is Rule 6.11 applied to the cofactors of each single prime, with PP the product of all pins of the node. Its premise holds: the cofactors of one prime pp come from different pieces Φd(p)\Phi_d(p) and Φd′(p)\Phi_{d'}(p), which by Lemma 2.3 share only primes dividing dd′dd'; these are below 10510^5 (in our runs d<105d<10^5 is enforced) and were removed, so the cofactors are pairwise coprime. The same correction is made in the budget cases (R4). With the real budget of 160 bits the faulty situation needs a coincidence between two unrelated cyclotomic values. The node counts for k≤8k\leq8 are identical before and after the correction, and for k=9k=9 the corrected program again produces exactly 36,554,260 nodes, the count of the original run; so the gap did not affect any of the runs for k≤9k \le9.

The computation

The long runs were made with PARI/GP 2.17.2 on a 12-thread machine with ECC memory; the tests of § 10 and the smaller timings of § 9 with PARI/GP 2.15.4 on a 2-thread machine (the searches for B=1037B = 10^{37} and 103810^{38} ran on the 12-thread machine). The program is core/omega_k.gp with the driver experiments/certify_omega_k.gp. The top of the tree is cut into tasks that are run in parallel; a task exceeding a time limit is abandoned and expanded into smaller tasks, and every node is counted once. A run is accepted only if no task is pending or failed, no node is refused and no friend is found.

kknodesremarks
1–71, 1, 3, 5, 7, 55, 459
826,222
936,554,2601 h 28 min on 12 threads (Block 7 only)
10157,210,96211 h 23 min on 12 threads, 15 rounds (Blocks 7 and 8)

Table 1 (PDF p. 16). Size of the certified trees.

For k=10k = 10 the settings are: cofactors up to 160 bits are factored; Φd(p)\Phi_d(p) is evaluated for φ(d)≤2000\varphi(d) \le2000 and at most 4000 bits; the exponent bound is used for known primes below 10610^6; Block 8 is applied to bands of more than 1000 primes. Before the certification run, a census run with the same rules (which records, instead of listing, any node whose listing exceeds 10410^4 primes) finished in 8 h 49 min on 12 threads with 149,823,612 nodes, no refusal and four recorded nodes, all with C={5,7,11,13,29,19531}C = \{5, 7, 11, 13, 29, 19531\}, a5=6a_5 = 6, s=4s = 4 and a band of 16,690 primes. These four nodes were then run separately and closed in 45 to 106 minutes each (1.0 to 4.1 million nodes, 8.1×1088.1 \times10^8 discarded primes each). The certification run itself (same settings, with the primality policy of § 8.1) finished after 15 rounds and 40,988 s with 157,210,962 nodes, no pending or failed task, no refused node and no friend; 5.16×1095.16 \times10^9 primes were discarded by the arithmetic test of Rule 6.6 and 8.1×1068.1 \times10^6 listings were narrowed to the prime factors of cofactors. Rounds 9–14 each split the same few tasks again; they are pieces of the four heavy nodes above.

Primality

A composite cofactor wrongly declared prime would create a false pin, so primality matters in one direction. Factorisations and multiplicative orders use proven primes. A cofactor of at most 400 bits is proved prime; a larger one is accepted if it passes the Baillie–PSW test and 20 rounds of Miller–Rabin with random bases, and is written to a list, to be proved separately. For k=9k = 9 the list has 436 primes, and all of them are proved: 432 by the APRCL test (isprime), and the four largest (of about 5230, 6684, 7283 and 17512 bits; two of them are Φ125(q)/1255\Phi_{125}(q)/1255 and Φ125(q′/5)\Phi_{125}(q'/5), which are beyond the practical range of APRCL, by the ECPP implementation of PARI/GP (primecert). The four ECPP certificates were checked with primecertisvalid and are distributed with the code, so they can be re-checked independently. For k=10k = 10 the list has 4,328 primes of 401 to 3,596 bits, and all 4,328 are proved by the APRCL test. Thus the runs for k≤10k \le10 rest on no unproved primality claim.

Implementation notes

(i) In the “last unknown” rule (R5), a prime ℓ∣r−1\ell\mid r-1 of tens of millions makes Φℓ′(Umax⁡)\Phi_{\ell}'(U_{\max}) a number of nearly 10910^9 bits. For such ℓ\ell the solutions UU are found by scanning the primes UU of the (short) admissible interval and computing vq(Φℓ′(U))v_q(\Phi_{\ell}'(U)) modulo powers of qq, with the size comparison Φℓ′(U)>Uℓ−1\Phi_{\ell}'(U)>U^{\ell-1}. (ii) The time limit of a task is tested between nodes and, inside a saturated listing, every 8192 listed primes. The partial results of an abandoned task are discarded and the task is expanded again from its nodes, so where the limit is tested does not affect soundness. (iii) Narrowing needs every prime factor of a cofactor cc below the index stop DD. These are found with PARI’s factor(c,D), which returns all prime factors of cc below DD (we checked this against trial division, also for D>232D>2^{32}).

A lower bound for the least friend

The bounded search

The project [7] contains an exhaustive bounded search. For a bound BB and a number kk of distinct primes, it enumerates the sets SS of kk primes with min⁡S=5\min S=5 and ∏p∈Sp2≤B\prod_{p\in S}p^2\le B, and for each set the exponent vectors (ap)(a_p) (even, ap≥2a_p\ge2) with ∏p∈Spap≤B\prod_{p\in S}p^{a_p}\le B (the cyclotomic closure is not used in this search); it prunes with exact index bounds as in § 3, and tests every remaining vector, called a signature, against σ(N)/N=9/5\sigma(N)/N=9/5. Since every exponent is at least 2, a friend NN satisfies N≥(∏p∈Sp2)N\ge\left(\prod_{p\in S}p^2\right), so only finitely many kk can occur below BB. Starting that search at k=10k=10 (Thackeray’s bound), [7] reports that the least friend of 10 exceeds 103210^{32}.

Theorem 1.1 alone gives only N≥(5⋅7⋯41)2≈2.6×1027N\ge(5\cdot7\cdots41)^2\approx2.6\times10^{27}. But the case k=10k=10 is by far the largest part of the bounded search, and without it the search reaches much further.

Corollary 9.1. A friend of 10 is larger than 103810^{38}.

Proof. Let NN be a friend of 10 and k=ω(N)k=\omega(N). By Theorem 1.1, k≥11k\ge11.

Large kk. The product of the 15 smallest primes greater or equal to 5 is approximately 1.03×1041>10381.03\times10^{41}>10^{38}. Since every exponent of NN is at least 2 and its primes are at least the kk smallest primes greater or equal to 5, a friend with k≥15k\ge15 is larger than 103810^{38}.

11≤k≤1411\le k\le14. The bounded search for B=1038B=10^{38} finds no friend for k=11,12,13,14k=11,12,13,14. It visits 9,632,870,504, 17,633,755, 338 and 5 nodes and tests 9,843,884,172, 10,534,449, 0 and 0 signatures respectively, 9,854,418,621 signatures in all, in 36,520 s on 12 threads (36,439 s of it at k=11k=11). (For k=14k=14 the search is needed: (5⋅7⋯53)2≈2.95×1037<1038(5\cdot7\cdots53)^2\approx2.95\times10^{37}<10^{38}.) □

BBsignatures tested, k≥11k\ge11time
103210^{32}3,6330.2 s
103310^{33}139,6742.7 s
103410^{34}2,312,04235 s
103510^{35}25,035,001304 s
103710^{37}1,544,940,7056,147 s
103810^{38}9,854,418,62136,520 s

Table 2. Bounded search above ω=10\omega=10.

Verification, and what the results rest on

The following checks are verified during the computation to ensure a wrong rule never eliminates a node that could have contained a valid friend.

  • Bound tests for the exponent bound of Proposition 4.1. Every integer NN satisfies σ(N)/N=τ\sigma(N)/N=\tau for its own τ=σ(N)/N\tau=\sigma(N)/N, and the bound and its proof hold for such a target, with the primes of the numerator of τ\tau in place of 3. So for an arbitrary NN with even exponents, a prime r∣Nr\mid N, an arbitrary split of the other primes of NN into known (fixed, free, or free with an upper bound) and unknown ones, and Li=UiL_i=U_i, the program must return A≥arA\ge a_r. This holds in all of about 58,000 random instances: 28,192 with several open terms, 28,236 with a single open term, and 1,170 with unknowns of very different Wieferich levels, which test the separate bounds LiL_i. In more than a quarter of them the bound is attained (A=arA=a_r), so the test is not trivially satisfied. Of twelve deliberately wrong variants of the bound, nine are detected by this test; the other three each remove one unknown prime from the count in Step 2 of the proof, an error that the slack of the unknown’s own term hides, and they are not detected by it.

  • Planted targets. For a number N0N_0 of the right shape, the program is run with the target I(N0)I(N_0) in place of 9/59/5 and a target-independent subset of the rules; it must find N0N_0 exactly once. This is done for targets with three and four unknown primes in and above the band, with free exponents, at nodes carrying a saturation constraint, and for the configurations of § 5–§ 7.

  • Lemma checks against brute force or an independent computation (43 checks for Block 8, 45 for the earlier blocks).

  • Mutation tests. 21 deliberately unsound edits of Block 8 and of the corrected closure are all detected; 7 of them only by lemma checks, since no planted target reaches the tail of a region step (it would need an exponent beyond the bound AA of Rule 6.5, hence an unfactorable target).

  • Adversarial review. Five separate reviews were carried out by fresh instances of an AI system, each given the code and this paper and asked to find a configuration that a rule discards although it contains a solution: Block 7, Block 8, the closure and cofactor rules with the correction of § 7, the bounded search of § 9, and arithmetic exactness together with the handling of tasks, checkpoints and errors. They found no soundness error. They found a number of places where the text did not describe the program exactly, all corrected in this version, and they added differential tests: the saturated listing, the deepening and the lower lift against reference implementations written from the statements here (several thousand random cases), planted targets on the boundaries of the constraints, brute-force checks of step 1 of the partition and of the budget cases on 729 and 472 random configurations, and 1,560 comparisons of the bounded search with an independent brute force. That brute force alone also settles k=13k=13 and k=14k=14 for B=1038B=10^{38}.

Code availability

The complete PARI/GP source of the certifier and of the bounded search, the test suites (planted targets, lemma checks and mutation tests), the notes containing the proofs of Blocks 7 and 8, and the ECPP certificates of § 8.1 are available as a single archive at

http://elliptic.group/files/solitary10-gp.tar.bz2

with SHA-256 checksum

3b6e24d0ad87ad304a9bec8afad30480143d536dd27b2bb2220329d1cdf30701

The README.md file in the archive gives the exact commands for every run reported in § 8–§ 9.

Use of an AI system

The PARI/GP port, Blocks 7 and 8, their proofs, the tests and this paper were produced with the help of an AI system in an extended collaboration with the author.

Acknowledgements

This work builds directly on the solitary10 project of Caio Comitre Rossi and on the results of Ward and Thackeray. We thank H. R. Thackeray for correspondence about this work and in particular for confirming the correction to the hypothesis of Corollary 6 of [2] discussed after Proposition 4.1.

Email address: [email protected]

References

  1. [1]J. Ward, Does ten have a friend? Int. J. Math. Comput. Sci. 3 (2008), 153–158; arXiv:0806.1001.arxiv.org/abs/0806.1001
  2. [2]H. (M.) R. Thackeray, Each friend of 10 has at least 10 nonidentical prime factors, Indag. Math. 35 (2024), no. 3, 595–607; arXiv:2310.15900.arxiv.org/abs/2310.15900
  3. [3]T. Chatterjee, S. Mandal and S. Mandal, A note on necessary conditions for a friend of 10, arXiv:2404.00624.
  4. [4]T. Chatterjee, S. Mandal and S. Mandal, On characterizing potential friends of 20, arXiv:2409.04451.
  5. [5]S. Mandal, Prime divisors of 10’s friends: a generalization of prior bounds, arXiv:2412.02701.
  6. [6]S. Mandal, Exploring the relationships between the divisors of friends of 10, arXiv:2504.08295.
  7. [7]C. Comitre Rossi, solitary10, software, https://github.com/caioross/solitary10, commit f4ac551.
  8. [8]K. Zsigmondy, Zur Theorie der Potenzreste, Monatsh. Math. Phys. 3 (1892), 265–284.DOI

Paper details

vlnc:W_axj6whkj
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents