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

Removing convex sets that are unions of other convex sets from a large combinatorial enumeration

CombinatoricsConvex & metric geometry

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

An addition chain for nnn is a sequence of integers 1=a0<a1<...<ar=n1=a_0<a_1<...<a_r=n1=a0​<a1​<...<ar​=n with ai=aj+ak,i>j≥k≥0a_i=a_j+a_k,i>j\ge k\ge 0ai​=aj​+ak​,i>j≥k≥0. We say rrr is the addition chain length. We define the length of the smallest addition chain for nnn by l(n)l(n)l(n).

We have a measure of complexity of addition chains called the small step count. We define s(n)=l(n)−λ(n)s(n)=l(n)-\lambda(n)s(n)=l(n)−λ(n) where λ(n)=⌊log2(n)⌋\lambda(n)=\lfloor {log_2(n)}\rfloorλ(n)=⌊log2​(n)⌋.

If s(n)=0s(n)=0s(n)=0 we have n=2an=2^an=2a. With s(n)=1s(n)=1s(n)=1 we have n=2a+2b,a>b≥0n=2^a+2^b,a>b\ge0n=2a+2b,a>b≥0. These two cases can be seen with simple limits on nnn and was first done in 1894 [1]. With s(n)=2s(n)=2s(n)=2 things get more complicated. We have 4 cases:

n=2a+2b+2c,a>b>c≥0n=2^a+2^b+2^c,a>b>c\ge0n=2a+2b+2c,a>b>c≥0

n=2a+2b+2c+2d,a>b>c>d,1≥a−b−c+d>=0n=2^a+2^b+2^c+2^d,a>b>c>d,1\ge a-b-c+d >= 0n=2a+2b+2c+2d,a>b>c>d,1≥a−b−c+d>=0

n=2a+2a−5+2a−6+2a−7,a≥7n=2^a+2^{a-5}+2^{a-6}+2^{a-7},a\ge7n=2a+2a−5+2a−6+2a−7,a≥7

n=2a+2a−3+2b+2b−1,a>b+3,b≥1n=2^a+2^{a-3}+2^b+2^{b-1},a>b+3,b\ge1n=2a+2a−3+2b+2b−1,a>b+3,b≥1

Knuth [2] in 1969 has laborious proofs of these cases (stated as 5 cases) in section 4.6.3. He asked though in question 15 to write a computer program to enumerate the s(n)=3s(n)=3s(n)=3 case.

Flammenkamp [3] in 1991 wrote the computer program and found 200 cases.

It's clear from the way these cases are constructed that each case has the power of 2 exponents as lattice points in a convex set in Rv(n)R^{v(n)}Rv(n). Here v(n)v(n)v(n) is the hamming weight of nnn. These are expressed in half-space format. It's clear that some cases could be removed if they are subsets of the unions of other cases. If the union of multiple cases is itself a convex set, we could replace multiple cases with their union. This process can be repeated until each convex set has a unique single vector of exponents as it's member that prevents further reduction. This reduced the s(n)=3s(n)=3s(n)=3 from 200 to 150 cases.

This explodes with s(n)=4s(n)=4s(n)=4. A new computer program I wrote can enumerate all the cases in under two minutes. It generates 251213 cases. Reducing the number of convex sets by detecting the subsets as mentioned above yielded 40206 cases. This process though is expensive. I detect if two convex sets (U1U_1U1​,U2U_2U2​) have a non-empty intersection. If they do then I compute U1∖U2U_1\smallsetminus U_2U1​∖U2​ as a union of convex sets. This process is repeated in the hopes that the union of convex sets becomes empty and U1U_1U1​ can be discarded.

The case s(n)=5s(n)=5s(n)=5 took about 2 weeks to run and has generated 240439903 cases. It's clear I need some different approach to removing these overlaps. No algorithm that's O(n2)O(n^2)O(n2) or worse I think has any hope of working. So, the question is are there tricks I can use here to help me reduce the number of cases?

Why do we care? Well, it seems remarkable that v(n)v(n)v(n) appears to be bounded from above with s(n)+1≤v(n)≤2s(n)s(n)+1\le v(n)\le 2^{s(n)}s(n)+1≤v(n)≤2s(n) The enumeration clearly shows this for s(n)≤5s(n)\le 5s(n)≤5. To get confidence in the enumeration I check it by making sure the convex sets contain the exponents for all known nnn with s(n)≤5s(n)\le5s(n)≤5 with n≤263n\le 2^{63}n≤263 (the limits of direct calculations and storage). I can only do this I think if the number of convex sets is much smaller. I expect a vector equivalent of the Frobenius Number might say that if you can test all cases up until some particular vector you have essentially exhausted all cases.

UPDATE: I was able to find a strategy that seems to make the computation at least possible to perform. Run time to reduce the data will probably still take months. The trick is to identify what you might call primitive convex sets. If we say the data, we are trying to reduce is a union of convex sets D=∪i=1nCiD=\cup_{i=1}^n C_iD=∪i=1n​Ci​. We say a convex set CqC_qCq​ is primitive if a lattice point x∈Cqx\in C_qx∈Cq​ but x∉Cj,j≠qx\notin C_j, j\ne qx∈/Cj​,j=q. A primitive convex set can't be removed from DDD without causing the lattice point xxx being dropped from DDD. It turns out a depth first search to enumerate all possible lattice points x∈Cqx\in C_qx∈Cq​ with xxx elements bounded from above is very fast. I search for all exponents less that 128 so essentially a search over all numbers n<2128n<2^{128}n<2128. For each lattice point x∈Cqx \in C_qx∈Cq​ we try and find another set CpC_pCp​ with x∈Cpx \in C_px∈Cp​. It turns out it's fast to determine if a lattice point is contained in another set. If we do not find a CpC_pCp​ then the set is primitive, and we need process it no longer. Otherwise, we stop at the first set we find and record the matching. We use these recorded sets as a cache, and we further enumerate the lattice points in CqC_qCq​. This also turns out to be fast since generally very few and often only one set overlaps with CqC_qCq​. At the end of enumeration, we either know the set is primitive or we have a small list of sets we know can likely be used to eliminate CqC_qCq​. This is obviously multi pass as sets can become primitive as we remove other sets.

1: Goulard, A. Question 393, L'Intermédiaire des Mathématiciens, Vol. 1, 1894

2: Knuth, Donald E. The art of computer programming, 2: seminumerical algorithms, 1969

3: Flammenkamp, A. Drei Beiträge zur diskreten Mathematik: Additionsketten, No-Three-in-Line-Problem, Sociable Numbers 1991

Statement and context adapted from MathOverflow · Neill Clift

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

Topics : convex-geometry · enumerative-combinatorics

Authors listed by the source : Neill Clift

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : February 27, 2023

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