Polynomial recurrences for two balanced prefix-excursion families
A word with fixed letter counts can be read as a walk whose height records how far each prefix is below its prescribed sum bound. In both families the walk starts and ends at zero, and every intermediate height must be nonnegative. This representation gives two exact recurrence results. For the five-letter family it proves the signed order-three recurrence proposed by Kauers and Koutschan. For the four-letter family it gives a polynomial-coefficient recurrence specified by finite determinants. Both results hold for every integer \(n\ge0\), including the empty word at \(n=0\). In the five-letter problem, \(a_n\) counts words with \(n\) copies of each letter \(j\in\{1,2,3,4,5\}\) whose first \(\ell\) letters sum to at most \(3\ell\) for every prefix length \(\ell\). Assigning step \(3-j\) to letter \(j\) gives a nonnegative walk. The \(n\) zero steps can occupy any \(n\) of the \(5n\) positions, because each simply repeats the current height. The other steps form a walk with \(n\) occurrences of each of \(-2,-1,1,2\). The product of the two small roots of its excursion kernel yields the following single sum for the normalised count: \[\widetilde a_n=\frac{(n!)^3((n+1)!)^2}{(5n)!}\,a_n =n+1-\sum_{k=0}^n n(n+1)(-1)^k\binom nk\frac{1}{k+1}\binom{2k}{k}\frac{k!(n+k)!}{(n+2k+1)!}. \] Kauers and Koutschan asked whether \(\sum_{i=0}^3c_i(n)\widetilde a_{n+i}=0\) with the following signed coefficients. The answer is yes for every integer \(n\ge0\). Kauers–Koutschan, §6.1, Conjecture 15 \[\begin{aligned} c_0(n)&=-2(n+1)(n+2)(65n^3+593n^2+1772n+1740),\\ c_1(n)&=2015n^5+24428n^4+114387n^3+258294n^2+281088n+118368,\\ c_2(n)&=-4(910n^5+11032n^4+52047n^3+119686n^2+134365n+58980),\\ c_3(n)&=3(3n+8)(3n+10)(65n^3+398n^2+781n+496). \end{aligned} \] The sum gives the three starting values, and \(c_3(n)>0\) for \(n\ge0\) allows forward iteration at every index. To work directly with \(a_n\), put \(h^{\overline j}=\prod_{t=0}^{j-1}(h+t)\) and \(d_i(n)=\prod_{t=0}^{i-1}\prod_{r=1}^4(5n+5t+r)\), with empty products equal to one. Equivalent degree-15 coefficients multiplying \(a_{n+i}\) are \[\frac{5^{3-i}c_i(n)}{(n+1)(n+2)}\frac{d_3(n)}{d_i(n)}\bigl((n+1)^{\overline i}(n+2)^{\overline i}\bigr)^2, \qquad 0\le i\le3. \] These follow by substituting the factorial normalisation and clearing the common denominators for \(n\ge0\). OEIS A215570, signed recurrence in %F In the four-letter problem, now let \(a_n\) count words with \(n\) copies of each letter \(j\in\{1,2,3,4\}\) whose first \(\ell\) letters sum to at most \(5\ell/2\) for every prefix length \(\ell\). The steps \(5-2j\) turn this condition into nonnegativity at every position, including odd positions. Kauers and Koutschan asked for a proved recurrence for these counts. The construction below gives a nonzero scalar polynomial-coefficient recurrence on the original index \(n\). Kauers–Koutschan, §6.1, concluding paragraph on A215562 Give the steps \((-3,-1,1,3)\) weights \((zxy,z/x,z/x,zx/y)\), where \(z\) marks length, and let \(E(z,x,y)\) be the generating function of nonnegative walks returning to zero with these weights. Taking the constant term in \(y\) makes the two size-three counts equal. Return to zero then makes the size-one counts equal, and taking the constant term in \(x\) makes the two pairs have the same count. Thus \(\operatorname{CT}_{x,y}E=\sum_{n\ge0}a_nz^{4n}\), where \(\operatorname{CT}\) extracts exponent zero in each indicated variable. Here the kernel has three roots tending to zero as \(z\to0\) for fixed nonzero \(x,y\). Their product is \(zxyE\). To compute an equation for this branch, use the six-dimensional column companion matrix \(M\), with standard basis \(e_0,\ldots,e_5\), defined by \[M e_i=e_{i+1}\quad(0\le i<5),\qquad M e_5=-y^2e_0-(y/x^2)e_2+(y/(zx))e_3-(y/x^2)e_4. \] Form \[G(z,x,y,w)=-y^{-20}\det\!\left(zxywI_{20}-\bigwedge^3 M\right). \] Here \(I_m\) denotes the identity of size \(m\), and the exterior cube \(\bigwedge^3M\) is the matrix of \(3\times3\) minors indexed by increasing row and column triples in lexicographic order. Its eigenvalues are the twenty triple products of kernel roots. The relevant root of \(G=0\) is the branch \(w=E\) with \(E(0,x,y)=1\), selected by \(G(0,x,y,w)=w-1\). To construct the recurrence, replace each monomial \(z^j x^a y^c w^b\) of \(G\) by \(v^{j/2}X^{a/2}y^c w^{b-a}\), keeping its coefficient, and multiply the result by \(Xy\) to obtain the polynomial \(H(v,X,y,w)\). The substitution uses \(v=z^2\) and \(X=(xw)^2\). With \(s=w-1\), set \[P_0=\left.(w\partial_w+2X\partial_X-2)H\right|_{w=1+s},\qquad F_0=Xy\,H(v,X,y,1+s). \] The subscripts on \(\partial\) indicate the variable differentiated, with the other variables held fixed. The resulting rational function represents the counting series by a closed contour integral for sufficiently small \(|v|\): \[B(v)=\sum_{n\ge0}a_nv^{2n}=\frac{1}{(2\pi\mathrm{i})^3}\int_\Gamma\frac{P_0}{F_0}\,dX\,dy\,ds, \] where \(\mathrm{i}^2=-1\) and \(\Gamma\) is the product of the positively oriented circles \(|X|=|y|=1\) and \(|s|=1/2\). The even powers record that a balanced word has length \(4n\). Use the following finite polynomial and determinant operations to obtain the coefficients. 1. In variables \(Z=(Z_0,Z_1,Z_2,Z_3)\), homogenise \(P_0\) to degree 14 as \(P\) and \(F_0\) to degree 18 as \(F_{\rm orig}\), using \((X,y,s)=(Z_1,Z_2,Z_3)/Z_0\). Introduce a parameter \(e\) and set \(F=(1-e)F_{\rm orig}+e\sum_{i=0}^3 Z_i^{18}\) and \(m_k=18k-4\). Index the rows and columns that represent the contour integrals by slots \((k,\alpha)\) with \(1\le k\le3\), \(|\alpha|=m_k\) and \(0\le\alpha_i\le16\). Here \(\alpha\) has four nonnegative integer entries, \(|\alpha|\) is their sum and \(Z^\alpha=\prod_i Z_i^{\alpha_i}\). There are respectively 680, 3281 and 680 slots, so their total is \(N=4641\). At \(k=4\) no degree-\(m_4\) monomial has all four exponents at most 16. Use increasing \(k\) and lexicographic monomial order. 2. For \(k=2,3,4\), form a square matrix \(L_k\) of size \(\binom{m_k+3}{3}\) in the monomial basis of degree \(m_k\). For each column \(\alpha\), enter the coefficients of \(Z^\alpha\) if every exponent is at most 16. Otherwise take the least \(i\) with \(\alpha_i\ge17\) and enter the coefficients of \(Z^{\alpha-17\mathbf e_i}\partial_{Z_i}F/18\), where \(\mathbf e_i\) is the \(i\)-th unit multi-index. Each \(L_k\) is the identity at \(e=1\). For a homogeneous input \(Q\) of degree \(m_k\), define its row \(R_1(Q)\) at \(k=1\) by its coefficients in the order-one slots, zero elsewhere. For \(k\ge2\), use \(L_k^{-1}=\operatorname{adj}(L_k)/\det L_k\) over \(\mathbb Q(v,e)\) to decompose \(Q=Q_{\rm box}+\sum_{i=0}^3 B_i\partial_{Z_i}F\). The columns with exponents at most 16 give \(Q_{\rm box}\), and each other column contributes its coordinate times \(Z^{\alpha-17\mathbf e_i}/18\) to \(B_i\). Define \(R_k(Q)\) as the coefficient row of \(Q_{\rm box}\) in the order-\(k\) slots plus \(R_{k-1}((\sum_i\partial_{Z_i}B_i)/(k-1))\). At order four the first row in this sum is zero. 3. Form the following polynomial matrix and rows, where \((k,\alpha),:\) specifies a whole row and \(v\)-derivatives keep \(e\) fixed: \[\begin{gathered} \Delta=\prod_{k=2}^4\det L_k,\qquad (S_*)_{(k,\alpha),:}=\Delta R_{k+1}(-k Z^\alpha\partial_v F),\\ r_0=R_1(P),\qquad r_{j+1}=\Delta\partial_v r_j-j(\partial_v\Delta)r_j+r_j S_*\quad(0\le j<N). \end{gathered} \] 4. Let \(Y\) have columns \(r_0^\top,\ldots,r_N^\top\), where \(\top\) denotes transpose. With auxiliary variable \(\xi\), set \(J(\xi)=\xi I_{N+1}+Y^\top Y\) and let \(\nu\) be the lowest power of \(\xi\) with nonzero coefficient in \(\det J(\xi)\). Take \(\gamma\) to be the first nonzero column of \([\xi^{\nu-1}]\operatorname{adj}J(\xi)\), with components indexed from \(0\) to \(N\). Brackets denote coefficient extraction and \(\operatorname{adj}\) is the classical adjugate. Put \(q_j=\Delta^j\gamma_j\), let \(\mu\) be the smallest power of \(e\) occurring with nonzero coefficient among the nonzero \(q_j\), and set \(p_j(v)=[e^\mu]q_j\). These polynomials are coefficients of a differential equation \(\sum_{j=0}^N p_j(v)B^{(j)}(v)=0\), where \(B^{(j)}\) is the \(j\)-th derivative. Set \(b=\max_{p_j\ne0}\deg p_j\), \(p_{j,i}=[v^i]p_j\), and take \(\rho\) to be the least element of \(\{0,1\}\) for which some nonzero \(p_{j,i}\) has \(b+\rho-i+j\) even. The resulting recurrence, valid at every integer \(n\ge0\), is \[\sum_{\substack{0\le j\le N,\ 0\le i\le b\\ b+\rho-i+j\;\mathrm{even}}} p_{j,i}\,(2n+b+\rho-i+1)^{\overline j}\, a_{n+(b+\rho-i+j)/2}=0. \] All shifts are nonnegative integers. Grouping terms with the same shift gives the polynomial coefficient of each count. At any index where the coefficient of the largest shift is nonzero, the recurrence determines that count from the preceding counts. The determinants specify the coefficients exactly and are left unexpanded. The minimal recurrence order remains undetermined here.
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.24794586
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint