Light in a box of mirrors: counting the placements that give a single closed curve
Place two-sided mirrors between some pairs of neighbouring dots of an n × k rectangular array of dots, and let rays of light travel at 45° between the dots, reflected by the mirrors and by the boundary. The rays trace finitely many closed curves, as in the sona and kolam drawing traditions. Let T(n,k) be the number of mirror placements for which there is a single closed curve (OEIS A400778). Previously only computed values for n+k ≤ 17 and conjectured formulas for n ≤ 6 were available. We prove the explicit product formula T(n,k) = 4^((n−1)(k−1)) · ∏_{1 ≤ l < n/2} ∏_{1 ≤ m < k/2} (1 − cos²(lπ/n) · cos²(mπ/k)) for all n and k. It implies the six conjectures stated in A400778: the formulas for T(2,k) and T(3,k), the linear recurrences for T(4,k), T(5,k) and T(6,k), and the inequality T(n,k) ≤ 4^((n−1)(k−1)) with equality exactly when min(n,k) ≤ 2. The proof starts from the observation that, once the curves are suitably oriented, the placements counted by T(n,k) are exactly the Eulerian circuits of a digraph with out-degrees at most 2; this holds for any finite set of dots of the square grid and expresses the count as a determinant. For rectangular arrays the determinant is evaluated by means of Knuth's theorem on line digraphs and an explicit diagonalisation. The problem was chosen by the author; the formula and its proof were obtained with the AI system Claude (Anthropic, model Fable 5.2), as described in the statement at the end of the paper. This record contains the paper (PDF and LaTeX source) and the programs used to check the result. The proof has not been refereed and has not been formalised in a proof assistant.
Authors
- Cyril Shtabtsovsky
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24546585
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint