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

Complexity of finding a permutation involving alternating sums

Theoretical computer science

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

Consider the following variation of the problem considered in this question.

Given a finite multi-set AAA containing nnn positive integers (represented in unary), decide whether there exists an ordering a1,…,ana_1,\dots,a_na1​,…,an​ of AAA such that

  • ∑j=1n(−1)jaj=0\sum_{j=1}^n (-1)^j a_j = 0∑j=1n​(−1)jaj​=0;

  • ∑j=1k(−1)k−jaj>0\sum_{j=1}^k (-1)^{k-j} a_j > 0∑j=1k​(−1)k−jaj​>0 for k=1,…,n−1k=1,\dots,n-1k=1,…,n−1.

What is the complexity of this problem? Is it in P, or is it NP-complete? (It is clearly in NP.)

Remark 1. As in the previous problem, it is still true that the sets of odd- and even-numbered elements sum to the same number N=(∑j=1naj)/2N=(\sum_{j=1}^n a_j)/2N=(∑j=1n​aj​)/2. However, it seems less clear how to order the elements in such a pair of partitions in order to satisfy the second constraint. Observe also that reversing any ordering with the desired properties yields another one.

Remark 2. In contrast to the earlier problem, having a partition is not sufficient. For example, clearly AAA may contain at most two 111s (since these would have to be at the beginning and the end of the sequence), so e.g. A={1,1,1,1,2,2}A=\{1,1,1,1,2,2\}A={1,1,1,1,2,2} does not work despite having a partition.

Remark 3. For an example where there are no 111s and all elements are disjoined, consider A={3,4,7,8,9,17}A=\{3,4,7,8,9,17\}A={3,4,7,8,9,17}. Here the issue is that the 17 is too big; any interior element must be smaller than the sum of its adjacent elements.

Remark 4. Lest we think the above may be the only restriction, here is an example where every number is less than the sum of two others: A={2,3,5,6,7,14,15,16}A=\{2, 3, 5, 6, 7, 14, 15, 16\}A={2,3,5,6,7,14,15,16}. The partitions are {2,3,14,15}\{2,3,14,15\}{2,3,14,15} and {5,6,7,16}\{5,6,7,16\}{5,6,7,16}.

Statement and context adapted from MathOverflow · Lasse Rempe

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

Topics : computational-complexity · partitions · np

Authors listed by the source : Lasse Rempe

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : February 17, 2026

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