DEGREE — the least degree at a given height and depth
The object: an integer polynomial is flattened to J when (x − 1)^J divides it, and its height is its largest coefficient in absolute value. The inverse dial d_k(J) is the least degree of a nonzero polynomial of height at most k flattened to J. A cell is a pair (k, J), and its list is every polynomial of height at most k and degree d_k(J) flattened to J, up to sign. The dial inverts FLATTEN's least height: h(M, J), the least height of a nonzero polynomial of degree below M flattened to J, is at most k exactly when M > d_k(J). The pure products are ∏(x^{g_i} − 1) over a multiset of positive parts g_i, and the pure law holds at a cell when d_k(J) is the least degree of a pure product of height at most k with exactly J parts; the cell breaks when d_k(J) is lower. Read as filter taps (FLATTEN: Flattening is annihilation), d_k(J) + 1 is the least length of a filter with integer taps bounded by k that annihilates every polynomial signal of degree below J.
The thesis: the shortest multiple of (x − 1)^J of a given height is almost always a pure product. The pure law holds at 127 of the 128 cells J ≤ 16, k ≤ 8, at sixteen cells read at depths 17 and 18, and down the column k = 1, the taps −1, 0 and 1, to depth 18, where every polynomial of every list is a pure product. It breaks at heights 8, 9 and 11, each time by one polynomial, one degree under the pure product's. And where the law holds the pure product need not be alone: at d_7(14) and d_9(15) a polynomial that is no pure product shares the least degree and the least height with one.
suffixwalk.py is a tool in its own right: it returns d_k(J) with its list, and has decided twelve of the thirteen cells of J ≤ 16, k ≤ 8 where the budget of FLATTEN's lattice route stops (suffixwalk.py::least_degree). walkc.py is the same walk with its node compiled: it decides the thirteenth, the column k = 1 at depths 17 and 18, and sixteen cells of those depths at k ≥ 4 (walkc.py::cell; it wants gcc). lists.py reads a list by height and by content (lists.py::standing).
Through its table the inverse dial is a pure-product degree
Tier: rule (exhaustive at the 99 cells of the table and 28 of the 29
past it at J ≤ 16: 15 by the lattice, each lattice verdict resting on
the enumeration's slack, 13 by the suffix walk, each resting on its
float prune, the dearer cells by its script run at an argument, the
dearest, d_2(16), by the compiled form run at one).
Verifier: flatten.py::stage_dial, suffixwalk.py::stage_cell,
suffixwalk.py::stage_depth, suffixwalk.py::stage_decided,
suffixwalk.py::stage_known, suffixwalk.py::stage_brute,
walkc.py::stage_cell, walkc.py::stage_record, walkc.py::stage_paths.
At every cell of the table below, d_k(J) equals the least degree of a pure product of height at most k with exactly J parts, the pure law. Each cell is two computations: a walk over the multisets of J parts in nondecreasing order finds the least such degree δ, exactly, as multiplying by a factor x^(g_i) − 1 only negates the coefficients below index g_i, so those below the last part are final up to sign and a partial product with one above k is discarded; then the lattice at width δ (FLATTEN: The least height is a lattice minimum) decides that nothing of height at most k has lower degree. One width up the same route finds a vector of height at most k at all 115 cells it decides, the break d_8(15) among them, where d_k(J) falls below the pure-product degree. Rows J, columns k:
k=1 k=2 k=3 k=4 k=5 k=6 k=7 k=8 1 1 1 1 1 1 1 1 1 2 3 2 2 2 2 2 2 2 3 6 4 3 3 3 3 3 3 4 11 7 5 5 5 4 4 4 5 15 11 8 8 6 6 6 6 6 22 16 11 10 9 9 9 9 7 30 22 17 14 14 11 11 11 8 41 26 20 19 18 16 15 15 9 48 34 27 22 22 21 20 19 10 61 45 33 29 27 23 23 23 11 69 51 43 34 30 30 25 25 12 · · · 44 38 36 32 31 13 · · · · 46 46 37 37 14 · · · · · · 49 47
Past the table the lattice decides 16 of the 29 cells at J ≤ 16 and 13 exceed its budget; the suffix walk of Height 1's extremal polynomials are pure products where decided, run at height k, decides those. Rows 12 to 16 in full, the break starred:
k=1 k=2 k=3 k=4 k=5 k=6 k=7 k=8 12 93 65 52 44 38 36 32 31 13 112 74 65 52 46 46 37 37 14 120 89 73 60 55 52 49 47 15 141 95 80 70 64 60 56 55* 16 159 118 87 78 71 71 64 63
The pure law holds at 28 of the 29 and fails at the break d_8(15) = 55. Fifteen are the lattice's: d_2(13) and d_2(15), d_3(12) and d_3(16), d_4 at J = 13…16, d_5 at J = 14…16, d_6 at J = 14, 15 and d_7 at J = 15, 16. Five are the column k = 1. Eight are the walk's at height k: d_2(12) = 65, d_2(14) = 89, d_3 = 65, 73, 80 at J = 13, 14, 15, d_6(16) = 71, d_8(16) = 63 and, by the compiled form, d_2(16) = 118. So the dial at J ≤ 16, k ≤ 8 is decided at all 128 cells, the pure law holding at 127.
At height k the walk gives a coefficient 2k + 1 choices and the top one k. A prefix of height at most k on [0, m) has |y|² ≤ k²m, so a suffix is dropped at E_m > k²m; a level costs the same square, with c_m² subtracted, and the float argument holds with k² beside every level, the path's rounding under 10·2⁻⁵³·k²W². At each of its eight cells the walk lists every polynomial of height at most k and degree d_k(J) flattened to J, up to sign: two at each of d_2(12), d_2(14), d_2(16) and d_6(16), one at each of d_3(13), d_3(14), d_3(15) and d_8(16), every one a pure product. Those of d_2(16) have parts 1, 1, 2, 3, 3, 4, 5, 5, 6, 7, 8, 9, 11, 13, 17, 23 and 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17. The controls: the walk's count against exhaustion at the 36 cells of width at most 9 at k = 2 and the 28 of width at most 8 at k = 3; the eight least pure products of the cells the lattice left, and the break's witness, each alive down its own path, the float E within 10⁻⁹ of the exact rational one; and the lattice itself. At the 103 cells of k = 2…8 where the lattice finds the pure law and at the three breaks, 106 in all, the walk's first vector sits one width past the lattice's d (run at the argument decided 0). d_6(16) tries 3,602,510,093 children over its widths to 71.
The compiled form (walkc.py) is the same walk, its node in C: the moments exact 128-bit integers, the level's linear form in fixed point at 128 fractional bits, summed exactly in 256, and E a double as before. Its float argument is its own: the fixed point moves S + c_m(1 + κ) by at most δ = 2⁻¹²⁹·k·(1 + Σ_(j<J) C(W, j + 1)), and it and the rounding move a path's E by at most B = 12·2⁻⁵³·k²W² + 2W(2k√W·δ + δ²), against the same slack 10⁻⁶; a width whose B passes 2.5·10⁻⁷, whose δ passes 10⁻⁹ or whose sums could pass their limbs is refused. B is under 7.6·10⁻¹¹ at d_2(16)'s last width. Its controls: at nine cells it runs again its counts of children are the Python walk's to the unit, and at seven of them so are every level's count and the vectors at the last width; one bit flipped in its table moves its count as it moves the Python walk's on the same planted table; the known break d_9(10) is seen; and down the path of each polynomial listed at the nineteen cells of its record, 22 paths and 1621 levels, its float E is within 3.1·10⁻¹³ of the exact rational one, where a planted bit shows as its predicted shift. d_2(16) tries 107,340,779,935 children over its widths to 118 and 95,290,872,860 more listing width 119 whole, fourteen minutes on four processes.
At sixteen cells of depths 17 and 18 the pure law holds
Tier: rule (exhaustive at the sixteen cells, each by the compiled walk
run at the argument cell k J and resting on its float prune, two of
them also by the lattice on its enumeration's slack).
Verifier: walkc.py::stage_cell, walkc.py::cell, walkc.py::stage_paths,
members.py::stage_hunt.
Past the rows above, rows 17 and 18 where they are decided at k ≥ 2:
k=4 k=5 k=6 k=7 k=8 k=9 k=10 k=11 k=12 17 88 84 75 75 72 69 67 59 59 18 · 91 82 82 · 77 73 73 69
Each entry is the least degree of a pure product of height at most k with that many parts, so the pure law holds at all sixteen cells, and at k ≤ 8 at 137 of the 138 cells decided. The compiled walk (Through its table the inverse dial is a pure-product degree) reads a cell width by width to the first that holds a polynomial and lists that width whole; d_11(17) = d_12(17) = 59 are the lattice's too. Fourteen lists are one pure product. That of d_5(17) is two, with parts 1, 1, 1, 2, 2, 3, 3, 3, 4, 5, 5, 6, 7, 8, 9, 11, 13 and 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 9, 11, 13, and that of d_11(18) is a pure product of height 10 beside a polynomial of height 11 that is no pure product (At two cells a polynomial of no pure product ties the pure product). The float E sits within B of the exact rational one at every level down the path of each polynomial listed; B is under 9.5·10⁻¹⁰ at every last width. Each cell was run twice, its counts of children the same to the unit. The dearest, d_11(18), tries 94,098,813,158 children over its widths to 73 and 186,271,824,540 more listing width 74 whole, ten minutes on four processes. Not decided at k = 2…12: depth 17 at k = 2, 3, depth 18 at k = 2, 3, 4, 8, and every depth past 18; past k = 12 the walk has read neither depth.
The height-1 column is classical
Tier: known (J ≤ 10, the growth order to a logarithm, as the source
cites it, and its table's upper bounds to depth 21; the depths past 10
are the next section's rule).
Source: P. Borwein and M. J. Mossinghoff, "Polynomials with height 1
and prescribed vanishing at 1", Experiment. Math. 9 (2000) 425–433.
Borwein and Mossinghoff determine the least degree of a polynomial with coefficients in {−1, 0, 1} and a zero of order J at 1 for J ≤ 10, and compute every extremal polynomial, each a pure product. Past depth 10 their table lists, as upper bounds, the least-degree pure products their searches found, at J = 11…19 and 21: degrees 69, 93, 112, 120, 141, 159, 185, 207, 245 and 294, three products at depth 13. The least degree is d_1(J), which lies between constant multiples of J² and J² log J (the upper bound Bloch and Pólya's, the lower Borwein, Erdélyi and Kós's, as the source cites them). They ask for a depth where some extremal polynomial is not a pure product, and remark that the Erdős–Szekeres conjecture on a pure product's maximum over the unit circle, with that upper bound, leaves no pure product extremal at large depth, where the pure law would then break in the column k = 1; the preponderance of pure products among their extremal examples, they note, might lead one to suspect that conjecture false, a speculation they hesitate to make on their data. The OEIS entry for d_1, A059753, records depths 11 to 14, at 69, 93, 112 and 120, as proved minimal since October 2025, each the degree of a pure product in the source's table.
Height 1's extremal polynomials are pure products where decided
Tier: rule (exhaustive J = 1…18, depths 15 and 16 by the script run
at the argument 16, depths 17 and 18 by the compiled form run at the
arguments cell 1 17 and cell 1 18; that nothing lies below each degree
rests on the walk's prune, a float test argued in its script).
Verifier: suffixwalk.py::stage_depth, suffixwalk.py::stage_paths,
suffixwalk.py::walk, suffixwalk.py::main, walkc.py::stage_cell,
walkc.py::stage_paths.
d_1(J) = 1, 3, 6, 11, 15, 22, 30, 41, 48, 61, 69, 93, 112, 120, 141, 159, 185, 207 at J = 1…18, each the least degree of a pure product of height 1 with J parts, so the pure law holds down the column k = 1 to depth 18. Every polynomial of height 1 and degree d_1(J) flattened to J is a pure product: 21 up to sign, one a depth but two at depth 8 and three at depth 13. Borwein and Mossinghoff's question, a depth where some extremal polynomial is no pure product, so has the answer no to depth 18. At every depth from 11 to 18 the extremal polynomials are exactly the pure products the source's table lists as the best it found. So what the walk adds is, at depths 11 to 14, that those lists are whole, and at depths 15 to 18, past the listing's, that each product is minimal and, up to sign, the only polynomial of its degree. Their parts at depths 15 to 18 are 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 16, 17, 23 at depth 15, 1, 2, 3, 4, 5, 7, 7, 9, 10, 11, 12, 13, 16, 17, 19, 23 at 16, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 16, 17, 19, 23, 25 at 17 and 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 15, 16, 17, 19, 21, 23, 25 at 18. The values are the lattice's own to depth 11, the dial's first column, and A059753's to depth 14. Depths 17 and 18 are the compiled form's (Through its table the inverse dial is a pure-product degree), on its own float argument, its B under 5.5·10⁻¹¹ and under 8.2·10⁻¹⁰ at their last widths: 20,788,555,758 children over the widths to 185 and 146,944,499,709 over those to 207, the cells 4 and 27 minutes on four processes with their last widths listed whole.
The walk fixes a vector's coefficients from the top down, three choices each. Write a(t) = (C(t, j))_(j<J), so c is flattened to J exactly when Σ c_t a(t) = 0. A suffix c_t, t ≥ m, with moments μ = Σ_(t≥m) c_t a(t), is completed by a prefix y on [0, m) exactly when Σ_(t<m) y_t a(t) = −μ. A prefix of height 1 has |y|² ≤ m, and the least |y|² over real prefixes is E_m = μᵀG_m⁻¹μ, G_m = Σ_(t<m) a(t)a(t)ᵀ, so a suffix with E_m > m is dropped with everything under it. With κ = a(m)ᵀG_m⁻¹a(m), μ′ the moments above m and S = a(m)ᵀG_m⁻¹μ′, a level costs one square, E_m = E_(m+1) + (S + c_m(1 + κ))²/(1 + κ) − c_m², by the Sherman–Morrison step from G_m to G_(m+1) = G_m + a(m)a(m)ᵀ. At m = J the prefix is the one integer solution of a unitriangular system, a vector exactly when its height is at most 1. A vector of least degree has c_0 ≠ 0 and top coefficient ±1, so d_1(J) + 1 is the first width W holding a vector with c_(W−1) = 1 and c_0 ≠ 0, and the walk at that width lists every extremal one.
The square's numerator over the level's denominator is an exact integer; E is a float sum, and a suffix dies only at a float E above its level by 10⁻⁶, or at one increment above 4W, where the exact one is above W. A kill is wrong only on a suffix some vector completes; every suffix above it on its path is completed by the same vector, so every exact E on the path is below W, a level's rounding is under 10·2⁻⁵³·W and the path's under 10·2⁻⁵³·W², which is 5·10⁻¹¹ at W = 200. So a float keeps a dead suffix at worst and kills no live one, and each vector returned is exact, its bottom an integer solve, and re-read by exact sums in the script's run. The controls: the walk's count against exhaustion at the 78 cells of width at most 13; each depth's least pure product, built apart from the walk, alive down its own path; the float E within 10⁻⁹ of the exact rational one along each depth's first extremal path. Depth 16 tries 496,443,528 children over its widths, some five minutes of pure Python.
A failing cell is a break on the dial
Tier: property (proved; the fence a rule on the dial's table, and the
heights read at the 83 failing cells).
Verifier: proof; members.py::stage_split; flatten.py::stage_dial.
FLATTEN's chart is h(M, J) over the widths M ≤ 40, and a cell of it fails when h is below ph(M, J), the least height of a pure product of degree below M with at least J parts. If h(M, J) = k < ph(M, J), a vector of height k and degree below M is flattened to J, while every pure product of height at most k with at least J parts has degree at least M; so d_k(J) is below the least degree of a pure product of height at most k with exactly J parts, and the dial breaks at (k, J). The table's columns, unbroken through their last rows, fence the chart: d_k(J) never falls as J grows, since a multiple of (x − 1)^(J+1) is one of (x − 1)^J, and the last entry of every column of the table exceeds the chart's widths, so every cell the table leaves blank or passes has d_k(J) > 40 at k ≤ 8. A chart failure of height k ≤ 8 would be a break at (k, J) with d_k(J) < 40, and the table has none: the chart's failing cells have heights from 9 to 6,323,160.
At heights 8, 9 and 11 the dial breaks
Tier: rule (exhaustive at each cell: the witness exhibited, the lattice
empty one degree below, its emptiness resting on the enumeration's
slack; that each break's polynomial is alone, on the suffix walk's
float prune, its script run at the arguments cell 8 15, cell 9 10 and
cell 11 15).
Verifier: flatten.py::stage_break, flatten.py::traded,
members.py::stage_hunt, suffixwalk.py::stage_cell.
d_8(15) = 55, while the least pure product of height at most 8 with fifteen parts has degree 56; the witness's cyclotomic part is the product with parts 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 7, of degree 45, times the degree-10 factor R = 2 + 3x + 3x² + 3x³ + 4x⁴ + 5x⁵ + 4x⁶ + 3x⁷ + 3x⁸ + 3x⁹ + 2x¹⁰. Multiplied out, that product has height 8 and is flattened to 15, so d_8(15) ≤ 55 rests on no lattice. It is the one polynomial of height at most 8 and degree 55 flattened to 15, up to sign: the suffix walk at height 8 lists that width whole (Through its table the inverse dial is a pure-product degree). Nothing of height at most 8 flattened to 16 has degree below 56, so no product with more parts does better. The columns k = 9…12, read at J = 1…16 under a cap of 5,000,000 nodes a decision (J = 17…20: 14 of 16 capped), break twice: d_9(10) = 22 against 23, the chart's first failure h(23, 10) = 9 with A = 2 + 4x + 5x² + 4x³ + 2x⁴ traded in, and d_11(15) = 48 against 49, with d_11(16) = 54, so no product with more parts does better, trading in N = 1 + x + 2x² + 3x³ + 3x⁴ + 3x⁵ + 2x⁶ + x⁷ + x⁸; each witness is a pure product times its factor, and at each of the two the walk lists one polynomial of that height and degree up to sign, no pure product, as at d_8(15): every break read has one extremal polynomial, one degree under the pure product's. Every other cell the lattice decides in these columns obeys the pure law: every depth to 16, and 17 at k = 11 and 12. The cap stops the other 14; the compiled walk decides the six of them at depths 17 and 18, with no break (At sixteen cells of depths 17 and 18 the pure law holds).
At two cells a polynomial of no pure product ties the pure product
Tier: rule (exhaustive at the 165 cells J = 2…16, k = 2…12, each list
the walk's last width whole, resting on its float prune, d_2(16)'s
read off the compiled walk's record; the cell past them, d_11(18), on
the same footing); observation (the three factors).
Verifier: lists.py::stage_sweep, lists.py::standing,
lists.py::stage_standing, lists.py::stage_past,
lists.py::stage_factors, walkc.py::cell.
The lattice exhibits one polynomial a cell; the walk lists them all. Three of the 165 cells are the breaks, each list its one polynomial. At the other 162 the pure law holds, and the question is whether a list holds anything but pure products. A constant multiple c·P of a polynomial of lower height is no pure product and sits in the list whenever its height fits, so a list is read on content 1, the polynomials whose coefficients share no factor. On that read 158 of the 162 lists hold pure products alone, and four hold a polynomial that is no pure product:
- - d_7(14) = 49: three polynomials, each of height 7, one a pure product and two not. A tie at the least degree and the least height.
- - d_9(15) = 53: two polynomials, each of height 9, one a pure product and one not. A tie.
- - d_7(6) = d_8(6) = 9: (x − 1)⁶(1 + x)B, of height 7, B = 2 + 3x + 2x², above a pure product of height 5 in both lists.
Past depth 16, of the eighteen cells in the compiled walk's record one holds such a polynomial: at d_11(18) = 73, one of height 11 above a pure product of height 10. So a list can hold a polynomial that is no pure product where no break is, and at heights 7 and 9 one stands level with the pure product: one form of the event Borwein and Mossinghoff ask for at height 1 (The height-1 column is classical), where the answer is no to depth 18.
Divide the cyclotomic factors out of each and one irreducible factor is left. At d_7(6) and d_8(6) it is B, and at d_9(15) it is N, the factor of the break d_11(15) (At heights 8, 9 and 11 the dial breaks), beside Φ_1^15 Φ_2^4 Φ_3^2 Φ_4^2 Φ_5^2 Φ_7 Φ_8; B and N are two of the nine non-cyclotomic factors FLATTEN names. The other three are in none of the nine:
U = 1 + x + 2x² + 3x³ + 3x⁴ + 3x⁵ + 3x⁶ + 3x⁷ + 2x⁸ + x⁹ + x¹⁰
V = 2 + 5x + 8x² + 10x³ + 11x⁴ + 10x⁵ + 8x⁶ + 5x⁷ + 2x⁸
T = 1 + 2x + 3x² + 5x³ + 7x⁴ + 8x⁵ + 9x⁶ + 8x⁷ + 7x⁸ + 5x⁹ + 3x¹⁰
+ 2x¹¹ + x¹²
U and V are d_7(14)'s, beside Φ_1^14 Φ_2^3 Φ_3^3 Φ_4 Φ_5^2 Φ_7 and Φ_1^14 Φ_2^3 Φ_3^3 Φ_4 Φ_5 Φ_7 Φ_9; T is d_11(18)'s, beside Φ_1^18 Φ_2^5 Φ_3^3 Φ_4^2 Φ_5^2 Φ_7 Φ_8 Φ_11. Each is a palindrome with positive coefficients and takes the value 1 at −1, as eight of the nine do; their values at 1 are 23, 61 and 61. A palindrome f of degree 2n is xⁿS(x + 1/x) for a polynomial S of degree n, and a root of S in [−2, 2] is a pair of roots of f on the unit circle. V, of leading coefficient 2, has all four roots of its S there, so every root on the circle; U and T are monic, with 3 of 5 and 2 of 6 there, so neither has every root on the circle.
Open fronts
Does the pure law hold at every depth for k ≤ 7? A break at k = 1 past depth 18, or there a polynomial in the list that is no pure product, would answer Borwein and Mossinghoff's question. A first read, not yet a claim here, from the compiled walk run once at five more cells: no break, d_2(17) = 126, d_3(17) = 104, d_3(18) = 116, d_4(18) = 101 and d_8(18) = 82, each the least pure degree, each list one pure product. That leaves d_2(18) alone open to depth 18, its price read at its first widths as hours. The columns rest there, a run of new cells having held no break, no tie and no new factor. They reopen on a walk a decade cheaper at k = 2, on a fifth limb in the sums, which depth 19 at k = 1 wants, or on a break or a tie found by another route. A first read, not yet a claim here, by hand: a pure product with J parts is reciprocal up to the sign (−1)^J, so where every extremal polynomial is one, the source's third problem, a reciprocal polynomial of least degree at every depth, holds up to sign to depth 18, and read strictly fails at every odd depth, at J = 1 already.
Where does a polynomial that is no pure product enter a list, and is there a tie at a height below 7? The lists are read at J ≤ 16 for k = 1, at J = 2…16 for k = 2…12 and at the eighteen cells past depth 16; none is read at k > 12. The probe: the list at every cell the walk reaches, read by height. And are U, V and T traded in anywhere: is each tie's polynomial a pure product with some cyclotomic factors swapped for its factor, as at the chart's failing cells (FLATTEN: A traded pure product attains every failing cell of the chart)? The probe: that section's swap run at the two ties with U, V and N in its seed. A first read, not yet a claim here, by hand: where d_(k−1)(J) is above d = d_k(J), nothing of height below k has degree d, and nothing of height at most k a lower one, so the list is every minimiser of h(d + 1, J) = k up to sign. With d_6(14) = 52 and d_8(15) = 55 from the table, h(50, 14) = 7 would then have three minimisers and h(54, 15) = 9 two, at cells where a pure product attains h.
Is a break's polynomial always alone, and one degree under the pure product's? It is at the three read. The probe: the walk's last width at each new break.