Exact enumeration of Chapuy's w-trees for arbitrary words

Exact enumeration of Chapuy's \(w\)-trees for arbitrary words How many ordered pairs of maps on \(n\) labelled states give a composite with exactly one cyclic vertex when the same map can occur repeatedly? Guillaume Chapuy asks for an exact formula, recurrence or functional equation in Counting \(w\)-trees, Oberwolfach Reports 2/2026, pp. 145–146, §4, main Question. The recurrence below answers the question for every integer \(n\ge 1\) and every nonempty word \(w=w_1\cdots w_\ell\) on \(\{A,B\}\). It also gives the joint counts of cycles of every length. Chapuy's original question, §4 Choose an ordered pair of arbitrary maps \(f_A,f_B\colon[n]\to[n]\), where \([n]=\{1,\ldots,n\}\). The composite is \(F_w=f_{w_1}\circ\cdots\circ f_{w_\ell}\), so a trajectory applies the letters from right to left. The target count \(T_w(n)\) requires exactly one cyclic vertex. That vertex is a fixed point reached by every state after finitely many iterations of \(F_w\). Both maps count toward the answer even when one letter is absent. The recurrence applies directly to primitive words and their positive powers. A map and any of its positive powers have the same cyclic vertices, which explains why the primitive range suffices for the original count. For each \(0\le k\le n\), start with \(k\) distinct distinguished symbols. Reveal one full word trajectory from each symbol, in order, using a single transition table. An entry is keyed by the letter and the input symbol. A previously assigned entry forces its output across all trajectories and all word positions. For an unassigned entry, branch to any existing symbol or to a fresh symbol named in order of first appearance. Keep a branch if its endpoints are distinct distinguished symbols. The endpoints then form a permutation of the starts. Let \(Q_{w,k,\lambda,d,e}\) count retained branches with endpoint cycle type \(\lambda\), \(d\) fresh symbols and \(e\) assigned entries. Here \(\lambda\vdash k\) means that the parts of \(\lambda\) sum to \(k\). For \(k=0\), the sole branch has empty cycle type and \(d=e=0\). The coefficients depend on \(w\) and \(k\) and can be reused for every \(n\ge k\). A set of marked vertices is a union of cycles of \(F_w\) exactly when the restriction of \(F_w\) to that set is a permutation. Writing \(t_\lambda=\prod_{j\in\lambda}t_j\) with multiplicities and empty product one, the polynomial that records all choices of marked cycles is \[Z_{w,n}(\mathbf t)=\sum_{k=0}^n\binom nk\sum_{\lambda\vdash k} \sum_{d=0}^{n-k}\sum_{e=0}^{2(k+d)} Q_{w,k,\lambda,d,e}(n-k)_{\underline d}\,n^{2n-e}t_\lambda. \] The falling factorial \((n-k)_{\underline d}\) counts injections of the fresh symbols into the labels outside the marked set, with value one for \(d=0\). The factor \(n^{2n-e}\) counts completions of the unassigned entries in the two maps. Each branch makes at most \(k\ell\) transition requests, with \(e\le k\ell\) and \(d\le k(\ell-1)\). A retained branch on \(k+d\) symbols has at most \(2(k+d)\) assigned entries. Thus the exponent in the displayed sum is nonnegative. The empty marked set contributes \(n^{2n}\). The exact answer to Chapuy's question and the full joint cycle-count polynomial are \[T_w(n)=\left.\frac{\partial Z_{w,n}}{\partial t_1}\right|_{t_1=\cdots=t_n=-1},\qquad G_{w,n}(\mathbf u)=Z_{w,n}(u_1-1,\ldots,u_n-1). \] For a fixed map pair, the derivative chooses a fixed point and evaluation at \(-1\) gives weight zero if any other cycle remains. In the sum for \(Z_{w,n}\), this operation discards partitions with no part of size one and replaces each other \(t_\lambda\) by \(m_1(\lambda)(-1)^{\ell(\lambda)-1}\), where \(m_1(\lambda)\) counts parts of size one and \(\ell(\lambda)\) counts all parts. The coefficient of \(\prod_{j=1}^n u_j^{c_j}\) in \(G_{w,n}\) counts ordered map pairs with exactly \(c_j\) cycles of length \(j\) for each \(j\). Dividing by \(n^{2n}\) gives the joint probability for a uniform ordered map pair. Ferudun's Theorem 1 and §3 give exact counts for words with a letter occurring once and the rotations and powers covered there. The proof uses two trajectories, canonical names and shared table entries, with the singleton letter supplying independent samples for a weighted Cayley identity. Chapuy and Perarnau's Lemma 37 uses joint trajectory exposure for the asymptotics of a prescribed fixed list of short cycles. The finite formula above allows both letters to recur and sums over every marked cycle type. The number of starting trajectories needed for the full sum can grow with \(n\). Ferudun, Theorem 1 and §3 · Chapuy and Perarnau, §6.1, Lemma 37

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24797657
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Exact enumeration of Chapuy's w-trees for arbitrary words

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Exact enumeration of Chapuy's w-trees for arbitrary words

Zixuan He
preprint en

Abstract

Exact enumeration of Chapuy's \(w\)-trees for arbitrary words How many ordered pairs of maps on \(n\) labelled states give a composite with exactly one cyclic vertex when the same map can occur repeatedly? Guillaume Chapuy asks for an exact formula, recurrence or functional equation in Counting \(w\)-trees, Oberwolfach Reports 2/2026, pp. 145–146, §4, main Question. The recurrence below answers the question for every integer \(n\ge 1\) and every nonempty word \(w=w_1\cdots w_\ell\) on \(\{A,B\}\). It also gives the joint counts of cycles of every length. Chapuy's original question, §4 Choose an ordered pair of arbitrary maps \(f_A,f_B\colon[n]\to[n]\), where \([n]=\{1,\ldots,n\}\). The composite is \(F_w=f_{w_1}\circ\cdots\circ f_{w_\ell}\), so a trajectory applies the letters from right to left. The target count \(T_w(n)\) requires exactly one cyclic vertex. That vertex is a fixed point reached by every state after finitely many iterations of \(F_w\). Both maps count toward the answer even when one letter is absent. The recurrence applies directly to primitive words and their positive powers. A map and any of its positive powers have the same cyclic vertices, which explains why the primitive range suffices for the original count. For each \(0\le k\le n\), start with \(k\) distinct distinguished symbols. Reveal one full word trajectory from each symbol, in order, using a single transition table. An entry is keyed by the letter and the input symbol. A previously assigned entry forces its output across all trajectories and all word positions. For an unassigned entry, branch to any existing symbol or to a fresh symbol named in order of first appearance. Keep a branch if its endpoints are distinct distinguished symbols. The endpoints then form a permutation of the starts. Let \(Q_{w,k,\lambda,d,e}\) count retained branches with endpoint cycle type \(\lambda\), \(d\) fresh symbols and \(e\) assigned entries. Here \(\lambda\vdash k\) means that the parts of \(\lambda\) sum to \(k\). For \(k=0\), the sole branch has empty cycle type and \(d=e=0\). The coefficients depend on \(w\) and \(k\) and can be reused for every \(n\ge k\). A set of marked vertices is a union of cycles of \(F_w\) exactly when the restriction of \(F_w\) to that set is a permutation. Writing \(t_\lambda=\prod_{j\in\lambda}t_j\) with multiplicities and empty product one, the polynomial that records all choices of marked cycles is \[Z_{w,n}(\mathbf t)=\sum_{k=0}^n\binom nk\sum_{\lambda\vdash k} \sum_{d=0}^{n-k}\sum_{e=0}^{2(k+d)} Q_{w,k,\lambda,d,e}(n-k)_{\underline d}\,n^{2n-e}t_\lambda. \] The falling factorial \((n-k)_{\underline d}\) counts injections of the fresh symbols into the labels outside the marked set, with value one for \(d=0\). The factor \(n^{2n-e}\) counts completions of the unassigned entries in the two maps. Each branch makes at most \(k\ell\) transition requests, with \(e\le k\ell\) and \(d\le k(\ell-1)\). A retained branch on \(k+d\) symbols has at most \(2(k+d)\) assigned entries. Thus the exponent in the displayed sum is nonnegative. The empty marked set contributes \(n^{2n}\). The exact answer to Chapuy's question and the full joint cycle-count polynomial are \[T_w(n)=\left.\frac{\partial Z_{w,n}}{\partial t_1}\right|_{t_1=\cdots=t_n=-1},\qquad G_{w,n}(\mathbf u)=Z_{w,n}(u_1-1,\ldots,u_n-1). \] For a fixed map pair, the derivative chooses a fixed point and evaluation at \(-1\) gives weight zero if any other cycle remains. In the sum for \(Z_{w,n}\), this operation discards partitions with no part of size one and replaces each other \(t_\lambda\) by \(m_1(\lambda)(-1)^{\ell(\lambda)-1}\), where \(m_1(\lambda)\) counts parts of size one and \(\ell(\lambda)\) counts all parts. The coefficient of \(\prod_{j=1}^n u_j^{c_j}\) in \(G_{w,n}\) counts ordered map pairs with exactly \(c_j\) cycles of length \(j\) for each \(j\). Dividing by \(n^{2n}\) gives the joint probability for a uniform ordered map pair. Ferudun's Theorem 1 and §3 give exact counts for words with a letter occurring once and the rotations and powers covered there. The proof uses two trajectories, canonical names and shared table entries, with the singleton letter supplying independent samples for a weighted Cayley identity. Chapuy and Perarnau's Lemma 37 uses joint trajectory exposure for the asymptotics of a prescribed fixed list of short cycles. The finite formula above allows both letters to recur and sums over every marked cycle type. The number of starting trajectories needed for the full sum can grow with \(n\). Ferudun, Theorem 1 and §3 · Chapuy and Perarnau, §6.1, Lemma 37

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon