Sulayman Bowles
Back to writing

Mathematics

Every ordering, from zeros and ones

One fixed set of inputs. Every possible ordering. A constructive proof with an exact, interactive example.

Monochrome generative point study “Parity Bloom,” a mathematical form rendered in black and white.

One fixed tuple of rational inputs between −1 and 0 can realize every strict ordering through polynomials whose coefficients are zeros and ones and whose constant term is zero. Only the polynomial changes. This proves the existence asked for by ABB on MathOverflow in April 2025.

Ordinary interpolation allows coefficients outside {0, 1}, and choosing new inputs for each order would weaken the question. The construction instead protects every strict comparison at one common tuple while translating signed coefficients into permitted monomials.

Negative inputs make the coefficient restriction less severe than it first appears. Odd powers contribute negatively and even powers positively. A run of nonrepeating powers can therefore stand in for a signed integer coefficient, provided their values stay close enough to the intended contribution. The proof’s work is to control that approximation for every requested ordering at once.

That uniform control costs degree. The general construction leaves generous space between groups of powers so that the encoded terms cannot collide, then protects every comparison with a common error bound. The compact certificates below use much less degree. They illustrate how far a sufficient existence bound can be from an efficient construction, while leaving the optimal degree for larger input sets open.

Method & limits

Source pages checked October 19, 2026. The article includes a proof for arbitrary N and finite exact checks of its examples. The source questions, related OEIS entry, and Thron-fraction literature were checked October 25, 2026. The exact-check record is historical. Checks are automated, without human peer review or formal proof verification. Historical priority remains unconfirmed.

The statement

Theorem. For every integer N ≥ 1, there are distinct rational numbers s1s₁, …, snsₙ in (−1, 0) with the following property: every permutation of these N indices is the strict increasing order of p(s1s₁), …, p(snsₙ) for some polynomial p with coefficients in {0, 1} and zero constant term.

Each polynomial has only finitely many terms. The same inputs work for all N! permutations, and every comparison is strict. A choice about how to break ties is unnecessary.

It is enough to assign each input a desired rank rirᵢ, where the vector of ranks is a permutation of 1, …, N, and arrange that rirᵢ < rjrⱼ implies p(sisᵢ) < p(sjsⱼ).

All six orders on the same three inputs

For N = 3, fix s1s₁ = −9/10, s2s₂ = −4/5 and s3s₃ = −7/10. These inputs already support all six orders with polynomials of degree at most seven. Select a target order below; the displayed fractions are exact.

For example, p(x) = x4x⁴ + x5x⁵ gives values 6561/100000, 8192/100000 and 7203/100000 at the three inputs. The resulting order is p(s1s₁) < p(s3s₃) < p(s2s₂). Across all six certificates, the smallest adjacent gap is 321/50000, which is strictly positive.

Three fixed inputsSix exact certificates

Choose the polynomialp(x) = x4 + x5

p(s1)p(s3)p(s2)
InputFixed valueExact p(si)Rank
s1−9/106561/1000001
s2−4/5256/31253
s3−7/107203/1000002

Adjacent gaps: 321/50000 and 989/100000. Both are positive.

All six witness polynomials
Increasing orderPolynomial
1 < 2 < 3x
1 < 3 < 2x4 + x5
2 < 1 < 3x5 + x6
2 < 3 < 1x3 + x4 + x5 + x6
3 < 1 < 2x4 + x5 + x6 + x7
3 < 2 < 1x + x2
The inputs stay fixed. Each selection changes only the polynomial, whose coefficients are all zero or one and whose constant term is zero. Fractions and comparisons are calculated with exact integers. The complete witness table remains available without JavaScript.

1. Interpolation assigns the ranks

Integer interpolation gives each coefficient a form the encoding can use: its magnitude becomes a count of monomials, and its sign determines whether their exponents are even or odd. First assign the desired ranks in that more flexible language. Then translate the whole finite family into binary polynomials without losing the gaps between ranks.

Put titᵢ = i/(N + 1) and D = (N − 1)!. For any desired rank vector r, there is an integer polynomial qrqᵣ of degree at most N − 1 such that qrqᵣ(titᵢ) = D rirᵢ. The factorial makes the interpolation coefficients integral.

Here is the polynomial explicitly: qr(t)=∑iri(−1)N−i(N−1i−1)∏h≠i((N+1)t−h),qᵣ(t) = Σᵢ rᵢ (−1)^(N−i) binom(N−1, i−1) ∏ₕ≠ᵢ ((N+1)t − h) where both indices range from 1 to N and the product omits h = i.

All coefficients are integers. At t = titᵢ, every summand except the ith vanishes. In that summand the product is (−1)N−i(−1)^(N−i)(i − 1)!(N − i)!, so the signed binomial factor turns it into D. Multiplication by rirᵢ gives the required value.

There are finitely many rank vectors. Let C be the largest absolute coefficient among all these polynomials, and let B be the largest sum of absolute coefficients of any one of them. Both are positive integers. Bounding the whole family at once lets us use one common even integer M = 8NCB.

2. Encoding each coefficient with powers

Take any q(t) = ∑jΣⱼ cjcⱼtjtʲ from that family and replace each coefficient cjcⱼ by |cjcⱼ| individual monomials. For cjcⱼ > 0, use powers jM + 2, jM + 4, …, jM + 2cjcⱼ. For cjcⱼ < 0, use powers jM + 1, jM + 3, …, jM + 2|cjcⱼ| − 1. For cjcⱼ = 0, add nothing. Call the resulting polynomial p.

Every selected exponent is positive, so p has no constant term. Every exponent from the jth coefficient lies in the interval (jM, jM + 2C]. Since M > 2C, these intervals are disjoint. Within each interval the powers are different as well. Thus no monomial is repeated, and every coefficient of p is either zero or one.

Now evaluate at s = −t1/Mt^(1/M). The evenness of M gives sjMs^(jM) = tjtʲ. Even offsets contribute positively and odd offsets contribute negatively. Each encoded monomial therefore has the intended sign and differs from ±tjtʲ only by a factor tαt^α, where 0 < α ≤ 2C/M.

3. The error stays below the rank gap

For α > 0 and 0 < t ≤ 1, convexity of u ↦ u−αu^(−α), applied at u = 1, gives 0≤1−tα≤α(t−1−1)0 ≤ 1 − t^α ≤ α(t⁻¹ − 1). At our interpolation inputs, t ≥ 1/(N + 1), so t−1t⁻¹ − 1 ≤ N.

Consequently each encoded monomial differs from its intended contribution by at most 2CN/M: its extra factor has that error bound, and tjtʲ ≤ 1. There are at most B monomials, so |p(−t1/M)−q(t)|≤2CNB/M=1/4.|p(−t^(1/M)) − q(t)| ≤ 2CNB/M = 1/4

Fix sisᵢ = −ti1/Mtᵢ^(1/M). Apply the encoding to every qrqᵣ. Each value prpᵣ(sisᵢ) is within 1/4 of D rirᵢ. If rirᵢ < rjrⱼ, subtraction gives pr(sj)−pr(si)≥D−1/2>0pᵣ(sⱼ) − pᵣ(sᵢ) ≥ D − 1/2 > 0. Thus the same N negative inputs realize every ordering.

The construction so far gives real inputs that may be irrational. To obtain rational inputs, use the fact that we have only finitely many polynomials and finitely many strict inequalities. Continuity preserves all of them under sufficiently small perturbations of the inputs. Choose disjoint neighborhoods inside (−1, 0) and a rational number in each. The resulting rational inputs, still all different, satisfy all the same inequalities. This proves the theorem, including N = 1.

Strictness is doing the work in the rational-input step. The finite family leaves a positive margin that survives a sufficiently small common perturbation. This establishes rational inputs without optimizing their denominators or the degree of their certificates. Those efficiency questions remain visible in the gap between the large general bound and the compact examples.

An explicit bound, with room to improve

The maximum over interpolation polynomials is finite, but a direct bound avoids enumerating them. Put H = N(4N+2)N−1(4N + 2)^(N−1) and choose the even integer M = 8NH2H². Then sisᵢ = −(i/(N+1))1/M(i/(N + 1))^(1/M) gives one explicit set of real inputs that works.

Indeed, the sum of absolute coefficients in the ith interpolation basis polynomial is at most (N−1i−1)binom(N − 1, i − 1)(2N+1)N−1(2N + 1)^(N−1). Multiply by rirᵢ ≤ N and sum over i to obtain B ≤ H, hence also C ≤ H. The same error estimate is at most 1/4.

The encoded polynomials have degree at most (N − 1)M + 2H. This large sufficient bound proves existence while leaving room to reduce the degree. The next question is how small the maximum degree can be when the inputs are chosen well.

An alternative research direction would start with rational inputs with generous gaps and try to reduce the degree directly, instead of encoding a whole interpolation family with a common large spacing. It would have to protect the smallest comparison gap, not just reproduce most permutations numerically. A lower degree bought by unstable near-ties would answer a weaker practical question.

Exact checks cover the examples and implementations

The constructive verifier checked all 873 rank vectors for N = 1 through 6, including exact integer interpolation, nonoverlapping exponents, signs, and the uniform error bound. High precision evaluations were supplementary diagnostics. A separately written program checked all target permutations for N ≤ 4 using exact rational enclosing intervals, without floating point evaluations of the algebraic inputs.

The compact three-input example above and a four-input example covering all 24 orderings were independently rechecked using rational arithmetic. The four-input certificates have degree at most 16; every witness and exact value is in the downloadable code bundle. These checks support the implementations and examples; the argument for arbitrary N is the proof above.

The divisibility-witness argument proves existence and then tracks the size of an explicit witness. Each claim needs its own proof.

A continued-fraction note

The other requested problem now has its own proof note. It derives the double-binomial recurrence from formal tails and links the exact checks and prior T-fraction work.

One fixed tuple of rational inputs suffices for every strict ordering; changing the binary polynomial does all the work. The price of this general construction is its degree, so a smaller certificate would improve its efficiency without changing the existence result.

Sources

  1. ABB: On the coverage of permutations by argsort of polynomial evaluationsMathOverflow · 2025-04-08 · Original mathematical requestVerified Oct 19, 2026

    The question asks for one fixed tuple of distinct real inputs on which zero-constant polynomials with coefficients in {0, 1} realize every permutation. The individual page and direct Stack Exchange answer endpoint displayed no answers when inspected.

  2. user231922: Recursion for A302285MathOverflow · 2025-04-10 · Original mathematical requestVerified Oct 19, 2026

    Contains the double-binomial recurrence. Alexander Burstein’s comment gives prior combinatorial context.

  3. A302285: The On-Line Encyclopedia of Integer SequencesThe OEIS Foundation Inc. · Sequence and prior referencesVerified Oct 19, 2026

    The continued fraction, displayed terms and cited combinatorics predate this note.

  4. Bitonti, Deb and Sokal: Thron-type continued fractions for some classes of increasing treesarXiv · 2024-12-13 · Prior research, version 1Verified Oct 19, 2026

    Table 1 on page 58 includes A302285; cited as prior continued-fraction context.

Supporting material

Read next