Exact escape times for Langton's ant on all three-row rectangles
How long can Langton's ant stay inside a three-row rectangle? For every integer width \(n\ge3\), the maximum over all two-color initial configurations, starting cells and compass headings is \[S_{3,n}=\begin{cases}10n-12& n\text{ even},\\10n-13& n\text{ odd}.\end{cases}\] An update turns clockwise on white or counterclockwise on black, flips the current cell, and moves one cell. The first exit through any side ends the run, and the exit-producing update is counted. The result proves that Etse's two lower constructions are optimal at every width in this range. The conserved sector is \(p\equiv x+y+\mathbf 1_{\{\text{heading vertical}\}}\pmod 2\), with columns indexed eastward and rows southward from zero. The horizontal-heading rows in column \(x\) have parity \((p+x)\bmod2\). Each column stores chronological crossing words \(L,R\) of direction–row pairs, a start bit \(s\), and a vertical-exit bit \(t\). Simulating visits with the updated three-bit mask carried forward gives the maximum local weight \(W_q(L,R,s,t)\) in updates. A cap of 14 crossings per internal cut retains a maximizer in each sector. Matching identical words on shared cuts and imposing one start and one exit gives a single chronological trajectory. For prefix length \(m\), the state \(V_m^p(R,a,b)\) stores the best score with binary start and exit counts \(a,b\). With \(q=(p+m)\bmod2\), \[V_{m+1}^p(R,a',b')=\max_{a+s=a',\ b+t=b'}[V_m^p(L,a,b)+W_q(L,R,s,t)],\] where the maximum ranges over \(L,a,b,s,t\) and missing states have weight \(-\infty\). Write \(E_\sigma\) for the empty word and all singleton words of sign \(\sigma\), with east positive, and \(e(R)=\mathbf1_{\{R\ne\varnothing\}}\). Initialize \(V_0^p(L,0,e(L))=0\) for \(L\in E_{-1}\) and accept \(A(V)=\max_{R\in E_{+1}}V(R,1,1-e(R))\). Then \(S_{3,n}=\max_p A(V_n^p)\). The certificate gives accepted scores 17 and 28 at widths three and four in both sectors, and the full-table bounds \(V_5^p\le V_3^p+20\), \(V_6^p\le V_4^p+20\). Monotonicity and the repeating column parity propagate the bounds to every width. For attainment, start at \((0,0)\) heading east. With bit \(y\) indicating black, use masks \((2,0)(2,3)^k\) for \(n=2+2k\), \(k\ge1\), and append \((0)\) for \(n=3+2k\), \(k\ge0\). Each repeated pair adds 20 updates, with terminal runs of 8 and 17 updates, respectively. Etse, §5 and §4.3.2, Theorem 8 and Figure 12. For the standard two-color turn–flip–step ant on a \(3\times n\) rectangle, what is the maximum number of updates through first exit over all initial colorings, internal starting positions and headings? Are Etse's parity-dependent lower constructions optimal for all integer widths \(n\ge3\)? Yes. The exact maximum is \(10n-12\) for even \(n\) and \(10n-13\) for odd \(n\), including the exit-producing update through any side. This solves the three-row case of Etse's broader exact-values question.
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.24701802
- Primary Topic
- Cellular Automata and Applications
- Type
- preprint