Exact cyclic enumeration for consecutive triple avoidance
The three unresolved consecutive triple pairs in Rupert Li's Table 1 and open questions are \(\{123,231\}\), \(\{132,213\}\) and \(\{132,312\}\). The paper gives an exact recurrence through any length \(N\), using \(O(N^4)\) integer additions and subtractions and \(O(N^3)\) integer slots. The recurrence also works for any fixed subset of the six triple patterns. Start each cycle at its minimum. The first entry after the minimum and the last two entries suffice to test the triples that cross the cut. On appending a new last rank, the test on the preceding penultimate rank has at most three intervals on which its answer is constant. Prefix sums over those intervals give the stated resource bound and count each rotation class once. Write \(\operatorname{st}\) for standardization, replacing each member of a distinct triple by its rank. After starting a representative at \(1\), remove that entry and subtract 1 from all remaining entries. Let \(F_m(a,u,v)\) count \(m\)-entry tails with first entry \(a\) and last two entries \(u,v\), requiring all internal triples and the opening triple to avoid a given set \(E\). Initialize \(F_2(a,a,v)=\mathbf{1}_{\operatorname{st}(1,a+1,v+1)\notin E}\) for \((a,v)=(1,2),(2,1)\). For each appended rank \(r\) shift every old rank \(z\) to \(s_r(z)=z+\mathbf{1}_{z\ge r}\). Add \(F_m(a,u,v)\) to the new state \((s_r(a),s_r(v),r)\) exactly if \(\operatorname{st}(s_r(u),s_r(v),r)\notin E\). Grouping by final state, prefix sums over the possible old penultimate ranks implement this test in at most three intervals. To read the cyclic count, sum \(F_{n-1}(a,u,v)\) over states passing both \(\operatorname{st}(u+1,v+1,1)\notin E\) and \(\operatorname{st}(v+1,1,a+1)\notin E\). These two wrap tests affect the output only. Start the sequences with \(G_1(E)=G_2(E)=1\); there are no triples of distinct positions at those lengths. The same recurrence implements all three original pairs by changing \(E\), with no change to the boundary state.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24665788
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint