Synchronized finite-state enumeration of constrained permutation powers
How many permutations of each length pass a fixed finite list of classical avoidance tests on their ordinary powers? Two synchronized transfers give exact rational generating functions. Every test concerns the same input permutation, and the count includes the empty permutation. A classical occurrence is a subsequence with the specified relative order. Every permutation avoiding \(312\) and \(321\) is a unique direct sum of rotation blocks \(R_1=1\) and \(R_a=23\cdots a1\) for \(a\ge2\). Direct sums concatenate blocks in increasing value order. At a positive integer exponent \(e\), \[R_a^e=\iota_{a-r}\ominus\iota_r,\qquad r=e\bmod a, \] where \(\iota_b\) is the increasing permutation of length \(b\), including the empty case, and the skew sum \(\ominus\) places the larger values first. An increasing fragment fits up to length \(\max(a-r,r)\). A nonincreasing-in-order fragment fits precisely if it is a skew sum of two nonempty increasing runs of lengths at most \(a-r\) and \(r\), respectively. For each assigned pair \((e,\tau)\), write the nonempty target as a direct sum of indecomposable components \(\tau_1,\ldots,\tau_h\). If \(j\) components of its longest realized prefix have been matched, the next block updates the state to \[g_{e,\tau}(j,a)=\max\{t\in\{j,\ldots,h\}:\tau_{j+1}\oplus\cdots\oplus\tau_t\text{ occurs in }R_a^e\}, \] with the empty fragment allowed at \(t=j\). An occurrence crossing a block boundary cuts only between components. Even if it uses a shorter old prefix, its fragment in the new block contains the suffix tested by the update. All coordinates use the same \(a\), and completion of any target rejects the transition. The entry \(T(x)_{st}\) sums \(x^a\) over surviving sizes taking state \(s\) to \(t\). For a nonempty list \(\mathcal C\), the update stabilizes at \(L=\max_{(e,\tau)\in\mathcal C}(e+|\tau|)\), so each entry is a polynomial of degree less than \(L\) plus either zero or \(x^L/(1-x)\). The length series is \[F_{\mathcal C}(x)=e_{\boldsymbol{0}}^{\mathsf T}(I-T(x))^{-1}\boldsymbol{1}, \] where the row selects the all-zero initial state and the column accepts all surviving states. The empty list gives \((1-x)/(1-2x)\). For example, requiring the square to avoid \(231\) and the cube to avoid \(2143\) gives \(1/(1-x-x^3)+x^2/(1-x-x^3)^2\), counting blocks of sizes one and three with at most one block of size two. For the separate square problem, fix \(k\ge5\), let \(\delta_k=k(k-1)\cdots1\), and set \(d=k-2\). The one-based unused-label ranks \(r_i\) encode the length-\(n\) inputs avoiding \(312\) and \(\delta_k\) exactly when \[1\le r_i\le d+1,\qquad r_{i+1}\ge r_i-1\quad(1\le i<n),\qquad r_{n-j+1}\le j\quad(1\le j\le\min(d,n)), \] where the alphabet bound applies at every position. The first stage emits \(\pi(i)\) in index order. After arrival \(i+d\), the second stage uses the original selector \(r_i\) on the remaining arrivals in arrival order, selecting index \(\pi(i)\) and emitting \(\pi(\pi(i))\). The finite implementation keeps a word in numeric order, initially \(d\) zeros, and a queue of pending selectors. Each step appends a zero, retags the \(r_i\)-th zero with the next positive arrival rank, and queues \(r_i\). When the queue exceeds length \(d\), it removes the oldest selector, emits the position of the tag with that arrival rank, deletes the tag, and closes the gap in the positive tags. The emitted square ranks lie in \([2d+1]\). A finite monitor retains possible partial witnesses for \(\sigma\in S_3\), storing for each witness entry the number \(b_i\) of smaller unused labels. An emitted rank \(r\) can extend a witness of length \(j\) when \((r\le b_i)\Longleftrightarrow(\sigma_{j+1}<\sigma_i)\) for every witness entry. Both skipping and extending decrement counts with \(r\le b_i\), and extension appends \(r-1\). Completing a witness rejects. The terminal test checks the actual selector suffix and runs \(d\) rank-one steps on a copy of the state to finish monitoring, without applying the input floor or counting those steps toward length. With \(u\) selecting the start, \(f\) indicating terminal acceptance, and \(M\) counting the rank letters realizing each transition, \[a_n=uM^nf,\qquad \sum_{n\ge0}a_nx^n=u(I-xM)^{-1}f. \] Distinct inputs count separately even if their squares coincide. For reachable state set \(S\), coefficients through length \(N\) take \(O((N+1)(d+1)|S|)\) arithmetic operations and \(O(|S|)\) working integer cells after construction. At any fixed cutoff \(k\ge2\), the same form extends to finite lists of positive powers and nonempty classical targets. Stage \(j\) emits \(\pi^j(i)\) at time \(i+(j-1)d\) using \(r_i\), reads ranks in the numeric order of buffers through stage \(j\), and monitors only its first \(n\) emissions. The transfer depends on the cutoff and the list. Archer and Bourne, §5, after the cube example. For each length, how many permutations avoiding classical \(312\) and \(321\) satisfy every test in a fixed finite list assigning nonempty classical forbidden patterns to positive ordinary powers of the same permutation? The joint rotation-block transfer gives the exact count at every length as the coefficient of its rational generating function. It covers isolated cubes and higher powers, skipped exponents, and multiple targets at the same exponent. The \(2143\) criterion for a single power is an antecedent to the general joint construction. Archer and Bourne, §5, final paragraph. For each fixed integer \(k\ge5\) and each classical pattern \(\sigma\in S_3\), how many permutations of length \(n\) avoid both \(312\) and the decreasing pattern of length \(k\) and have an ordinary square avoiding \(\sigma\)? An explicit finite integer transfer gives \(a_n=uM^nf\) at every length for every such pair. For the special case \(k=5,\sigma=132\), an earlier enumeration gave \(a_{11}=1265\), refuting the printed recurrence.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24700444
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint