Kurkov's weighted dyadic sums and partition example
Kurkov asked how to compute weighted dyadic sums recursively and how to recover the weights from a prescribed sequence of sums. The sums satisfy recurrences in both directions, and every integer sequence beginning with \(1\) occurs as the column \(s(n,0)\) for exactly one integer weight sequence. The inverse confirms the ordered-tree example and identifies the one-place shift in the partition example. MathOverflow question, 23 May 2023 revision. Let \(f_m=f(m)\) be arbitrary integer weights indexed by \(m\ge0\). Set \(b(0)=1\) and define \(b\) at positive integers by \[b(2^m(2j+1))=\sum_{k=0}^m f_{m-k}b(2^k j)\qquad(m,j\ge0). \] Each positive integer has a unique representation in this form, and every argument on the right is smaller. For non-negative integers \(n,m\), put \(s(n,m)=\sum_{0\le j<2^n}b(2^mj)\). The initial row is \(s(0,m)=1\) for all \(m\ge0\). The even summation indices give the shifted term in the forward recurrence, while the odd indices give the weighted sum. The forward and backward forms are \[\begin{aligned} s(n,m)&=s(n-1,m+1)+\sum_{k=0}^m f_{m-k}s(n-1,k) &&(n\ge1,\ m\ge0),\\ s(n,m)&=s(n+1,m-1)-\sum_{k=0}^{m-1}f_{m-k-1}s(n,k) &&(n\ge0,\ m\ge1). \end{aligned} \] The row \(s(1,m)\) gives the weights directly through \(f_m=s(1,m)-1-\sum_{k=0}^{m-1}f_k\) for every \(m\ge0\), with the sum empty at \(m=0\). To compute or invert the column \(s(n,0)\), use the formal power series \(F(u)=\sum_{m\ge0}f_m u^m\), \(H(z,u)=\sum_{n,m\ge0}s(n,m)z^n u^m\) and \(A(z)=H(z,0)\). Their relation is \[\bigl(u-z(1+uF(u))\bigr)H(z,u)=\frac{u}{1-u}-zA(z). \] For given weights, compute the unique series \(U(z)\) with constant term zero satisfying \(U=z(1+UF(U))\), then read the column from \(zA(z)=U(z)/(1-U(z))\). Conversely, for any prescribed \(A(z)\) with integer coefficients and constant term \(1\), set \[U(z)=\frac{zA(z)}{1+zA(z)},\qquad Z(U(z))=z,\qquad F(u)=\frac{1}{Z(u)}-\frac{1}{u}. \] Here \(Z\) is the compositional inverse of \(U\), and both have zero constant term and linear coefficient \(1\). The reciprocal terms have cancelling poles, so the coefficient of \(u^m\) gives the unique integer weight \(f_m\). The construction requires no monotonicity of the prescribed column. For Kurkov's first example, \(f_m=m\) gives \(F(u)=u/(1-u)^2\). With \(W=zA(z)\), the column equation reduces to \(W=z(1+W+W^2+W^3)\), or \(A=1+zA+(zA)^2+(zA)^3\). This is the generating equation recorded for the ordered-tree sequence, and it determines the coefficients uniquely. Hence \(s(n,0)=\mathrm{A036765}(n)\) for every \(n\ge0\). OEIS A036765, generating equation. In the partition example, let \(p(n)=\mathrm{A000041}(n)\) count partitions of \(n\), with \(p(0)=1\). The written choice \(s(n,0)=p(n)\) forces \(f_0=0\) and \(f_1=1\) from the first two nonconstant column entries, \(p(1)=1\) and \(p(2)=2\). The written signed identification gives \(f_1=-1\), and placing the first listed entry of A176950 at index zero would give \(f_0=1\). The program instead puts \(p(1)\) in the zero-index slot and tests \(s(n,0)=p(n+1)\), as does the earlier example with input \(1,2,3,5,\ldots\). OEIS A000041, offset and coefficients · Earlier forum example, input sequence. For the program's column, let \(P(z)=\prod_{k\ge1}(1-z^k)^{-1}\) and \(E(z)=1/P(z)\). Then \(zA(z)=P(z)-1\) and \(U(z)=1-E(z)\). If \(D(x)\) is the compositional inverse of \(E(z)-1\), whose linear coefficient is \(-1\), then \(Z(u)=D(-u)\). The published sequence has generating series \(B(x)=1+x/D(x)=\sum_{j\ge1}\mathrm{A176950}(j)x^j\). The inverse formula therefore gives \[F(u)=-\frac{B(-u)}{u},\qquad f_n=(-1)^n\mathrm{A176950}(n+1)\quad(n\ge0). \] For the written unshifted column, the same general construction instead uses \(A(z)=P(z)\). OEIS A176950, generating series and offset.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-04
- DOI
- https://doi.org/10.5281/zenodo.24804242
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint