Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Does a Motzkin-prefix greedy construction for distinct subset sums recover the Conway–Guy sequence?

Number theory

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

A finite set P={p1>⋯>pn}⊂NP=\{p_1>\dots>p_n\}\subset\mathbb{N}P={p1​>⋯>pn​}⊂N has distinct subset sums (DSS) if all 2n2^n2n subset sums are different. A problem of Erdős asks for f(n)f(n)f(n), the minimal possible value of max⁡P\max PmaxP over all DSS sets of size nnn .

The best known candidate is the Conway–Guy sequence unu_nun​ (OEIS A005318), defined by

un+1=2un−un−r,r=⌊2n+12⌋,u_{n+1} = 2u_n - u_{n-r},\qquad r=\left\lfloor \sqrt{2n}+\tfrac12\right\rfloor,un+1​=2un​−un−r​,r=⌊2n​+21​⌋,

with u0=0,u1=1u_0=0,u_1=1u0​=0,u1​=1 .

The associated sets

Pn={un−un−1,…,un−u0}P_n=\{u_n-u_{n-1},\dots,u_n-u_0\}Pn​={un​−un−1​,…,un​−u0​}

are known to be DSS (Bohman), and it is conjectured that max⁡Pn=un\max P_n = u_nmaxPn​=un​ is optimal for all nnn .

The corresponding difference vectors

dCG(i)=ui−ui−1d^{\mathrm{CG}}(i)=u_i-u_{i-1}dCG(i)=ui​−ui−1​

are recorded as OEIS A005230; note that the shape of the difference vector is independent of nnn .

A Motzkin-restricted greedy construction

Let P={p1>⋯>pn}P=\{p_1>\dots>p_n\}P={p1​>⋯>pn​} be written in terms of its difference vector

di=pi−pi+1,pn+1:=0,d_i = p_i - p_{i+1},\qquad p_{n+1}:=0,di​=pi​−pi+1​,pn+1​:=0,

so pi=∑k=indkp_i = \sum_{k=i}^n d_kpi​=∑k=in​dk​ .

A subset-sum collision

∑i∈Ipi=∑j∈Jpj\sum_{i\in I}p_i=\sum_{j\in J}p_ji∈I∑​pi​=j∈J∑​pj​

gives a sign vector e∈{−1,0,1}ne\in\{-1,0,1\}^ne∈{−1,0,1}n with e⋅p=0e\cdot p=0e⋅p=0 . Consider its prefix-sum walk

S(k)=∑i≤kei,k=1,…,n.S(k)=\sum_{i\le k} e_i,\qquad k=1,\dots,n.S(k)=i≤k∑​ei​,k=1,…,n.

In the usual treatments (Lunnon, Bohman, Borwein–Mossinghoff), the “dangerous” objects are all smooth walks SSS with steps in {−1,0,1}\{-1,0,1\}{−1,0,1} and min⁡S<0\min S<0minS<0 ; these are exactly the prefix walks that can give a zero relation S⋅d=0S\cdot d=0S⋅d=0 for some difference vector ddd .

I want to look at a strictly smaller class of walks coming from Motzkin paths.

Motzkin height profiles and a greedy rule

Let S(n)S(n)S(n) be the set of Motzkin height profiles of length nnn, i.e. sequences

h0,…,hn−1h_0,\dots,h_{n-1}h0​,…,hn−1​

with

h0=hn−1=0,hi≥0,∣hi+1−hi∣∈{−1,0,1}.h_0=h_{n-1}=0,\quad h_i\ge 0,\quad |h_{i+1}-h_i|\in\{-1,0,1\}.h0​=hn−1​=0,hi​≥0,∣hi+1​−hi​∣∈{−1,0,1}.

Let S′(n)S'(n)S′(n) be the set of truncated profiles

z=(h1,…,hn−2)z=(h_1,\dots,h_{n-2})z=(h1​,…,hn−2​)

obtained from such paths, with the completely flat path (0,…,0)(0,\dots,0)(0,…,0) omitted.

Example: S′(4)={(0,1),(1,0),(1,1)}S'(4)=\{(0,1),(1,0),(1,1)\}S′(4)={(0,1),(1,0),(1,1)} .

Given a (finite) sequence d(1),d(2),…d(1),d(2),\dotsd(1),d(2),… , define

F(n)  =  {∑1≤i≤n−2z(i) d(i) : z∈S′(n)}.F(n) \;=\; \biggl\{\sum_{1\le i\le n-2} z(i)\,d(i)\ :\ z\in S'(n)\biggr\}.F(n)={1≤i≤n−2∑​z(i)d(i) : z∈S′(n)}.

Now define the Motzkin–greedy difference sequence d(n)d(n)d(n) by

d(1)=d(2)=1,d(n)=min⁡{k∈N>0:k∉F(n)}(n>2).d(1)=d(2)=1,\qquad d(n)=\min\{k\in\mathbb{N}_{>0}: k\notin F(n)\}\quad (n>2).d(1)=d(2)=1,d(n)=min{k∈N>0​:k∈/F(n)}(n>2).

So at step nnn we forbid exactly those values of d(n)d(n)d(n) which would create a linear dependence

∑i=1n−2z(i) d(i)=d(n)\sum_{i=1}^{n-2} z(i)\,d(i) = d(n)i=1∑n−2​z(i)d(i)=d(n)

for some truncated Motzkin profile zzz . Equivalently, we only avoid those potential zero-relations coming from Motzkin prefix walks (nonnegative and returning to 000 ), not from all smooth walks.

Experimentally, this produces

d(n)=1,1,2,3,6,11,20,40,77,148,285,570,1120,2200,…d(n)=1,1,2,3,6,11,20,40,77,148,285,570,1120,2200,\dotsd(n)=1,1,2,3,6,11,20,40,77,148,285,570,1120,2200,…

which agrees with the Conway–Guy difference sequence A005230 for all n≤21n\le 21n≤21 (checked by computation).

Questions

Let d(n)d(n)d(n) be the Motzkin–greedy sequence above and let dCG(n)d^{\mathrm{CG}}(n)dCG(n) be the Conway–Guy difference sequence.

Question. Do we always have d(n)=dCG(n)d(n)=d^{\mathrm{CG}}(n)d(n)=dCG(n) for all nnn ?

Equivalently (in terms of obstructions):

Bohman’s criterion for DSS can be phrased in terms of excluding all nontrivial smooth prefix walks SSS with min⁡S<0\min S<0minS<0 such that S⋅d=0S\cdot d=0S⋅d=0 .

My construction only excludes those coming from Motzkin profiles (nonnegative, returning to 0).

Are Motzkin-induced relations already sufficient?

That is: whenever a smooth walk SSS with min⁡S<0\min S<0minS<0 gives a zero relation S⋅d=0S\cdot d=0S⋅d=0 for some difference vector ddd , must there already be a zero relation coming from a Motzkin walk built from the same initial segment of ddd ?

I would be interested in:

  • a proof or counterexample to d(n)≡dCG(n)d(n)\equiv d^{\mathrm{CG}}(n)d(n)≡dCG(n) ;

  • or, more generally, any structural relation between

  • this “Motzkin-only” obstruction family, and

  • the full smooth-walk framework of Lunnon/Bohman/Borwein–Mossinghoff.

Right now I only see the experimental coincidence up to n=21n=21n=21 ; I don’t see a direct argument tying Motzkin walks to the triangular-number recurrence of Conway–Guy.

Why this is nontrivial

If one ever chooses a nonminimal d(n)d(n)d(n) , the construction can fail.

For example, if one starts with d(1)=3d(1)=3d(1)=3 and then applies the rule, one obtains

(3,1,1,2)(3,1,1,2)(3,1,1,2)

corresponding to

P=(7,4,3,2)P=(7,4,3,2)P=(7,4,3,2)

which is not DSS. The prefix-sum walk that detects the collision is

(1,0,−1)(1,0,-1)(1,0,−1)

which dips negative and therefore would have been needed to rule out the choice d(4)=2d(4)=2d(4)=2 .

Thus the success of the minimalist Motzkin-greedy rule is far from automatic—and makes its apparent agreement with Conway–Guy even more striking.

Any structural explanation, counterexample, or comparison with Bohman’s smooth vectors or Lunnon’s signature framework would be very welcome.

Statement and context adapted from MathOverflow · Ven Popov

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : nt.number-theory · computational-number-theory · combinatorial-number-theory

Authors listed by the source : Ven Popov

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : November 19, 2025

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni