betaFeedback

WorksMathematics

Positivity and negativity for hh-bases for nn

Abstract

A set AA of integers is an hh-basis for nn if every integer in [0,n]={0,1,2,…,n}[0,n] = \{0,1,2,\ldots,n\} belongs to the sumset hAhA, that is, can be represented as the sum of exactly hh not necessarily distinct elements of AA. The classical postage stamp problem asks for the largest integer nh(k)n_h(k) such that [0,nh(k)]⊆hA[0,n_h(k)] \subseteq hA for some set AA of nonnegative integers of size k+1k+1. We consider the effect of allowing negative elements. Let nh♭(k)n^{\flat}_h(k) be the largest integer such that [0,nh♭(k)]⊆hA[0,n^{\flat}_h(k)] \subseteq hA for some set AA of integers of size k+1k+1 containing at least one negative integer. For k=2k=2, we have nh♭(2)<nh(2)n^{\flat}_h(2) < n_h(2) if hh is odd or h=4h=4 and nh♭(2)=nh(2)n^{\flat}_h(2) = n_h(2) if hh is even and h≠4h \neq 4. Proofs of these comparison results were autonomously discovered and formally verified in Lean by https://aristotle.harmonic.fun/}{Aristotle}, a formal reasoning agent developed by https://www.harmonic.fun/}{Harmonic}. In this paper we give new proofs of these results.

Extremal functions for bases of order hh for nn

Let N0={0,1,2,3,…}\mathbb{N}_0=\{0,1,2,3,\ldots\} be the set of nonnegative integers and Z\mathbb{Z} the set of all integers. Define the interval of integers [u,v]={n∈Z:u≤n≤v}[u,v]=\{n\in\mathbb{Z}:u\le n\le v\}. Let

(N0k+1)={A⊆N0:∣A∣=k+1}\binom{\mathbb{N}_0}{k+1}=\{A\subseteq\mathbb{N}_0:|A|=k+1\}

and

(Zk+1)={A⊆Z:∣A∣=k+1}.\binom{\mathbb{Z}}{k+1}=\{A\subseteq\mathbb{Z}:|A|=k+1\}.

Then

(Zk+1)∖(N0k+1)={A⊆Z:∣A∣=k+1 and a<0 for some a∈A}.\binom{\mathbb{Z}}{k+1}\setminus\binom{\mathbb{N}_0}{k+1}=\{A\subseteq\mathbb{Z}:|A|=k+1\text{ and }a<0\text{ for some }a\in A\}.

Let AA be a set of integers. For every positive integer hh, the hh-fold sumset of AA, denoted hAhA, is the set of all sums of hh not necessarily distinct elements of AA. The set AA is a basis of order hh for nn (or an hh-basis for nn) if [0,n]⊆hA[0,n]\subseteq hA. Let nh(A)n_h(A) be the largest integer nn such that AA is a basis of order hh for nn, that is,

nh(A)=max⁡{n:[0,n]⊆hA}.n_h(A)=\max\{n:[0,n]\subseteq hA\}.

If 0∉hA0\notin hA, then nh(A)n_h(A) is undefined.

For example, if

A={−1,0,2}A=\{-1,0,2\}

then

hA=[−h,2h−2]∪{2h}hA=[-h,2h-2]\cup\{2h\}

and

nh(A)=2h−2.n_h(A)=2h-2.

If AA is a set of nonnegative integers, then nh(A)≥0n_h(A) \ge0 if and only if 0∈A0 \in A and nh(A)≥1n_h(A) \ge1 if and only if 0,1∈A0,1 \in A if and only if nh(A)≥hn_h(A) \ge h. The classical postage stamp problem for sets of nonnegative integers (introduced by Hans Rohrbach [3, 4] in 1937) is to compute the extremal function

nh(k)=max⁡{nh(A):A∈(N0k+1)}.n_h(k) = \max\left\{ n_h(A) : A \in\binom{\mathbb{N}_0}{k+1} \right\}.

An extremal basis for nh(k)n_h(k) is a set AA of k+1k+1 nonnegative integers such that nh(A)=nh(k)n_h(A) = n_h(k). If AA is an extremal basis for nh(2)n_h(2), then A={0,1,c}A = \{0,1,c\} for some integer c>1c > 1.

Alfred Stöhr [5] solved the postage stamp problem for k=2k = 2 in 1955. A proof is included in [2]. In Theorem 3.1 we give a new proof of Stöhr’s formula for nh(2)n_h(2).

Let [u][u] denote the integer part of the real number uu, that is, the unique integer nn such that n≤u<n+1n \le u < n+1.

Theorem 1.1 (Stöhr). For all positive integers hh,

nh(2)=⌊h2+6h+14⌋.n_h(2) = \left\lfloor\frac{h^2 + 6h + 1}{4} \right\rfloor.

For odd hh, there is one extremal basis:

{0,1,h+32}.\left\{0,1,\frac{h+3}{2}\right\}.

For even hh, there are two extremal bases:

{0,1,h2+1}and{0,1,h2+2}.\left\{0,1,\frac{h}{2}+1\right\} \quad\text{and} \quad\left\{0,1,\frac{h}{2}+2\right\}.

Nathanson [2] asked how the extremal problem changes if we consider sets that include at least one negative integer, that is, how does the extremal function

nhb(k)=max⁡{nh(A):A∈(Zk+1)∖(N0k+1)}.n_h^b(k) = \max\left\{ n_h(A) : A \in\binom{\mathbb{Z}}{k+1} \setminus\binom{\mathbb{N}_0}{k+1} \right\}.

compare with the extremal function nh(k)n_h(k)? An extremal basis for nhb(k)n_h^b(k) is a set AA of k+1k+1 integers such that nh(A)=nhb(k)n_h(A) = n_h^b(k) and there exists a∈Aa \in A with a<0a < 0. To compute nhb(k)n_h^b(k) and to construct the extremal bases for nhb(k)n_h^b(k) is much harder than the analogous problems for nh(k)n_h(k), even for k=2k = 2.

The AI system Aristotle [1] answered a “negativity” question for k=2k = 2, that is, for sets A={a,b,c}A = \{a,b,c\} with a<b<ca < b < c and a<0a < 0. Aristotle showed that nhb(2)<nh(2)n_h^b(2) < n_h(2) for all odd hh and for h=4h = 4, and that nhb(2)=nh(2)n_h^b(2) = n_h(2) for all even h≠4h \ne4. In this paper we give (revised and improved) proofs of these results. In a follow-up paper we aim to compute the exact value of nhb(2)n_h^b(2) for all hh.

Three lemmas

Lemma 2.1. Let A={a<b<c}A = \{a < b < c\} be a set of integers and let x=b−ax = b-a and y=c−ay = c-a. Then n∈hAn \in hA if and only if there exist nonnegative integers sns_n and tnt_n such that

sn+tn≤h(1)s_n + t_n \le h \tag*{(1)}

and

n=ha+snx+tny.(2)n = ha + s_n x + t_n y. \tag*{(2)}

Proof. We have n∈hAn \in hA if and only if there exist nonnegative integers rnr_n, sns_n, and tnt_n such that

rn+sn+tn=hr_n + s_n + t_n = h

and

n=rna+snb+tnc.n = r_n a + s_n b + t_n c.

Then sn+tn≤hs_n+t_n\le h and

n=rna+snb+tnc=(rn+sn+tn)a+sn(b−a)+tn(c−a)=ha+snx+tny.\begin{aligned} n &= r_na+s_nb+t_nc \\ &= (r_n+s_n+t_n)a+s_n(b-a)+t_n(c-a) \\ &= ha+s_nx+t_ny. \end{aligned}

Thus, n∈hAn\in hA implies (1) and (2).

Conversely, if conditions (1) and (2) are satisfied, then

rn=h−sn−tn∈N0r_n=h-s_n-t_n\in\mathbb{N}_0

and

n=ha+snx+tny=(rn+sn+tn)a+sn(b−a)+tn(c−a)=rna+snb+tnc∈hA.\begin{aligned} n &= ha+s_nx+t_ny \\ &= (r_n+s_n+t_n)a+s_n(b-a)+t_n(c-a) \\ &= r_na+s_nb+t_nc\in hA. \end{aligned}

Thus, (1) and (2) imply n∈hAn\in hA. This completes the proof. □

Lemma 2.2. Let A={a<b<c}A=\{a<b<c\} be a set of integers and let x=b−ax=b-a and y=c−ay=c-a. If [0,h+1]⊆hA[0,h+1]\subseteq hA, then

1≤x<y≤h+1(3)1\le x<y\le h+1 \tag*{(3)}

and

gcd⁡(x,y)=1(4)\gcd(x,y)=1 \tag*{(4)}

and

a>−h.(5)a>-h. \tag*{(5)}

Proof. We have [0,h+1]⊆hA[0,h+1]\subseteq hA. By Lemma 2.1, for all n∈[0,h+1]n\in[0,h+1] there exist sn,tn∈[0,h]s_n,t_n\in[0,h] such that sn+tn≤hs_n+t_n\le h and

n=ha+snx+tny.n=ha+s_nx+t_ny.

By the pigeonhole principle, there exist n1,n2n_1,n_2 with 0≤n1<n2≤h+10\le n_1<n_2\le h+1 and sn1=sn2s_{n_1}=s_{n_2}. Then tn1<tn2t_{n_1}<t_{n_2} and

h+1≥n2−n1=(tn2−tn1)y≥y.h+1\ge n_2-n_1=(t_{n_2}-t_{n_1})y\ge y.

This proves (3).

We have

0=ha+s0x+t0y∈hA0=ha+s_0x+t_0y\in hA

and

1=ha+s1x+t1y∈hA.1=ha+s_1x+t_1y\in hA.

Subtracting, we obtain

1=(s1−s0)x+(t1−t0)y1=(s_1-s_0)x+(t_1-t_0)y

and so

gcd⁡(x,y)=1.\gcd(x,y)=1.

This proves (4).

Because h+1∈hAh+1\in hA and y≤h+1y\le h+1, we have

h+1=ha+sh+1x+th+1y≤ha+(sh+1+th+1)y≤ha+h(h+1)h+1=ha+s_{h+1}x+t_{h+1}y\le ha+(s_{h+1}+t_{h+1})y\le ha+h(h+1)

and so

a≥−h−1+h+1h>−h,a\ge-h-1+\frac{h+1}{h}>-h,

proving (5). □

Let φ\varphi be the Euler phi-function.

Lemma 2.3. Let h≥3h \ge3. Then nhb(2)n_h^b(2) is the maximum of nh(A)n_h(A) for all sets A={a,a+x,a+y}A = \{a, a+x, a+y\} such that

1≤x<y≤h+1,gcd⁡(x,y)=1and−h<a<0.1 \le x < y \le h+1,\qquad\gcd(x,y)=1\qquad\text{and}\qquad-h < a < 0.

The number of sets AA satisfying these conditions is

(h−1)∑y=2h+1φ(y)≤(h−1)(h+12).(h-1)\sum_{y=2}^{h+1}\varphi(y) \le(h-1)\binom{h+1}{2}.

Proof. Let h≥3h \ge3 and A={−1,0,2}A=\{-1,0,2\}. Then

nhb(2)≥nh(A)≥2h−2≥h+1.n_h^b(2) \ge n_h(A) \ge2h-2 \ge h+1.

Thus, to compute nhb(2)n_h^b(2), it suffices to compute nh(A)n_h(A) only for sets AA such that [0,h+1]⊆hA[0,h+1]\subseteq hA. The result now follows directly from Lemma 2.2.

A general upper bound

Theorem 3.1. For all positive integers hh,

nhb(2)≤nh(2)=⌊h2+6h+14⌋.n_h^b(2)\le n_h(2)=\left\lfloor\frac{h^2+6h+1}{4}\right\rfloor.

Proof. For even hh, consider the sets

A1={0,1,h2+1}andA2={0,1,h2+2}.A_1=\left\{0,1,\frac{h}{2}+1\right\}\qquad\text{and}\qquad A_2=\left\{0,1,\frac{h}{2}+2\right\}.

The sumset hA1hA_1 contains the set

[0,h2+6h4]={(h2+1)q+r:q∈[0,h2] and r∈[0,h2]}\left[0,\frac{h^2+6h}{4}\right] = \left\{\left(\frac{h}{2}+1\right)q+r:q\in\left[0,\frac{h}{2}\right]\text{ and }r\in\left[0,\frac{h}{2}\right]\right\}
∪{(h2+1)2+r:r∈[0,h2−1]}\cup\left\{\left(\frac{h}{2}+1\right)^2+r:r\in\left[0,\frac{h}{2}-1\right]\right\}

and

h2+6h4+1∉hA1.\frac{h^2+6h}{4}+1\notin hA_1.

Therefore,

nh(A1)=h2+6h4.n_h(A_1)=\frac{h^2+6h}{4}.

The sumset hA2hA_2 contains the set

[0,h2+6h4]={(h2+2)q+r:q∈[0,h2−1] and r∈[0,h2+1]}\left[0,\frac{h^2+6h}{4}\right] = \left\{\left(\frac{h}{2}+2\right)q+r:q\in\left[0,\frac{h}{2}-1\right]\text{ and }r\in\left[0,\frac{h}{2}+1\right]\right\}
∪{(h2+2)h2+r:r∈[0,h2]}\cup\left\{\left(\frac{h}{2}+2\right)\frac{h}{2}+r:r\in\left[0,\frac{h}{2}\right]\right\}

and

h2+6h4+1∉hA2.\frac{h^2+6h}{4}+1\notin hA_2.

Therefore,

nh(A2)=h2+6h4.n_h(A_2)=\frac{h^2+6h}{4}.

For odd hh, consider the set

A3={0,1,h+32}.A_3=\left\{0,1,\frac{h+3}{2}\right\}.

The sumset hA3hA_3 contains the set

[0,h2+6h+14]={(h+32)q+r:q∈[0,h−12] and r∈[0,h+12]}∪{(h+32)(h+12)+r:r∈[0,h−12]}.\left[0,\frac{h^2+6h+1}{4}\right]=\left\{\left(\frac{h+3}{2}\right)q+r:q\in\left[0,\frac{h-1}{2}\right]\text{ and }r\in\left[0,\frac{h+1}{2}\right]\right\} \cup\left\{\left(\frac{h+3}{2}\right)\left(\frac{h+1}{2}\right)+r:r\in\left[0,\frac{h-1}{2}\right]\right\}.

and

h2+6h+14+1∉hA3.\frac{h^2+6h+1}{4}+1\notin hA_3.

Therefore,

nh(A3)=h2+6h+14.n_h(A_3)=\frac{h^2+6h+1}{4}.

It follows that

nh(2)≥⌈h2+6h+14⌉(6)n_h(2)\ge\left\lceil\frac{h^2+6h+1}{4}\right\rceil \tag*{(6)}

for all positive integers hh. We shall prove that, for all sets A∈(Z3)A\in\binom{\mathbb{Z}}{3},

nh(A)≤⌊h2+6h+14⌋.(7)n_h(A)\le\left\lfloor\frac{h^2+6h+1}{4}\right\rfloor. \tag*{(7)}

Let A={a,b,c}A=\{a,b,c\} with a<b<ca<b<c and let x=b−ax=b-a and y=c−ay=c-a. Inequality (7) holds if nh(A)≤hn_h(A)\le h. Thus, we can assume that

N=nh(A)≥h+1.N=n_h(A)\ge h+1.

By Lemma 2.2,

y≤h+1andgcd⁡(x,y)=1.y\le h+1\qquad\text{and}\qquad\gcd(x,y)=1.

Consider the congruence class ha−x(mody)ha-x\pmod y. There exist unique integers

n3∈[0,y−1]andn4∈[N−y+1,N]n_3\in[0,y-1]\qquad\text{and}\qquad n_4\in[N-y+1,N]

such that

n3≡n4≡ha−x(mody).n_3\equiv n_4\equiv ha-x\pmod y.

Then n3,n4∈hAn_3,n_4\in hA and

n4−n3≥(N−y+1)−(y−1)=N−2y+2.(8)n_4-n_3\ge(N-y+1)-(y-1)=N-2y+2. \tag*{(8)}

The congruence

n3=ha+sn3x+tn3y≡ha+sn3x≡ha−x(mody)n_3=ha+s_{n_3}x+t_{n_3}y\equiv ha+s_{n_3}x\equiv ha-x\pmod y

implies

(sn3+1)x≡0(mody).(s_{n_3}+1)x\equiv0\pmod y.

From gcd⁡(x,y)=1\gcd(x,y)=1, we obtain

sn3≡−1(mody).s_{n_3}\equiv-1\pmod y.

Then sn3≥0s_{n_3}\ge0 implies

sn3≥y−1s_{n_3}\ge y-1

and

n3≥ha+sn3x≥ha+(y−1)x.n_3\ge ha+s_{n_3}x\ge ha+(y-1)x.

Similarly,

sn4≥y−1.s_{n_4}\ge y-1.

The inequality tn4≤h−sn4t_{n_4} \le h-s_{n_4} implies

n4=ha+sn4x+tn4y≤ha+sn4x+(h−sn4)y=ha+hy−sn4(y−x)≤ha+hy−(y−1)(y−x).\begin{aligned} n_4 &= ha+s_{n_4}x+t_{n_4}y\\ &\le ha+s_{n_4}x+(h-s_{n_4})y\\ &=ha+hy-s_{n_4}(y-x)\\ &\le ha+hy-(y-1)(y-x). \end{aligned}

Therefore,

n4−n3≤(ha+hy−(y−1)(y−x))−(ha+(y−1)x)=hy−y2+y.\begin{aligned} n_4-n_3 &\le\bigl(ha+hy-(y-1)(y-x)\bigr)-\bigl(ha+(y-1)x\bigr)\\ &=hy-y^2+y. \end{aligned}

Applying inequality (8) gives

N−2y+2≤n4−n3≤hy−y2+yN-2y+2\le n_4-n_3\le hy-y^2+y

and so

nh(A)=N≤−y2+(h+3)y−2=h2+6h+14−(y−h+32)2≤h2+6h+14.\begin{aligned} n_h(A)=N&\le-y^2+(h+3)y-2\\ &=\frac{h^2+6h+1}{4}-\left(y-\frac{h+3}{2}\right)^2\\ &\le\frac{h^2+6h+1}{4}. \end{aligned}

Combining the latter with inequality (6), we deduce

nhb(2)=⌊h2+6h+14⌋n_h^b(2)=\left\lfloor\frac{h^2+6h+1}{4}\right\rfloor

and

nhb(2)≤nh(2).n_h^b(2)\le n_h(2).

This completes the proof.

Computing nhb(2)n_h^b(2) for even hh

In this section we match the upper bound from the previous section for all even h≠4h\ne4. We thereby show that nhb(2)=nh(2)n_h^b(2)=n_h(2) holds for all even h≠4h\ne4, and we first consider the exceptional case.

Theorem 4.1. For h=4h=4,

n4b(2)=8<10=n4(2).n_4^b(2)=8<10=n_4(2).

The extremal bases for n4b(2)n_4^b(2) are

{−3,1,2},{−2,1,2},{−2,1,3},{−1,1,2},{−1,1,4}.\{-3,1,2\},\quad\{-2,1,2\},\quad\{-2,1,3\},\quad\{-1,1,2\},\quad\{-1,1,4\}.

Proof. From Theorem 1.1 we obtain n4(2)=10n_4(2)=10. As for n4b(2)n_4^b(2), let A={a,b,c}A=\{a,b,c\} be a set of integers with a<b<ca<b<c and a<0a<0. Setting x=b−ax=b-a and y=c−ay=c-a, we have A={a,a+x,a+y}A=\{a,a+x,a+y\}. If [0,5]⊆4A[0,5]\subseteq4A, then inequalities (3) and (5) from Lemma 2.2 with h=4h=4 give

1≤x<y≤51\le x<y\le5

and

a>−4.a>-4.

There are (32)(52)=30\binom{3}{2}\binom{5}{2}=30 sets A={a,a+x,a+y}A=\{a,a+x,a+y\} with a<0a<0 that satisfy these conditions. One can check either by hand or by computer that n4(A)≤8n_4(A)\le8 for each of these 30 sets, with equality for the five sets listed. □

For the even values of h≠4h \ne4, we need to separately consider whether h≡0(mod4)h \equiv0 \pmod{4} or h≡2(mod4)h \equiv2 \pmod{4}. Let us start with the latter.

Theorem 4.2. If h≡2(mod4)h \equiv2 \pmod{4}, then

nhb(2)=nh(2).n_h^b(2)=n_h(2).

Proof. Writing

h=4w−2h=4w-2

we have

nh(2)=h2+6h4=(w+1)h.n_h(2)=\frac{h^2+6h}{4}=(w+1)h.

Let

A={−w,w,w+1}=−w+{0,2w,2w+1}.A=\{-w,w,w+1\}=-w+\{0,2w,2w+1\}.

By Lemma 2.1,

hA=−hw+{2ws+(2w+1)t:s,t∈N0 and s+t≤h}=−hw+⋃ℓ=0h{2ws+(2w+1)t:s,t∈N0 and s+t=ℓ}=−hw+⋃ℓ=0h{2wℓ+t:t∈[0,ℓ]}=−hw+⋃ℓ=0h[2wℓ,(2w+1)ℓ].\begin{aligned} hA&=-hw+\{2ws+(2w+1)t:s,t\in\mathbb{N}_0\text{ and }s+t\le h\}\\ &=-hw+\bigcup_{\ell=0}^{h}\{2ws+(2w+1)t:s,t\in\mathbb{N}_0\text{ and }s+t=\ell\}\\ &=-hw+\bigcup_{\ell=0}^{h}\{2w\ell+t:t\in[0,\ell]\}\\ &=-hw+\bigcup_{\ell=0}^{h}[2w\ell,(2w+1)\ell]. \end{aligned}

We have

2w(ℓ+1)≤2wℓ+ℓ+12w(\ell+1)\le2w\ell+\ell+1

if and only if

ℓ≥2w−1\ell\ge2w-1

and so

hA=(−hw+⋃ℓ=02w−2[2wℓ,(2w+1)ℓ])∪(−hw+⋃ℓ=2w−1h[2wℓ,(2w+1)ℓ])=(−hw+⋃ℓ=02w−2[2wℓ,(2w+1)ℓ])∪(−hw+[2w(2w−1),(2w+1)h])=(−hw+⋃ℓ=02w−2[2wℓ,(2w+1)ℓ])∪[0,(w+1)h]⊇[0,nh(2)],\begin{aligned} hA &=\left(-hw+\bigcup_{\ell=0}^{2w-2}[2w\ell,(2w+1)\ell]\right) \cup\left(-hw+\bigcup_{\ell=2w-1}^{h}[2w\ell,(2w+1)\ell]\right)\\ &=\left(-hw+\bigcup_{\ell=0}^{2w-2}[2w\ell,(2w+1)\ell]\right) \cup\left(-hw+[2w(2w-1),(2w+1)h]\right)\\ &=\left(-hw+\bigcup_{\ell=0}^{2w-2}[2w\ell,(2w+1)\ell]\right) \cup[0,(w+1)h]\\ &\supseteq[0,n_h(2)], \end{aligned}

and so nh(2)=nh(A)≤nhb(2)≤nh(2)n_h(2)=n_h(A)\le n_h^b(2)\le n_h(2). This completes the proof. □

For the proof of the remaining even case we introduce the notation

Sℓ(modm)={n∈S:n≡ℓ(modm)}.S_\ell\pmod{m}=\{n\in S:n\equiv\ell\pmod{m}\}.

Theorem 4.3. If h≥8h\ge8 and h≡0(mod4)h\equiv0\pmod{4}, then

nhb(2)=nh(2).n_h^b(2)=n_h(2).

Proof. Writing

h=4wh = 4w

we have w≥2w \ge2 and

nh(2)=h2+6h4=w(4w+6).n_h(2) = \frac{h^2 + 6h}{4} = w(4w + 6).

Let

A={−(w−1),w,w+2}=−(w−1)+{0,2w−1,2w+1}.A = \{-(w - 1), w, w + 2\} = -(w - 1) + \{0, 2w - 1, 2w + 1\}.

Note that if h=4h = 4, then w=1w = 1 and the set A={0,1,3}A = \{0, 1, 3\} contains no negative integer. By Lemma 2.1,

hA=−h(w−1)+{(2w−1)s+(2w+1)t:s,t∈N0 and s+t≤h}=−h(w−1)+⋃ℓ=0h{(2w−1)s+(2w+1)t:s,t∈N0 and s+t=ℓ}=−h(w−1)+⋃ℓ=0h{(2w−1)ℓ+2t:t∈[0,ℓ]}=−h(w−1)+⋃ℓ=0h[(2w−1)ℓ,(2w+1)ℓ]ℓ(mod2).\begin{aligned} hA = -h(w - 1) + \{(2w - 1)s + (2w + 1)t : s, t \in\mathbb{N}_0 \text{ and } s + t \le h\} \\ &= -h(w - 1) + \bigcup_{\ell=0}^{h} \{(2w - 1)s + (2w + 1)t : s, t \in\mathbb{N}_0 \text{ and } s + t = \ell\} \\ &= -h(w - 1) + \bigcup_{\ell=0}^{h} \{(2w - 1)\ell+ 2t : t \in[0, \ell]\} \\ &= -h(w - 1) + \bigcup_{\ell=0}^{h} [(2w - 1)\ell, (2w + 1)\ell]_{\ell\pmod2}. \end{aligned}

The set [(2w−1)ℓ,(2w+1)ℓ]ℓ(mod2)[(2w - 1)\ell, (2w + 1)\ell]_{\ell\pmod2} is a sequence of ℓ+1\ell+ 1 consecutive even integers if ℓ\ell is even and a sequence of ℓ+1\ell+ 1 consecutive odd integers if ℓ\ell is odd. We have

(2w−1)(ℓ+2)≤(2w+1)ℓ+2(2w - 1)(\ell+ 2) \le(2w + 1)\ell+ 2

if and only if

2w−2≤ℓ.2w - 2 \le\ell.

Because hh is even, we have

−h(w−1)+⋃ℓ=2w−2ℓ≡0(mod2)h[(2w−1)ℓ,(2w+1)ℓ]0=−h(w−1)+[(2w−1)(2w−2),(2w+1)h]even=[−2(w−1),(w+2)h]even\begin{aligned} -h(w - 1) + \bigcup_{\substack{\ell=2w-2 \\ \ell\equiv0 \pmod2}}^{h} [(2w - 1)\ell, (2w + 1)\ell]_0 = -h(w - 1) + [(2w - 1)(2w - 2), (2w + 1)h]_{\mathrm{even}} \\ &= [-2(w - 1), (w + 2)h]_{\mathrm{even}} \end{aligned}
⊇[−2(w−1),nh(2)]even\supseteq[-2(w - 1), n_h(2)]_{\mathrm{even}}

and

−h(w−1)+⋃ℓ=2w−1ℓ≡1(mod2)h−1[(2w−1)ℓ,(2w+1)ℓ]1=−h(w−1)+[(2w−1)(2w−1),(2w+1)(h−1)]odd=[1,−h(w−1)+(2w+1)(h−1)]odd=[1,nh(2)−1]odd.\begin{aligned} -h(w - 1) + \bigcup_{\substack{\ell=2w-1 \\ \ell\equiv1 \pmod2}}^{h-1} [(2w - 1)\ell, (2w + 1)\ell]_1 = -h(w - 1) + [(2w - 1)(2w - 1), (2w + 1)(h - 1)]_{\mathrm{odd}} \\ &= [1, -h(w - 1) + (2w + 1)(h - 1)]_{\mathrm{odd}} \\ &= [1, n_h(2) - 1]_{\mathrm{odd}}. \end{aligned}

Therefore,

hA⊇[0,nh(2)]hA \supseteq[0, n_h(2)]

and nh(2)≥nhb(2)≥nh(A)n_h(2) \ge n_h^b(2) \ge n_h(A). This completes the proof.

Bounding nhb(2)n_h^b(2) for odd hh

Theorem 5.1. For all positive odd integers hh,

nhb(2)<nh(2)n_h^b(2) < n_h(2)

Proof. It is straightforward to check that

n1b(2)=1<2=n1(2)n_1^b(2) = 1 < 2 = n_1(2)

and that {0,1,2}\{0,1,2\} is the unique extremal set for n1(2)n_1(2). The extremal sets for n1b(2)n_1^b(2) are the sets {a,0,1}\{a,0,1\} for all integers a<0a < 0.

Let h=2m+1≥3h = 2m + 1 \ge3. By Theorem 3.1,

nhb(2)≤nh(2)=h2+6h+14=m2+4m+2=Nn_h^b(2) \le n_h(2) = \frac{h^2 + 6h + 1}{4} = m^2 + 4m + 2 = N

and h+1≤Nh + 1 \le N. If nhb(2)=nh(2)n_h^b(2) = n_h(2), then there is a set A={a,b,c}A = \{a,b,c\} with a<b<ca < b < c and a<0a < 0 such that

[0,h+1]⊆[0,N]⊆hA[0,h+1] \subseteq[0,N] \subseteq hA

With x=b−ax = b - a and y=c−ay = c - a, we define n3n_3 and n4n_4 in the exact same way as in the proof of Theorem 3.1. We then still have

y−1≥n3≥ha+(y−1)x,y - 1 \ge n_3 \ge ha + (y - 1)x,

which, on the one hand, gives

ha≤(y−1)(1−x)=U.ha \le(y - 1)(1 - x) = U.

On the other hand, we also still have

N−y+1≤n4≤ha+hy−(y−1)(y−x),N - y + 1 \le n_4 \le ha + hy - (y - 1)(y - x),

implying

ha≥N−hy+(y−1)(y−x−1)=L.ha \ge N - hy + (y - 1)(y - x - 1) = L.

In other words,

0≥L−U=N−hy+(y−1)(y−2).0 \ge L - U = N - hy + (y - 1)(y - 2).

Recalling that h=2m+1h = 2m + 1 and N=m2+4m+2N = m^2 + 4m + 2, we obtain

0≥L−U=N−hy+(y−1)(y−2)=(m2+4m+2)−(2m+1)y+y2−3y+2=(m−y)2+4(m−y)+4=(m−y+2)2≥0.\begin{aligned} 0 &\ge L - U = N - hy + (y - 1)(y - 2) \\ &= (m^2 + 4m + 2) - (2m + 1)y + y^2 - 3y + 2 \\ &= (m - y)^2 + 4(m - y) + 4 \\ &= (m - y + 2)^2 \\ &\ge0. \end{aligned}

Therefore,

y=m+2y = m + 2

and

ha=L=U,ha = L = U,

so that

ha=(y−1)(1−x)=(m+1)(1−x)<0.ha = (y - 1)(1 - x) = (m + 1)(1 - x) < 0.

It follows that 1−x<01 - x < 0 and so

1≤x−1≤y−2=m.1 \le x - 1 \le y - 2 = m.

Also,

2ha=2(m+1)(1−x)=(h+1)(1−x)=h(1−x)+1−x2ha = 2(m + 1)(1 - x) = (h + 1)(1 - x) = h(1 - x) + 1 - x

implies

(2m+1)(2a+x−1)=h(2a+x−1)=−(x−1)(2m + 1)(2a + x - 1) = h(2a + x - 1) = -(x - 1)

and so 2m+12m + 1 divides the integer x−1x - 1 in [1,m][1,m], which is absurd. Therefore, nhb(2)<nh(2)n_h^b(2) < n_h(2), completing the proof.

AI usage

The first proofs of the comparison results for the extremal functions nh(2)n_h(2) and nhb(2)n_h^b(2) were autonomously discovered and formally verified in Lean by Aristotle, a formal reasoning agent developed by Harmonic [1]. WvD and PM used Aristotle to obtain these original proofs. Aristotle is available at aristotle.harmonic.fun.

MBN studied Aristotle’s arguments and used its conversational interface to clarify the reasoning. He then developed the new proofs presented in this paper, incorporating some of Aristotle’s methods, and wrote the original manuscript.

Groningen, The Netherlands

Email address: [email protected]

Harmonic, London, UK

Email address: [email protected]

Lehman College (CUNY), Bronx, NY 10468

Email address: [email protected]

References

  1. [1]T. Achim et al., Aristotle: IMO-level Automated Theorem Proving, arXiv preprint arXiv:2510.01346, 2025. https://doi.org/10.48550/arXiv.2510.01346.
  2. [2]M. B. Nathanson, Problems in additive number theory, VII: The structure of additive h-bases for n, arXiv preprint arXiv:2605.26425, 2026. https://doi.org/10.48550/arXiv.2605.26425.
  3. [3]H. Rohrbach, Ein Beitrag zur additiven Zahlentheorie, Math. Z. 42 (1937), no. 1, 1–30.DOI
  4. [4]H. Rohrbach, Einige neuere Untersuchungen über die Dichte in der additiven Zahlentheorie, Jb. Deutsche Math. Ver. 48 (1938), 199–236.
  5. [5]A. Stöhr, Gelöste und ungelöste Fragen über Basen der natürlichen Zahlenreihe. I, II, J. Reine Angew. Math. 194 (1955), 40–65, 111–140.DOI

Paper details

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

views · 0

downloads · 0

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

  • Mathematics

Aristotle

View statement
Looking for related papers…
Contents