Exact lex-sorted array laws with monotone row or column sums
How many rectangular arrays have both their row words and their column words in weakly increasing lexicographic order? Each word is read from left to right or from top to bottom, and its first unequal entry determines the comparison. With an ordered alphabet of \(q\) symbols and fixed width \(w\), the count is a polynomial in the height of degree \(q^w-1\). For binary arrays, requiring the actual row or column sums to be monotone changes the laws. Reversing a sum order changes the admissible arrays, and transposition exchanges which axis carries each sum condition. The counts use the distinct row words of a sorted array, listed in increasing order. Scan these words once, keeping track of each adjacent column pair whose entries have agreed so far. At its first unequal pair, an increase settles the comparison and a decrease rejects the list. Pairs that agree throughout are allowed. Repeating a word leaves every first difference unchanged. When the admissibility of a list is independent of its multiplicities, let \(B_s\) be the number of admissible lists of size \(s\). At any positive height \(n\), the count and its positive-height ordinary generating function are \[a_n=\sum_{s\ge1} B_s\binom{n-1}{s-1},\qquad \sum_{n\ge1}a_n x^n=\sum_{s\ge1}B_s\left(\frac{x}{1-x}\right)^s. \] Here \(x\) marks the varying dimension and the binomial coefficient counts the choices of positive multiplicities summing to \(n\). It is zero for \(s>n\). The sum is finite. To compute \(B_s\), scan the possible words in order, keeping counts by list size, unsettled comparisons and, when a sum order is required on the listed words, the last included word. At each word, either skip it or include it if its comparisons pass. To fix the height and vary the width, apply the same rule to column words, with the comparisons now acting on adjacent rows. Hardin's unrestricted question asks for the polynomial at every fixed alphabet size and width, and for the printed ternary recurrences at widths three and four. For all integers \(q,w\ge1\), the list of all \(d=q^w\) words is admissible, so \(B_d=1\). The leading coefficient is \(1/(d-1)!\), and the minimal eventual recurrence order is \(d\). Explicitly, \[a_n=\sum_{i=1}^{d}(-1)^{i+1}\binom di a_{n-i}\qquad(n\ge d+1). \] The polynomial continues to \(a_0=1\), the count of the empty array, and with that term the recurrence begins at \(n=d\). The two ternary orders are 27 and 81. The earlier ternary width-two Barker formula has order nine. In the same convention its inclusive series is \(p_1^{-3}+xp_1^{-9}+xp_1^{-8}+xp_1^{-6}\), where \(p_j=1-x^j\) for positive integers \(j\). A184137, with the printed A184131 and A184132 recurrences and the earlier A184130 formula For the binary table with decreasing column sums, Hardin asks for the fixed-height polynomial degrees through height seven and the three printed fixed-width recurrences. At every fixed positive height \(h\), count of lists of \(s\) distinct \(h\)-bit columns by the rule above, allowing a new column only when its number of ones is at most that of the last column. Use these counts for \(B_s\) and set \(n\) equal to the width. The degrees at heights one through seven are \(0,1,2,5,9,19,34\), and the same formula gives the full printed polynomials. The first three are \(2\), \(n+2\) and \(n^2+3\). The height-four and height-five cases have earlier proofs. At fixed widths one, two and three, with \(x\) marking height and one empty array included, the exact series are \[\frac1{p_1^2},\qquad \frac1{p_1^2}+\frac{x^2}{p_1^3p_2},\qquad \frac{x^2+x^3+x^4+x^5}{p_1^4p_2^3p_3}-\frac{x^2}{p_1^4p_2^2}+\frac{2x^2}{p_1^3p_2}+\frac{x^3+x^5}{p_1^4p_2p_3}+\frac1{p_1^2}. \] Subtracting one gives the corresponding positive-height series, including Barker's width-three fraction. The three recurrence orders are two, five and twelve. At width three the recurrence starts at height 13 on positive indices, or at 12 with the empty term. A266470, fixed-height claims 1–7 and fixed-width claims 1–3, with A266464–465 and A266471–474 Hardin's separate table with increasing column sums asks for the first seven fixed-height polynomials and first three fixed-width recurrences. At arbitrary fixed height the column-list calculation allows the number of ones to increase weakly. The degrees through height seven are \(1,3,6,11,19,33,57\), and the resulting polynomials agree with all seven printed ones, including the previously treated heights three and four. At fixed widths one, two and three the inclusive series are \[\frac1{p_1^2},\qquad \frac1{p_1^3p_2},\qquad U(x)=\frac{1-x+2x^2}{p_1^5p_2^2p_3}. \] The width-two series is the known A002623 count. The width-three series gives the exact Barker fraction \(U(x)-1\), with order twelve from height 13 on positive indices, or from 12 with the empty term. The two sum directions already differ at height one. There are \(n+1\) arrays of width \(n\) with increasing sums, and two with decreasing sums. A266428, fixed-height claims 1–7 and fixed-width claims 1–3, with A266423 and A266429–433 When both lists of sums are constrained, the same first-difference test determines which distinct word lists can be used, and an additional integer count determines their allowed multiplicities. At fixed width \(w\), retain lists \(S=(u_1,\ldots,u_s)\) whose row weights follow the required order. If \(t_i\ge1\) is the multiplicity of \(u_i\), write \[M_{ji}=\varepsilon\bigl(u_i(j)-u_i(j+1)\bigr)\quad(1\le j<w),\qquad Mt\ge0, \] where \(u_i(j)\) is the bit in position \(j\), and \(\varepsilon=1\) for decreasing column sums and \(-1\) for increasing column sums. The inequalities are componentwise. For each positive length \(n\), let \(T_n\) be the sum over retained lists of the number of positive integer vectors satisfying these inequalities and \(\sum_i t_i=n\). Set \(T_0=1\). This counts actual column sums, so even lists that pass the first-difference and row-weight tests can have inadmissible multiplicities. For fixed height, transpose the array and exchange the two sum directions. The multiplicity count also gives a finite construction of the exact rational series. For each list use the cone \(t\ge0,\ Mt\ge0\), retaining it only if it contains a vector with every coordinate positive. Its primitive integer extreme rays are the shortest nonzero integer generators of its one-dimensional faces. They can be enumerated by choosing a support of \(j\le w\) coordinates and \(j-1\) independent tight rows of \(M\) on those coordinates, solving for a positive generator and testing all inequalities. For each positive integer \(d\), let \(e_d\) be the maximum, over retained cones, of the dimension of the span of rays whose coordinate sum is divisible by \(d\). Only finitely many \(e_d\) are nonzero. Put \(Q(x)=\prod_d\Phi_d(x)^{e_d}\), where \(\Phi_d\) is the \(d\)th cyclotomic polynomial with the convention \(\Phi_1(x)=1-x\). If \(L=\deg Q\), the inclusive series is exactly \[F(x)=\frac{[\,Q(x)\sum_{n=0}^{L}T_nx^n\,]_{\le L}}{Q(x)}. \] The brackets discard terms above degree \(L\). Thus only multiplicity counts through \(L\) are needed. The reduced denominator of \(F-1\), normalised to have constant term one, gives the positive-index recurrence. A denominator \(1-\sum_i c_i x^i\) gives the signed coefficients \(c_i\), with the homogeneous relation applying in degrees beyond the numerator and with the applicable index convention. With both sum lists decreasing, Hardin's four fixed-width laws hold at every positive height in their stated domains. Width one has two arrays at every height. Width two has \(2+\lfloor n/2\rfloor\) arrays at height \(n\), agreeing with the known A004526 expression. At widths three and four the construction above gives Barker's exact positive-height fractions. For widths one through four, respectively, the vectors \((e_1,e_2,\ldots)\), with trailing zeros omitted, are \((1)\), \((2,1)\), \((3,1,1)\) and \((6,4,2,1,1)\). Thus the fractions are determined using counts through heights 1, 3, 6 and 20 respectively. The printed recurrence orders are 1, 3, 5 and 17. The cone construction also yields an exact rational series at any fixed positive width. A266547, empirical columns 1–4, including the Barker fractions A266542 and A266543 With increasing row sums and decreasing column sums, all eight of Hardin's laws hold. For widths one through four the construction uses the exponent vectors \((2)\), \((4,1)\), \((7,4,1)\) and \((12,10,9,5,4)\), with truncation degrees 2, 5, 13 and 66. For heights one through four it uses \((1)\), \((2,1)\), \((3,1,1)\) and \((6,4,2,1,1)\), with degrees 1, 3, 6 and 20. At fixed widths one and two the respective inclusive series are \(p_1^{-2}\) and \(p_1^{-2}+x^2/(p_1^3p_2)\). At fixed heights one and two they are \(1+2x/p_1\) and \(1+3x/p_1+x^2/(p_1p_2)\). The width-two and height-two formulas have earlier catalogue identifications. The exact positive-length series at widths three and four are A266930 and A266931, while heights three and four give A266936 and A266937. The order-31 recurrence is for width four and varying height. It begins at height 32 with positive predecessors, or at 31 with the empty term. The order-17 recurrence is for height four and varying width. A266935, both empirical lists through dimension four and their four companions With both sum lists increasing, the first three fixed-width laws also hold. At width one the count is \(n+1\), and at width two it is the known A002623 count with inclusive series \(1/(p_1^3p_2)\). At width three the single extra row-weight obstruction in the increasing-column-sum class is the joint occurrence of \(011\) and \(100\). Removing one of each preserves the column-sum differences and gives a bijection from the excluded arrays at height \(n\) to all arrays in that class at height \(n-2\), for \(n\ge2\). The inclusive series is therefore \((1-x^2)U(x)\), using the one-axis series above. Subtracting one gives Barker's exact fraction of r
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24798658
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint