betaFeedback

WorksMathematics

On a problem on partitions into distinct primes

Abstract

For a positive integer nn, we write L(n)L(n) in place of the maximum number of distinct primes whose sum is nn, assuming there is a way of writing nn as a sum of distinct primes, with L(n)=0L(n) = 0 otherwise. Again if nn admits a partition into distinct primes, then we let K(n)K(n) denote the number of parts in the unique partition that has a largest product, with K(n)=0K(n) = 0 otherwise. In the latest editions of Guy's classic text on unsolved problems in number theory, the problem as to whether or not L(n)−K(n)L(n) - K(n) is unbounded was left open, and it appears that this has remained open. We solve this problem in the affirmative. Our proof relies, to a large extent, on a consequence of Vinogradov's theorem together with a 1948 result due to Sierpiński on the existence of primes whose gaps to the immediately preceding and following primes both exceed any prescribed positive bound.

Introduction

The study of partitions of integers into primes is of importance within many areas in additive number theory and in the number-theoretic study of integer partitions. This is evidenced by the roles played by Goldbach-type problems, not to mention research on asymptotic properties concerning the growth of prime partitions. In this paper, we solve, by building on our extensive interactions with GPT-6 Astra Pro, a problem that is given in the latest editions of Guy’s classic texts on unsolved problems in number theory [4 pp. 258–259] [5 p. 394] and that concerns partitions into primes and that seems to have remained open.

Guy [4 pp. 258–259] [5 p. 394] noted that Riddell and Taylor posed the following problem: Given any partitions of a positive integer nn into distinct primes, is it necessarily the case that the unique such partition with a maximal product of (distinct) parts is among the partitions of nn into (distinct) primes with a maximum number of parts? This was answered in the negative, via an explicit counterexample, by Selfridge, and McCranie later determined that Selfridge’s counterexample is the least counterexample. Guy then asked whether the cardinalities of the two sets suggested in the preceding question can differ by an arbitrarily large amount, and this is clarified below. This question is given as being open in both the latest edition of Guy’s text from 2004 and in the preceding version from 1994.

Let nn be a positive integer. Suppose that nn admits a partition into distinct primes. Among all finite sets of (distinct) primes whose elements sum to nn, we write PnP_n to denote the set for which the product of the elements is greatest, noting that this is unique by the Fundamental Theorem of Arithmetic. Now, let SnS_n be any (fixed) finite set that is of maximum cardinality and that consists of (distinct) primes summing to nn (noting that the value ∣Sn∣\lvert S_n\rvert is unique and well defined, regardless of how SnS_n is chosen according to the given conditions). We then write K(n)=∣Pn∣K(n) = \lvert P_n\rvert and L(n)=∣Sn∣L(n) = \lvert S_n\rvert. If nn is such that there are no partitions of nn into distinct primes, or if n=0n = 0, then we let L(n)=K(n)=0L(n) = K(n) = 0.

The above problem from Guy’s monograph on unsolved problems in number theory [4 §F19] [5 §F19] asks (in an equivalent way) whether or not L(n)−K(n)L(n) - K(n) is unbounded. This is equivalent to the proposition

∀r∈N ∃n∈N L(n)−K(n)≥r.(1)\forall r \in\mathbb{N}\ \exists n \in\mathbb{N}\ L(n) - K(n) \ge r. \tag*{(1)}

We solve this problem in the affirmative in Section 2 below.

Background

The integer sequence (L(n):n∈N0)(L(n) : n \in\mathbb{N}_0) defined above agrees with the entry in the On-line Encyclopedia of Integer Sequences1 indexed as A261153. It seems that the integer sequence (K(n):n∈N0)(K(n) : n \in\mathbb{N}_0), according to any equivalent version of the definition above for this sequence, is not currently indexed in the OEIS. The OEIS entry A053020 is defined, in an equivalent way, as the sequence of integers nn for which K(n)K(n) and L(n)L(n) differ, beginning with (319,372,492,…)(319, 372, 492, \ldots). Based on the extant material in the OEIS entry A053020, it seems that Guy’s problem, as formulated above, has not been solved previously.

A number of past research efforts have concerned topics related to Guy’s problem, as formulated above. Notably, Deléglise and Nicolas [1, 2] investigated the behavior of

h(n)=max⁡{∏p∈Ap∣A is a finite set of primes, ∑p∈Ap≤n}.(2)h(n)=\max\left\{\prod_{p\in A}p \mathrel{\big|} A\text{ is a finite set of primes},\ \sum_{p\in A}p\le n\right\}. \tag*{(2)}

Observe that: For each positive integer nn admitting a partition into distinct primes, the unique prime set attaining

max⁡{∏p∈Ap∣A is a finite set of primes, ∑p∈Ap=n},\max\left\{\prod_{p\in A}p \mathrel{\big|} A\text{ is a finite set of primes},\ \sum_{p\in A}p=n\right\},

as opposed to (2), is of cardinality K(n)K(n) (according to our definition of K(n)K(n) above). Letting ω(k)\omega(k) denote the number of distinct prime factors of a positive integer kk, it follows from the work of Deléglise and Nicolas [1 Theorem 6.1 and Corollary 6.1] that

ω(h(n))=max⁡0≤m≤nL(m),\omega(h(n))=\max_{0\le m\le n}L(m),

and Deléglise and Nicolas subsequently provided a related identity for ω(h(n))\omega(h(n)) [2 Theorem 2]. Thus the material from Deléglise–Nicolas is not directly applicable to the Guy problem stated above.

Also, Kumar [6] studied generating functions and related identities for the norms, or products of parts, of prime partitions in which repeated parts are permitted. The enumeration of partitions into primes has also been studied asymptotically; see, for example, Vaughan’s work [8].

For each positive integer nn admitting a partition into distinct primes, the minimum product of such a partition is the term of index nn in the OEIS sequence A064502; the entry assigns zero when no such partition exists.

A full solution

For a positive integer nn such that there exists at least one partition of nn into distinct primes, the set PnP_n is one of the prime sets associated with the cardinality maximization used to define SnS_n. Therefore, K(n)≤L(n)K(n) \le L(n), and we see that the same relation holds for the remaining values for nonnegative integers nn, for which K(n)K(n) and L(n)L(n) vanish.

Let AA be a finite set consisting of integers exceeding 1. We then write s(A)=∑a∈Aas(A) = \sum_{a\in A} a and v(A)=∏a∈Aav(A) = \prod_{a\in A} a, with the understanding that s(∅)=0s(\varnothing) = 0 and that v(∅)=1v(\varnothing) = 1. An inductive argument can be used to verify that

s(A)≤v(A).(3)s(A) \le v(A). \tag*{(3)}

Now, suppose that AA, as defined above, consists of primes. Then we say that AA is product-minimal for its sum or simply product-minimal if v(A)≤v(B)v(A) \le v(B) for each finite set BB of primes such that s(B)=s(A)s(B) = s(A). Also observe that: For each positive integer nn admitting a partition into distinct primes, a set of primes summing to nn with a minimal product exists and is unique (by the Fundamental Theorem of Arithmetic).

The following result is given in an equivalent way in a 1948 paper due to Sierpiński [7], and this, in turn, was proved using Dirichlet’s theorem on primes in arithmetic progressions [3]. For brevity, we omit repeating Sierpiński’s argument.

Lemma 1. [7] For each positive integer HH, there are arbitrarily large primes q>Hq > H such that qq is the unique prime in [q−H,q+H][q-H, q+H] [7].

Example 1. For H=6H = 6, we may verify that the smallest primes qq as in Lemma 1 are as in Table 1. The integer sequence in the second column in Table 1 agrees with the OEIS sequence A137870.

HHqq[q−H,q+H][q-H,q+H]
6211[?, ?]
6293[?, ?]
6409[?, ?]
6479[?, ?]
6631[?, ?]
6691[?, ?]
6701[?, ?]
6709[?, ?]
6719[?, ?]
6787[?, ?]

Table 1. An illustration of Lemma 1, for H=6H=6 and for the smallest associated values for qq.

Lemma 2. Let AA denote a nonempty and finite set of primes that is product-minimal. Then there are arbitrarily large primes q>s(A)q > s(A) such that A∪{q}A \cup\{q\} is product-minimal.

Proof. Define H=4v2(A)H = 4v^{2}(A). According to Lemma 1, it is possible to select an arbitrarily large prime q>max⁡{s(A),H}q > \max\{s(A), H\} that is the unique prime in [q−H,q+H][q-H, q+H]. Since each member of AA is at most s(A)<qs(A) < q, we see that q∉Aq \notin A. Consequently, the relations among

s(A∪{q})=s(A)+q(4)s(A \cup\{q\}) = s(A) + q \tag*{(4)}

and

v(A∪{q})=qv(A)(5)v(A \cup\{q\}) = qv(A) \tag*{(5)}

hold. So, from the relations in (4) and (5), we find that there is at least one finite set BB of primes such that

s(B)=s(A)+q(6)s(B) = s(A) + q \tag*{(6)}

and

v(B)≤qv(A).(7)v(B) \le qv(A). \tag*{(7)}

We then let BB be an arbitrary set of this form.

We claim that it is necessarily the case that B=A∪{q}B = A \cup\{q\}. In this direction, we set R=v(B∖{max⁡(B)})R = v(B \setminus\{\max(B)\}) and u=s(B∖{max⁡(B)})u = s(B \setminus\{\max(B)\}). We thus have that

max⁡(B)+u=s(A)+q(8)\max(B) + u = s(A) + q \tag*{(8)}

and

max⁡(B)R≤qv(A).(9)\max(B)R \le qv(A). \tag*{(9)}

Of course, each element in BB is at most max⁡(B)\max(B). This gives us that

s(A)+q≤∣B∣max⁡(B).(10)s(A) + q \le|B|\max(B). \tag*{(10)}

A combined application of (9) and (10) gives us that

R≤qv(A)max⁡(B)≤∣B∣qv(A)s(A)+q<∣B∣v(A).(11)R \le\frac{qv(A)}{\max(B)} \le\frac{|B|qv(A)}{s(A) + q} < |B|v(A). \tag*{(11)}

Of course, since B∖{max⁡(B)}B \setminus\{\max(B)\} has ∣B∣−1|B|-1 members, each of which exceeds 11, we find that

R≥2∣B∣−1.(12)R \ge2^{|B|-1}. \tag*{(12)}

We may verify (using an inductive argument) that

ℓ2≤2ℓ+1(13)\ell^2 \le2^{\ell+1} \tag*{(13)}

holds for each positive integer ℓ\ell. A combined application of (12) and (13) then produces

∣B∣≤2R.(14)|B| \le2\sqrt{R}. \tag*{(14)}

From (11) and (14) together, we deduce that

R<2v(A)R.(15)R < 2v(A)\sqrt{R}. \tag*{(15)}

Observe that v(A)>0v(A)>0. So, the relation in (15) leads us to R<4v2(A)=HR<4v^2(A)=H. By then exploiting the relation in (3), we arrive at the relations among

u≤R<H(16)u \le R < H \tag*{(16)}

and

s(A)≤v(A)<H.(17)s(A) \le v(A) < H. \tag*{(17)}

Using (8), (16), and (17) together, this gives us that

∣max⁡(B)−q∣=∣s(A)−u∣<H.(18)|\max(B)-q|=|s(A)-u|<H. \tag*{(18)}

Now, observe that max⁡(B)\max(B) is prime. Also, recall that we chose qq as the unique prime in [q−H,q+H][q-H,q+H], by virtue of Lemma 1. So, from (18), we can conclude that the primes max⁡(B)\max(B) and qq are necessarily equal. So, from (6) and (7), respectively, we can deduce that s(B∖{q})=s(A)s(B\setminus\{q\})=s(A) and that v(B∖{q})≤v(A)v(B\setminus\{q\})\le v(A). The given assumption on AA concerning product-minimality allows us to conclude that v(B∖{q})=v(A)v(B\setminus\{q\})=v(A), whereas the Fundamental Theorem of Arithmetic gives us that B∖{q}=AB\setminus\{q\}=A. Consequently, the equality B=A∪{q}B=A\cup\{q\} holds. Since no other (finite) prime set summing to s(A)+qs(A)+q is such that the product of its elements is at most qv(A)qv(A), we obtain the desired result. □

Example 2. Let A={3,5,19}A=\{3,5,19\}. It can be shown that this is product-minimal. Define d=s(A)d=s(A). It can be shown that the smallest prime q>dq>d such that A∪{q}A\cup\{q\} is product-minimal is 3,323,497. The next smallest such primes are shown in Table 2.

AAqq
{3,5,19}\{3,5,19\}3,323,497
{3,5,19}\{3,5,19\}6,200,989
{3,5,19}\{3,5,19\}6,579,137
{3,5,19}\{3,5,19\}7,686,541
{3,5,19}\{3,5,19\}8,310,097
{3,5,19}\{3,5,19\}8,707,537
{3,5,19}\{3,5,19\}9,675,451
{3,5,19}\{3,5,19\}10,631,471
{3,5,19}\{3,5,19\}10,861,867
{3,5,19}\{3,5,19\}10,894,189

Table 2. An illustration of Lemma 2, for A={3,5,19}A = \{3, 5, 19\} and for the smallest associated values for primes qq.

Lemma 3. For each integer tt exceeding 1, there exist arbitrarily large odd integers dd whose product-minimal prime set is of size tt.

Proof. If tt is even, then we begin by setting A0={2}A_0 = \{2\}. If tt is odd, then we start with A0={3}A_0 = \{3\}. Observe that both singleton sets are product-minimal for their sums, as each of 2 and 3 admit only singleton prime partitions.

We then apply Lemma 2 successively t−1t-1 times. With each application of Lemma 2, the appended prime is larger than the preceding sum, and is thus distinct from all of the previous primes. Also observe that each appended prime is necessarily odd.

After completing the above appending procedure, we find that the resulting product-minimal set AA has precisely tt elements. If tt is even, then it consists of 2 along with t−1t - 1 odd primes, so the associated sum is odd. If tt is odd, it consists of tt odd primes, so we again obtain an odd sum.

In either case, regardless of the parity of tt, the final application of Lemma 2 in the above procedure can be taken as being arbitrarily large. So, the resulting odd integer d=s(A)d = s(A) can be made to be arbitrarily large. □

:::

Example 3. For t=3t = 3, it may be verified that the smallest odd integer dd whose product-minimal prime set has exactly tt elements is d=27d = 27, and the corresponding unique product-minimal prime set is A={3,5,19}A = \{3, 5, 19\}. The next smallest odd integers of the desired form, again for t=3t = 3, are shown in Table 3.

ttddAA
327{3,5,19}\{3,5,19\}
335{3,13,19}\{3,13,19\}
351{3,5,43}\{3,5,43\}
357{3,7,47}\{3,7,47\}
365{5,7,53}\{5,7,53\}
377{3,7,67}\{3,7,67\}
387{3,5,79}\{3,5,79\}
393{3,7,83}\{3,7,83\}
395{5,7,83}\{5,7,83\}
3117{3,5,109}\{3,5,109\}

Table 3. An illustration of Lemma 3, for t=3t = 3 and for the smallest associated values for dd, with the associated unique product-minimal prime set AA being displayed in the final column.

Goldbach’s weak conjecture purports that each odd integer exceeding 5 can be written as the sum of three not necessarily distinct primes. It is well known that what is referred to as Vinogradov’s theorem [9] implies that any sufficiently large odd integer can be expressed as a sum of three not necessarily distinct prime numbers. However, we require a refinement of this consequence, as we require the distinctness of the primes in such an expression.

For a positive integer NN, define

R3(N)=#{(p1,p2,p3):p1,p2,p3 are primes and p1+p2+p3=N},(19)R_3(N) = \#\{(p_1,p_2,p_3) : p_1, p_2, p_3 \text{ are primes and } p_1 + p_2 + p_3 = N\}, \tag*{(19)}

letting it be understood that the tuples involved in (19) are ordered and that repeated primes are permitted. Vinogradov proved (cf. [9 Theorem 2]) that: There are constants c>0c > 0 and N0>0N_0 > 0 such that: For each odd integer N≥N0N \ge N_0, the relation

R3(N)≥cN2(log⁡N)3(20)R_3(N) \ge c\frac{N^2}{(\log N)^3} \tag*{(20)}

holds. This leads us to the following consequence of (20).

Lemma 4. Each sufficiently large odd integer is the sum of three pairwise distinct primes (cf. [9]).

Proof. For R3(N)R_3(N) as defined in (19), we find that there exist at most NN triples of the form indicated in (19) such that p1=p2p_1=p_2, since, by fixing a choice for p1p_1, the final entry is determined by p3=N−2p1p_3=N-2p_1. We obtain the same bound for triples satisfying p1=p3p_1=p_3 and those satisfying p2=p3p_2=p_3. So, there are at most 3N3N triples of the form indicated in (19) containing a repeated prime. Since

Nlog⁡3N→∞ as N→∞,\frac{N}{\log^3 N}\to\infty\text{ as }N\to\infty,

the formulation of Vinogradov’s theorem in (20) gives us that R3(N)>3NR_3(N)>3N for all sufficiently large odd NN. So, at least one triple associated with R3(N)R_3(N) (again for sufficiently large odd NN) necessarily has three pairwise distinct entries. □\square

We next require the following result related to the AM-GM inequality. As below, the expression ee denotes the familiar constant often referred to as Euler’s number.

Lemma 5. Let x≥2x\geq2, and let G>0G>0. Let UU and VV be finite sets of integers satisfying

2≤u≤x(21)2\leq u\leq x \tag*{(21)}

for u∈Uu\in U and

v≥x+G(22)v\geq x+G \tag*{(22)}

for v∈Vv\in V and V≠∅V\neq\varnothing and

s(U)−s(V)=d>0.(23)s(U)-s(V)=d>0. \tag*{(23)}

Then the relations in

v(U)v(V)≥2e3(d+G)>d+G11\frac{v(U)}{v(V)}\geq\frac{2}{e^3}(d+G)>\frac{d+G}{11}

hold.

Proof. We begin by noting that ∣V∣≥1|V|\geq1, from one of the assumptions given above. Also, we observe that it is necessarily the case that ∣U∣>∣V∣|U|>|V|, because, otherwise, we would have that s(U)≤∣V∣x<∣V∣(x+G)≤s(V)s(U)\leq|V|x<|V|(x+G)\leq s(V), but this contradicts the hypothesis in (23). So, there exists a positive integer aa such that the elements in UU and VV can be written so that

U={u1<u2<⋯<ua+∣V∣}(24)U=\{u_1<u_2<\cdots<u_{a+|V|}\} \tag*{(24)}

and so that V={v1<v2<⋯<v∣V∣}V=\{v_1<v_2<\cdots<v_{|V|}\}. By then writing

τ=∑i=1aui.(25)\tau=\sum_{i=1}^{a}u_i. \tag*{(25)}

The condition in (23) then gives us that

τ−d=∑j=1∣V∣(vj−ua+j).(26)\tau-d=\sum_{j=1}^{|V|}(v_j-u_{a+j}). \tag*{(26)}

The hypothesis associated with (22) gives us that each difference on the right of (26) is at least GG, and we thus obtain that

τ≥d+∣V∣G≥d+G.(27)\tau\ge d+|V|G\ge d+G. \tag*{(27)}

Observe that ua+j≥uau_{a+j}\ge u_a (recalling (24)). Also, from (24) and (25), we can deduce that τ≤aua\tau\le au_a. So, this leads us to the relations such that

∑j=1∣V∣vjua+j=∣V∣+∑j=1∣V∣vj−ua+jua+j≤∣V∣+τ−dua≤∣V∣+a.\begin{aligned} \sum_{j=1}^{|V|}\frac{v_j}{u_{a+j}} &=|V|+\sum_{j=1}^{|V|}\frac{v_j-u_{a+j}}{u_{a+j}}\\ &\le|V|+\frac{\tau-d}{u_a}\\ &\le|V|+a. \end{aligned}

By applying the arithmetic-geometric mean inequality to the ∣V∣|V| positive numbers of the form vjua+j\frac{v_j}{u_{a+j}} for j∈{1,2,…,∣V∣}j\in\{1,2,\ldots,|V|\}, and by then applying the elementary inequality (1+a∣V∣)∣V∣≤ea\left(1+\frac{a}{|V|}\right)^{|V|}\le e^a, we find that

∏j=1∣V∣vjua+j≤(1∣V∣∑j=1∣V∣vjua+j)∣V∣≤(1+a∣V∣)∣V∣≤ea.\prod_{j=1}^{|V|}\frac{v_j}{u_{a+j}} \le\left(\frac{1}{|V|}\sum_{j=1}^{|V|}\frac{v_j}{u_{a+j}}\right)^{|V|} \le\left(1+\frac{a}{|V|}\right)^{|V|} \le e^a.

As a consequence, we obtain that

v(U)v(V)=∏i=1aui∏j=1∣V∣vjua+j≥e−a∏i=1aui.(28)\frac{v(U)}{v(V)} =\frac{\prod_{i=1}^{a}u_i}{\prod_{j=1}^{|V|}\frac{v_j}{u_{a+j}}} \ge e^{-a}\prod_{i=1}^{a}u_i. \tag*{(28)}

The expressions among u1u_1, u2,…,uau_2,\ldots,u_a are pairwise unequal and all exceed 1 (recalling (21)), and thus ui≥i+1u_i\ge i+1. Consequently, we have that

∏i=1aui≥ua∏i=1a−1(i+1)=a!ua≥(a−1)!τ.(29)\prod_{i=1}^{a}u_i\ge u_a\prod_{i=1}^{a-1}(i+1)=a!u_a\ge(a-1)!\tau. \tag*{(29)}

Now, observe that the ratio of consecutive terms in the sequence of expressions of the form (α−1)!e−α(\alpha- 1)!e^{-\alpha} for α∈N\alpha\in\mathbb{N} is α/e\alpha/e, and thus its minimum occurs at α=3\alpha= 3. Consequently, the relation

(α−1)!eα≥2e3(30)\frac{(\alpha- 1)!}{e^\alpha} \ge\frac{2}{e^3} \tag*{(30)}

holds for positive integers α\alpha.

Now, a combined application of (27), (28), (29), and (30) gives us that

v(U)v(V)≥(α−1)!eατ≥2e3τ≥2e3(d+G).\frac{v(U)}{v(V)} \ge\frac{(\alpha- 1)!}{e^\alpha}\tau\ge\frac{2}{e^3}\tau\ge\frac{2}{e^3}(d+G).

Since 2e3>111\frac{2}{e^3} > \frac{1}{11}, we obtain the desired result.

Now, for a given prime xx, define Bx={p:p is prime and p≤x}\mathcal{B}_x = \{p : p \text{ is prime and } p \le x\}. Also, we define σx=s(Bx)\sigma_x = s(\mathcal{B}_x) and Tx=v(Bx)T_x = v(\mathcal{B}_x), and this leads us toward the following Lemma.

Lemma 6. We write AA in place of the product-minimal prime set of sum d>0d > 0, and we then let M=v(A)M = v(A). Now, let x>dx > d be a prime, and let yy be the next prime after xx. Also, let G=y−xG = y - x, and assume that

G>11M.(31)G > 11M. \tag*{(31)}

Also, let n=σx−dn = \sigma_x - d. Then nn admits a partition into distinct primes, and its unique maximum-product prime set is Bx∖A\mathcal{B}_x \setminus A, which, moreover, equals PnP_n, for PnP_n as defined in § 0.1.

Proof. Each element of AA is at most d<xd < x. We thus have that A⊆BxA \subseteq\mathcal{B}_x. So, the difference Bx∖A\mathcal{B}_x \setminus A consists of distinct primes and is such that s(Bx∖A)=σx−d=ns(\mathcal{B}_x \setminus A) = \sigma_x - d = n. Also observe that Bx∖A\mathcal{B}_x \setminus A is nonempty, since x∉Ax \notin A. By construction, we also have that v(Bx∖A)=TxMv(\mathcal{B}_x \setminus A) = \frac{T_x}{M}.

Now, let EE denote an arbitrary finite set of primes such that s(E)=ns(E) = n. We then write U=Bx∖EU = \mathcal{B}_x \setminus E and V=E∖BxV = E \setminus\mathcal{B}_x.

From the above definitions of UU and VV, the set EE is obtained from Bx\mathcal{B}_x by removing the elements of UU and adjoining the elements of VV, i.e., so that

s(E)=s(Bx)−s(U)+s(V)=σx−s(U)+s(V).(32)s(E) = s(\mathcal{B}_x) - s(U) + s(V) = \sigma_x - s(U) + s(V). \tag*{(32)}

Also, from the choice of EE and the definition of nn, we find that s(E)=n=σx−ds(E) = n = \sigma_x - d. This and (32) together give us that

s(U)−s(V)=d.(33)s(U) - s(V) = d. \tag*{(33)}

Our construction also gives that

v(E)=Txv(V)v(U).(34)v(E) = T_x \frac{v(V)}{v(U)}. \tag*{(34)}

This leads us toward the following case analysis.

Case 1: First suppose that V=∅V = \emptyset. From (33), we obtain that s(U)=ds(U) = d. Now, since AA is product-minimal for prime sets summing to dd, we find that v(U)≥Mv(U) \ge M. So, from (34), we find that

v(E)≤TxM.(35)v(E) \le\frac{T_x}{M}. \tag*{(35)}

Equality in (35) holds if and only if v(U)=M=v(A)v(U) = M = v(A). By the Fundamental Theorem of Arithmetic, this is equivalent to U=AU = A. Since V=∅V = \emptyset, it follows that equality holds if and only if E=Bx∖AE = B_x \setminus A.

Case 2: Now, suppose that VV is nonempty. Observe that each element of UU is in [2,x][2,x]. Each element of VV is a prime greater than xx, and is thus at least y=x+Gy = x + G. Using Lemma 5 and (33), we obtain that

v(U)v(V)>d+G11>M,(36)\frac{v(U)}{v(V)} > \frac{d + G}{11} > M, \tag*{(36)}

where the last inequality in (36) is implied by (31). From (34), we find that

v(E)<TxM.v(E) < \frac{T_x}{M}.

So, if EE contains a prime greater than xx, then Case 2 gives v(E)<TxMv(E) < \frac{T_x}{M}, and, if each element of EE is at most xx, then Case 1 gives v(E)≤TxMv(E) \le\frac{T_x}{M}, with equality if and only if E=Bx∖AE = B_x \setminus A. Since EE was an arbitrary finite set of primes whose elements sum to nn these two cases show that v(E)≤v(Bx∖A)=TxMv(E) \le v(B_x \setminus A) = \frac{T_x}{M} for each such EE, with equality only when E=Bx∖AE = B_x \setminus A. As above, the elements of Bx∖AB_x \setminus A sum to nn. So, this set uniquely attains the maximum product, and, hence, by the definition of PnP_n, we have that Pn=Bx∖AP_n = B_x \setminus A, as desired.

We are now in a position to prove our main result, as below, and to solve Guy’s problem in the affirmative.

Theorem 1. For each positive integer rr, there exist infinitely many positive integers nn admitting partitions into distinct primes for which $L(n) - K(n) \ge r.

Proof. Fix a positive integer rr, and define t=r+3t = r + 3. By Lemma 3, we are permitted to choose an odd integer dd, sufficiently large so that Lemma 4 is applicable, such that the product-minimal prime set AA of dd has precisely tt elements, i.e., so that s(A)=ds(A) = d and ∣A∣=t|A| = t. We then define MM so that M=v(A)M = v(A). According to Lemma 4, there exists a set CC consisting of three distinct primes satisfying s(C)=ds(C) = d and ∣C∣=3|C| = 3. We henceforth let dd and AA and CC be fixed.

Now, we proceed to apply the Sierpiński Lemma, as formulated in Lemma 1, letting H=11MH = 11M. So, there are infinitely many primes xx exceeding dd for which xx is the unique prime in [x−11M,x+11M][x - 11M, x + 11M]. So, for each such xx, if yy is the next prime, then y−x>11My - x > 11M. We then set n=σx−dn = \sigma_x - d, with m=∣Bx∣m = |B_x|. By Lemma 6, we obtain that Pn=Bx∖AP_n = B_x \setminus A. Consequently, the equalities among

∣Pn∣=∣Bx∣−∣A∣=m−t(37)|P_n| = |B_x| - |A| = m - t \tag*{(37)}

hold. Each prime in CC is at most d<xd < x, so that C⊆BxC \subseteq B_x. As a consequence, the prime set Bx∖CB_x \setminus C is such that s(Bx∖C)=σx−s(C)=σx−d=ns(B_x \setminus C) = \sigma_x - s(C) = \sigma_x - d = n and is such that ∣Bx∖C∣=m−3|B_x \setminus C| = m - 3.

Now, recall the definitions of SnS_n and PnP_n given in § 0.1. By definition, the cardinality of SnS_n is at least that of every finite set of primes whose elements sum to nn, with

∣Sn∣≥∣Bx∖C∣=m−3.(38)|S_n| \ge|B_x \setminus C| = m - 3. \tag*{(38)}

A combined application of (37) and (38) then give us that

L(n)−K(n)=∣Sn∣−∣Pn∣≥(m−3)−(m−t)=t−3=r.\begin{aligned} L(n) - K(n) &= |S_n| - |P_n| \\ &\ge(m - 3) - (m - t) \\ &= t - 3 \\ &= r. \end{aligned}

There are infinitely many eligible primes xx. Also, recall that

σx=s(Bx)=∑p≤xp primep.\sigma_x = s(B_x) = \sum_{\substack{p \le x \\ p\ \mathrm{prime}}} p.

For eligible primes x1x_1 and x2x_2 such that x1<x2x_1 < x_2, we have that

σx2−σx1=∑x1<p≤x2p primep.(39)\sigma_{x_2} - \sigma_{x_1} = \sum_{\substack{x_1 < p \le x_2 \\ p\ \mathrm{prime}}} p. \tag*{(39)}

Since the right-hand side of (39) contains at least the positive term p=x2p=x_2, since x2x_2 is prime, we find that σx2−σx1≥x2>0\sigma_{x_2}-\sigma_{x_1}\ge x_2>0. So, as xx increases through distinct primes, the value σx\sigma_x strictly increases. So, since dd is fixed, the integers of the form n=σx−dn=\sigma_x-d are distinct (as xx increases through distinct primes). So, for rr as given above, infinitely many positive integers nn are such that L(n)−K(n)≥rL(n)-K(n)\ge r. Since rr was arbitrary, we obtain the desired result.

Conclusion

We briefly conclude with some further areas of study related to our construction given above.

Lemma 1 and the associated Table 1 raise questions in regard to growth properties associated with primes of the form qq given in Lemma 1, for fixed HH. In this direction, for a positive integer HH, and for a positive integer nn, we let qH(n)q_H(n) denote the nthn^{\mathrm{th}} smallest prime q>Hq>H such that qq is the unique prime in [q−H,q+H][q-H,q+H]. Then, for example, the infinite array (qi(j))(q_i(j)) begins with

(5711131719232931⋯233747536779838997⋯233747536779838997⋯5389157173211251257263293⋯5389157173211251257263293⋯211293409479631691701709719⋯211293409479631691701709719⋯211293631787797839124912591399⋯211293631787797839124912591399⋯⋮⋮⋮⋮⋮⋮⋮⋮⋮⋱).(40)\left( \begin{array}{ccccccccc} 5 & 7 & 11 & 13 & 17 & 19 & 23 & 29 & 31 & \cdots\\ 23 & 37 & 47 & 53 & 67 & 79 & 83 & 89 & 97 & \cdots\\ 23 & 37 & 47 & 53 & 67 & 79 & 83 & 89 & 97 & \cdots\\ 53 & 89 & 157 & 173 & 211 & 251 & 257 & 263 & 293 & \cdots\\ 53 & 89 & 157 & 173 & 211 & 251 & 257 & 263 & 293 & \cdots\\ 211 & 293 & 409 & 479 & 631 & 691 & 701 & 709 & 719 & \cdots\\ 211 & 293 & 409 & 479 & 631 & 691 & 701 & 709 & 719 & \cdots\\ 211 & 293 & 631 & 787 & 797 & 839 & 1249 & 1259 & 1399 & \cdots\\ 211 & 293 & 631 & 787 & 797 & 839 & 1249 & 1259 & 1399 & \cdots\\ \vdots& \vdots& \vdots& \vdots& \vdots& \vdots& \vdots& \vdots& \vdots& \ddots \end{array} \right). \tag*{(40)}

Each of the rows of the above array agrees with an extant OEIS sequence (up to offsets). For example, the second row agrees (up to an offset) with the OEIS sequence A007510 consisting of single primes. Similarly, the first column agrees with the OEIS sequence A102723, giving the smallest prime a(n)a(n) such that a(n)−xa(n)-x and a(n)+xa(n)+x, for x∈{1,2,…,n}x\in\{1,2,\ldots,n\}, are all composite. Sierpiński [7] proved, in an equivalent way, that the integer sequence (qH(1))H≥1(q_H(1))_{H\ge1} is indeed infinite (i.e., that qH(1)q_H(1) does indeed exist for each positive integer HH), but estimating the growth of this sequence is very difficult, since this is closely related to the behavior of prime gaps, i.e., since qH(1)q_H(1) is the smallest prime whose gaps immediately to the left and right are both strictly greater than HH. The remaining columns of the above array do not appear to currently be in the OEIS, and the main diagonal is not currently in the OEIS, and we encourage the investigation of these integer sequences.

Lemma 2 and the associated Table 2 raise questions on the behavior of primes of the form qq, for a fixed set AA of primes that is product-minimal. For fixed AA, let qA(n)q_A(n) denote the nthn^{\mathrm{th}} smallest prime such that q>s(A)q > s(A) and such that A∪{q}A \cup\{q\} is product-minimal. What can be said in regard to the growth of qA(n)q_A(n) for arbitrary n∈Nn \in\mathbb{N} and for fixed AA?

Also, Lemma 3 and the associated Table 3 raise questions concerning the behavior of the expressions of the forms tt and dd involved in Lemma 3. In this direction, for a fixed integer t≥2t \ge2, let dt(n)d_t(n) denote the nthn^{\mathrm{th}} smallest odd integer whose product-minimal prime set is of size tt, and let At(n)A_t(n) denote the associated prime set. What can be said, for example, in regard to the behavior of max⁡At(n)\max A_t(n) for fixed t∈N≥2t \in\mathbb{N}_{\ge2} and for arbitrary n∈Nn \in\mathbb{N}? Or, say, for arbitrary t∈N≥2t \in\mathbb{N}_{\ge2} and for fixed n∈Nn \in\mathbb{N}? What can be said in regard to the behavior of dt(n)d_t(n) for arbitrary n∈Nn \in\mathbb{N} and fixed t∈N≥2t \in\mathbb{N}_{\ge2}, or for arbitrary t∈N≥2t \in\mathbb{N}_{\ge2} and fixed n∈Nn \in\mathbb{N}?

AI disclosure

As indicated above, our above solution to Guy’s problem is based on our extensive interactions with GPT-6 Astra Pro, and this is described in more detail below. All AI-generated suggestions were substantially revised, corrected, and independently verified by the author, who assumes full responsibility for the mathematical content. The author’s use of AI is fully in accordance with editorial standards on the responsible, ethical, and transparent use of AI.

On 2026-10-10, the author inputted a prompt into GPT-6 Astra Pro containing an equivalent version of the problem from Guy’s text given by determining whether or not (1) holds (with definitions given for L(n)L(n) and K(n)K(n), and with an explicit attribution to Guy’s text on unsolved problems in number theory), concluding with an explicit request that GPT-6 Astra Pro solve the given problem. After 8m 42s of thinking, GPT-6 Astra Pro provided a response beginning with

I believe the following gives an affirmative proof, though a

claim settling this problem should be independently checked.

After extensive clarifications, corrections, revisions, suggestions, verifications, calculations, etc., through extensive discussions between the author and GPT-6 Astra Pro, and after extensive and careful reviews of such discussions on the part of the author, this provided a basis for the above solution, written by the author, to Guy’s problem.

For example, it was through the author’s investigations and computations associated with the infinite array illustrated in (40) that the author found (through the OEIS entry A102723) that the result given above as Lemma 1 was due (in an equivalent way) to Sierpiński [7], but GPT-6 Astra Pro had not previously been aware of this (and also was not able to access to the corresponding journal article).

References

  1. [1]M. Deléglise and J.-L. Nicolas. Maximal product of primes whose sum is bounded. Proc. Steklov Inst. Math., 282:S73–S102, 2013.
  2. [2]Marc Deléglise and Jean-Louis Nicolas. On the largest product of primes with bounded sum. J. Integer Seq., 18(2):article 15.2.8, 35, 2015.
  3. [3]P. G. L. Dirichlet. Beweis des Satzes, dass jede unbegrenzte arithmetische Progression, deren erstes Glied und Differenz ganze Zahlen ohne gemeinschaftlichen Factor sind, unendlich viele Primzahlen enthält. Abhandlungen der Königlich Preussischen Akademie der Wissenschaften, pages 45–81, 1837.
  4. [4]Richard K. Guy. Unsolved problems in number theory. Problem Books in Mathematics. Springer-Verlag, New York, second edition, 1994. Unsolved Problems in Intuitive Mathematics, I.
  5. [5]Richard K. Guy. Unsolved problems in number theory. Problem Books in Mathematics. Springer-Verlag, New York, third edition, 2004.
  6. [6]Abhimanyu Kumar. Analytic study of norms of prime partitions. Bull. Sci. Math., 171:Paper No. 103038, 12, 2021.DOI
  7. [7]W. Sierpiński. Remarque sur la répartition des nombres premiers. Colloq. Math., 1:193–194, 1948.DOI
  8. [8]R. C. Vaughan. On the number of partitions into primes. Ramanujan J., 15(1):109–121, 2008.DOI
  9. [9]I. M. Vinogradov. Some theorems concerning the theory of primes. Rec. Math. Moscow, n. Ser., 2:179–195, 1937.

Paper details

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

views · 9

downloads · 0

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

  • Mathematics

GPT-6 Astra (bare)

View statement
Looking for related papers…
Contents