\documentclass[11pt,reqno]{amsart} \usepackage{jaswal} \usepackage{tikz} \newcommand{\Q}{\mathbb{Q}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\R}{\mathbb{R}} \newcommand{\C}{\mathbb{C}} \newcommand{\GL}{\mathrm{GL}} \newcommand{\tri}[4]{(#1,#2,#3)/#4} \begin{document} \title[Scalene rational triangles: every denominator]{Orbit closures of scalene rational triangles: every denominator} \author{Manvir Jaswal} \thanks{This paper is Part~II of a series on orbit closures of unfoldings of rational polygons: Parts~I \cite{P23} and~II treat triangles, Part~III \cite{P29} quadrilaterals and Part~IV \cite{P30} polygons with at least five sides.} \address{Toronto, Canada} \email{manvirjaswal@icloud.com} \urladdr{https://manvirjaswal.github.io} \date{November 24, 2026} \subjclass[2020]{Primary 37C83; Secondary 32G15, 30F30, 11A07} \keywords{Rational billiards, translation surfaces, orbit closures, affine invariant submanifolds} \hypersetup{pdftitle={Orbit closures of scalene rational triangles: every denominator},pdfauthor={Manvir Jaswal},pdfkeywords={Rational billiards, translation surfaces, orbit closures, affine invariant submanifolds}} \begin{abstract} Delecroix and R\"uth conjectured that, apart from an explicit list, the unfoldings of rational triangles and quadrilaterals without a reflection symmetry have dense $\GL(2,\R)$-orbits in their ambient strata, and proved this for the triangles with angles $p_i\pi/N$ and $N\le58$. We prove the conjecture for triangles. If a scalene rational triangle is not on their list of three infinite families and nine triangles, the orbit closure of its unfolding is the connected component of its stratum when $N$ is odd, and the locus of holonomy double covers of a connected component of a stratum of quadratic differentials when $N$ is even. With the first paper of this series, it follows that the orbit is not dense in that locus for the triangles on the list, except possibly for the triangle with angles $(3\pi/20,\pi/5,13\pi/20)$. Most of the proof concerns subgroups of the units modulo $N$; parts of it, including all of $N\le58$, are computer-assisted. \end{abstract} \maketitle \contents \section{Introduction}\label{sec:intro} A rational triangle $\Delta=\tri{p_1}{p_2}{p_3}N$ has angles $p_i\pi/N$, where $p_1,p_2,p_3$ are positive integers with $\gcd(p_1,p_2,p_3)=1$ and $N=p_1+p_2+p_3$; it is \emph{scalene} if the $p_i$ are distinct. The billiard in $\Delta$ unfolds to a translation surface $(X,\omega)$ \cite{ZemljakovKatok}, which we take with the points of cone angle $2\pi$ unmarked, as in Part~I \cite[\S2.1]{P23}. By Eskin, Mirzakhani and Mohammadi \cite{EskinMirzakhani,EMM} the closure $\mathcal M$ of its $\GL(2,\R)$-orbit is an affine invariant submanifold: near $(X,\omega)$ it is, in period coordinates, an open subset of a complex linear subspace $V$ of $H^1(X,\Sigma;\C)$, where $\Sigma$ is the set of zeros of $\omega$, and its rank is half the dimension of the image $p(V)$ of $V$ in $H^1(X;\C)$. The surface $X$ is the normalization of the curve \[ y^N=x^{p_1}(x-1)^{p_2},\qquad \omega=\frac{y\,dx}{x(x-1)}, \] and $T(x,y)=(x,\zeta y)$, $\zeta=e^{2\pi i/N}$, has $T^*\omega=\zeta\omega$ \cite[\S6]{MirzakhaniWright}. For scalene $\Delta\ne\tri123{6}$ the powers of $T$ are the only automorphisms of $X$ that multiply $\omega$ by a constant \cite[Theorem~6.2]{P23}. For even $N$, $\iota=T^{N/2}$ has $\iota^*\omega=-\omega$, so that $\omega^2$ is the pull-back of a quadratic differential $q$ on the quotient $X/\iota$. Let $\Delta$ be scalene. We call the following locus $\mathcal L$ the \emph{ambient locus} of $\Delta$. For odd $N$ it is the connected component of the stratum of $(X,\omega)$ that contains $(X,\omega)$. For even $N$ it is the locus of holonomy double covers of the surfaces in the connected component of the stratum of quadratic differentials that contains $(X/\iota,q)$. In both cases $\mathcal M\subset\mathcal L$, and $\mathcal L$ is the component through $(X,\omega)$ of what Delecroix and R\"uth call the ambient stratum of $\Delta$ \cite[\S\S1 and~4]{DelecroixRuth}. Delecroix and R\"uth proved with the flatsurf software that for every scalene triangle with $N\le58$ the orbit of the unfolding is dense in its ambient stratum, except for the triangles \begin{equation}\label{eq:list} \begin{gathered} \tri12{2k+1}{(2k+4)}\ (k\ge2),\quad \tri1k{k+1}{(2k+2)}\ (k\ge3),\\ \tri2{2k+1}{2k+3}{(4k+6)}\ (k\ge1),\quad \tri147{12},\quad \tri234{9},\quad \tri345{12},\quad \tri357{15},\\ \tri136{10},\quad \tri138{12},\quad \tri14{11}{16},\quad \tri14{15}{20},\quad \tri34{13}{20} \end{gathered} \end{equation} \cite[Theorem~4.1]{DelecroixRuth}, and they conjecture that the list of exceptions in their Theorems~4.1 and~4.2, for triangles and quadrilaterals, is complete \cite[\S4]{DelecroixRuth}. With $k-2$ for $k$, the first family is $\tri12{2k-3}{2k}$, $k\ge4$, as \cite[Theorem~1.1]{P23} writes it; there $\tri1k{k+1}{(2k+2)}$ starts at $k=2$, since $\tri123{6}$, whose unfolding is a torus, has rank one. The three families and the next four triangles of \eqref{eq:list} are lattice triangles, found by Veech, Vorobets, Ward, Kenyon and Smillie, and Hooper \cite{Veech89,VorobetsNote,Vorobets,Ward,KenyonSmillie,Hooper}; $\tri136{10}$ and $\tri138{12}$, found in Delecroix and R\"uth's search and listed by them as of rank one, have rank one \cite[Theorem~1.1]{P23}; and $\tri14{11}{16}$ and $\tri14{15}{20}$ have rank two, their orbit closures being loci found by Eskin, McMullen, Mukamel and Wright \cite[Theorem~1.1]{EMMW}, \cite[Proposition~8.10]{P23}. Delecroix and R\"uth name as partial results \cite[\S4]{DelecroixRuth} Mirzakhani and Wright's infinite family of triangles with dense orbits in components of strata \cite[Theorem~1.4]{MirzakhaniWright}, Larsen, Norton and Zykoski's proof that, outside six families, the triangles with an obtuse angle above $2\pi/3$ are not lattice triangles \cite{LNZ}, and Apisa's determination of the orbit closures of all rational right and isosceles triangles \cite[Theorems~7.6 and~7.7]{Apisa}. Part~I determined the scalene triangles of rank one \cite[Theorem~1.1]{P23} and proved the conjecture for prime $N$ \cite[Theorem~1.2]{P23}. We prove it for triangles; quadrilaterals are not treated here. \begin{theorem}\label{thm:main} Let $\Delta$ be a scalene rational triangle that is not in \eqref{eq:list}. Then the $\GL(2,\R)$-orbit closure of its unfolding is its ambient locus. \end{theorem} For $N\le58$ it is Delecroix and R\"uth's theorem, and for right triangles it is Apisa's \cite[Theorem~7.6]{Apisa}. The proof reads the rank of the orbit closure off a set $S$ of characters of $T$, which the rules of Part~I make closed under three operations; \cref{thm:main} asks that $S$ be as large as the ambient locus allows. The new step is a translation: if the triangle has a witness, a unit $x$ with $2x\not\equiv2\pmod N$ for which $T^*$ has holomorphic eigenforms of characters $x$ and $2-x$, one rule gives $H+(x-1)=xH$ when $S$ is a group $H$ of units and every $h+x-1$, $h\in H$, lies in the set $F$ of characters that the ambient locus allows; summing this identity modulo the primes of $N$ shows that $H$ then contains a nontrivial group of units congruent to $1$ modulo a divisor of $N$, at every $N$. The rules alone can stop short on some triangles with an angle $\pi/3$ or $2\pi/3$ and on three families without a witness; there we use the geometry of the unfolding: relative periods at the vertex of an angle $2\pi/3$, and cylinders in explicit models otherwise. Many of the cases are proved in a supplement of $148$ pages, a separate document accompanying this paper, whose sections are numbered S1--S8; \cref{tab:supp} lists what it proves. The proof is about characters of $T$. For $a\in\Z/N$ let $H^1_a$ be the $\zeta^a$-eigenspace of $T^*$ on $H^1(X;\C)$, let $[m]\in\{0,\dots,N-1\}$ be the residue of an integer $m$, and \[ \Phi=\bigl\{a\in\Z/N:\ ap_1,ap_2,ap_3\not\equiv0\ \text{and}\ [ap_1]+[ap_2]+[ap_3]=N\bigr\}. \] By the dimension formula for cyclic covers \cite[Corollary~6.2]{MirzakhaniWright}, $H^1_a$ is a line if $ap_i\not\equiv0$ for $i=1,2,3$, spanned by a holomorphic form $\omega_a$ when $a\in\Phi$, and is zero otherwise \cite[Lemma~2.1]{P23}. As $T^*V=V$, \begin{equation}\label{eq:S} p(V)=\bigoplus_{a\in S}H^1_a,\qquad \operatorname{rank}\mathcal M=\tfrac12\lvert S\rvert, \end{equation} for a set $S$ of characters with $\pm1\in S$ \cite[Lemma~2.4]{P23}. Let $F$ be the set of $a\in\Z/N$ with $ap_1,ap_2,ap_3\not\equiv0$, and odd if $N$ is even. Then $S\subset F$; for even $N$ this holds because $V$ lies in the $(-1)$-eigenspace of $\iota^*$ \cite[Corollary~6.3]{P23}. The ambient locus has rank $\lvert F\rvert/2$, so the next theorem says that $\mathcal M$ has the rank of $\mathcal L$. \begin{theorem}\label{thm:chars} Let $N>58$ and let $\Delta$ be a scalene rational triangle that is not in \eqref{eq:list}. Then $S=F$. \end{theorem} For odd $N$ this says $p(V)=H^1(X;\C)$, so $\mathcal M$ is a connected component of a stratum or the hyperelliptic locus in one, by Mirzakhani and Wright \cite[Theorem~1.1]{MirzakhaniWright}; their Lemma~6.7 excludes the second, as $N$ is odd and the angles are distinct. For even $N$, \cref{thm:full} below gives $\mathcal M=\mathcal L$. So \cref{thm:chars} proves \cref{thm:main} for $N>58$. With Part~I it decides, for all but one scalene triangle, whether the orbit is dense in its ambient locus. \begin{corollary}\label{cor:exact} Let $\Delta$ be a scalene rational triangle other than $\tri34{13}{20}$. The orbit closure of its unfolding is its ambient locus if and only if $\Delta$ is not in \eqref{eq:list}. \end{corollary} Indeed, for the triangles of \eqref{eq:list} other than $\tri34{13}{20}$, $\lvert S\rvert$ is $2$ or $4$ by the results of Part~I quoted above, while $\lvert F\rvert\ge\varphi(N)\ge4$, and $\lvert F\rvert=8$ for $\tri14{11}{16}$ and $\tri14{15}{20}$. For $\tri34{13}{20}$ the ambient locus is $\widetilde{\mathcal Q}_4(11,1)$, of dimension~$8$; Delecroix and R\"uth prove that $\mathcal M$ has dimension at least $4$ and conjecture that it has dimension $4$ and field of definition $\Q(\sqrt5)$ \cite[Theorem~1.2 and Conjecture~1.1]{DelecroixRuth}, and Delecroix announces a positive answer to this conjecture, from joint work with Kai Fu \cite[pp.~48--49]{DelecroixHab}; his slides of June 2025, on joint work with K.~Fu and B.~Zykoski, list this orbit closure with dimension~$4$, rank~$2$ and field of definition $\Q(\sqrt5)$ \cite[slide~12]{DelecroixJHH80}. With Apisa's Theorems~7.6 and~7.7 \cite{Apisa}, this leaves $\tri34{13}{20}$ as the only rational triangle whose orbit closure is not known. For the finite blocking problem, \cref{thm:main} gives that two finitely blocked points of a scalene triangle not in \eqref{eq:list}, other than $\tri123{6}$, are the same vertex (\cref{cor:blocking}). \subsection{Closed sets and witnesses}\label{ssec:idea} Part~I proves three rules for $S$ \cite[Lemma~3.4 and Theorem~1.5]{P23}. We call a set $C\subset F$ \emph{closed} if \begin{enumerate}[label=\textup{(\roman*)},leftmargin=*] \item\label{it:neg} $C=-C$; \item\label{it:unit} for every unit $u$ modulo $N$, if $C\cap uC\ne\emptyset$, then $uC=C$; \item\label{it:rule} for every unit $u$, every $a\in uC\cap\Phi$ and every $a'\in C$, if $b=1-a-a'$ lies in $\Phi$, then $b\in uC$. \end{enumerate} So $S$ is a closed set containing $1$. Rule~\labelcref{it:rule} with $u=a=x$ and $a'=-1$ puts $2-x$ in $xS$ for every unit $x$ with $x,2-x\in\Phi$. Such an $x$ with $2x\not\equiv2$ is a \emph{witness} \cite[\S1.1]{P23}, and for a witness this is Mirzakhani and Wright's criterion for rank at least two \cite[Theorem~7.5]{MirzakhaniWright}. Let $G=(\Z/N)^\times$ and, for $m\mid N$, $K_m=\{u\in G:\ u\equiv1\pmod m\}$ and $H_m=\{u\in G:\ u\equiv\pm1\pmod m\}$. For a closed set $C\ni1$, rule~\labelcref{it:unit} makes the \emph{unit part} $H=C\cap G$ a subgroup of $G$ containing $-1$, and the elements $a$ of $C$ with $\gcd(a,N)=d$, if there are any, form one orbit $Ha$, which forces $K_{N/d}\subset H$. We call the least $m\mid N$ with $K_m\subset H$ the \emph{conductor} of $H$. It divides $N'$, where $N'=N/2$ if $N\equiv2\pmod4$ and $N'=N$ otherwise, and if it equals $N'$, then $C=H$ (\cref{lem:conductor}). The subgroup containing $-1$, the groups $K_{N/d}$ and the pairs $x,2-x$ go back to Mirzakhani and Wright \cite[Lemmas~7.6, 7.12 and~7.13]{MirzakhaniWright}. Their criterion for full rank \cite[Theorem~7.14]{MirzakhaniWright} asks for every unit in $S$ and for every class of non-units to be linked to the units by such pairs; with rule~\labelcref{it:rule}, the first alone gives $S=F$ once $N>30$ (\cref{thm:units} below). For $N>58$ off \eqref{eq:list}, $\mathcal M$ has rank at least two \cite[Theorem~1.1]{P23}, so $\lvert S\rvert\ge4$, and then the unit part of $S$ is not $\{\pm1\}$ (\cref{lem:conductor}). If it has conductor $1$, it is $G$, and $S=F$ by \cref{thm:units}. So \cref{thm:chars} asks to show that the conductor is $1$, and the main step is to exclude $N'$. A witness does this, at every $N$. \begin{theorem}\label{thm:witness} Let $\Delta$ be a scalene rational triangle that has a witness. Then the unit part of every closed set containing $1$ contains $K_f$ for some $f\mid N$ with $K_f\ne\{1\}$; equivalently, its conductor is a proper divisor of $N'$. \end{theorem} The idea is a translation. Let $C\ni1$ be closed with unit part $H$ of conductor $N'$, so that $C=H$, and let $x$ be a witness and $d=x-1$. Rule~\labelcref{it:rule} with $u=a=x$ and $a'=-1$ puts $2-x$ in $xH$; so $2-x$ is a unit, and $\rho=(2-x)/x$ lies in $H$, with $\rho\ne1$ as $2x\not\equiv2$. Let $h\in H$ with $h+d\in F$. One of $\pm(h+d)$ lies in $\Phi$, and rule~\labelcref{it:rule} with $(u,a,a')=(x,x,h)$, where $b=-(h+d)$, or with $(u,a,a')=(2-x,2-x,-h)$, where $b=h+d$, puts $b$ in $xH$ or in $(2-x)H=xH$, so $h+d\in xH$ as $-1\in H$. If $h+d\in F$ for every $h\in H$, the injective map $h\mapsto(h+d)/x$ of $H$ to itself therefore gives \begin{equation}\label{eq:translate} H+(x-1)=xH . \end{equation} Reduce \eqref{eq:translate} modulo an odd prime $\ell\mid N$ and sum over the image $\bar H$ of $H$ in $(\Z/\ell)^\times$. The elements of $\bar H$ cancel in pairs $\pm h$, so $\lvert \bar H\rvert(x-1)\equiv0$, and $\ell\mid x-1$. Hence $\rho\equiv1$ modulo every odd prime of $N$, and modulo $4$ when $4\mid N$, as $x$ is then odd. Every subgroup of the group of units $\equiv1$ modulo these numbers is some $K_f$, since that group is a product of cyclic groups of coprime prime-power orders, one for each prime of $N$. So $\langle\rho\rangle=K_f\ne\{1\}$ lies in $H$, and the conductor $N'$ of $H$ divides $f$; but $K_f=\{1\}$ for $f=N'$ and $f=N$, a contradiction. If $(h+d)p_i\equiv0$ for some $h\in H$ and some $i$, the map $h\mapsto(h+d)/x$ still sends the other elements of $H$ into $H$. The exceptional $h$ then form one coset of a subgroup of $H$ when $N$ is even, and at most three cosets when $N$ is odd; sums of powers of degree at most three modulo the primes involved, and the translations of the groups $H\cap K_m$ that the map induces, still give a non-trivial $K_f$ in $H$ (\cref{ssec:witness}). Triangles without a witness have been classified: the acute and right ones in Part~I \cite[Theorem~1.7 and Proposition~10.1]{P23}, the obtuse ones with obtuse angle at most $2\pi/3$ in \cite[Theorem~4.1(a)]{P21}, and those with a larger obtuse angle by Larsen, Norton and Zykoski \cite[Theorem~4.1]{LNZ}. For $N>58$ and off \eqref{eq:list}, the scalene ones without an angle $2\pi/3$ lie in ten families (\cref{sec:witness-free}), such as $\tri1{(N-d)/2-1}{(N+d)/2}N$ with $d\mid N$ and $N/d\ge5$ odd. On most of them rule~\labelcref{it:rule} with $a'\ne-1$ excludes the conductor $N'$; on the others we show $S=F$ directly (\cref{sec:families}). A conductor $c$ with $158$, a closed set whose unit part contains $H_{12}$ is $F$ unless $\Delta$ has an angle $\pi/3$ or $2\pi/3$ (\cref{sec:witness-free}). The rules alone do not always suffice. If $12\mid N$ and $\Delta$ has an angle $\pi/3$ or $2\pi/3$, the set of $a\in F$ with $a\equiv\pm1\pmod{12}$ is closed and is not $F$ (\cref{sec:setting}), and on the three families $\tri1{N/2-2}{N/2+1}N$ with $4\mid N$, $\tri2{N/4-1}{3N/4-1}N$ with $8\mid N$ and $\tri4{N/4-2}{3N/4-2}N$ with $N\equiv4\pmod8$ the group $\{\pm1,\pm(1+N/2)\}$ is closed. There we use the geometry of the unfolding. For an angle $2\pi/3$ we use relative periods (\cref{thm:relative}) at the vertex of that angle. For an angle $\pi/3$ we use cylinders: if the units in $S$ were exactly those $\equiv\pm1\pmod{12}$, the ratios of the circumferences of $\mathcal M$-parallel cylinders would lie in $\Q(\sqrt3)$, and Wright's cylinder deformation theorem \cite{WrightCyl} would give some of them a negative conjugate; we find cylinders that admit no such partner (\cref{sec:sixty}). The triangles of these three families have explicit cylinder decompositions that give $\mathcal M$ the rank of $\mathcal L$ (\cref{sec:families}). \subsection{Two tools}\label{ssec:tools} Two tools hold well beyond the range of \cref{thm:chars}, and we state them in that generality. The first completes a closed set once it has all units. \begin{theorem}\label{thm:units} Let $\Delta$ be a rational triangle, isosceles or not, with $N>30$, and let $C$ be a set with $G\subset C\subset F$ that satisfies rules~\labelcref{it:unit} and~\labelcref{it:rule}. Then $C=F$. \end{theorem} For $N\le30$ the conclusion fails on exactly eleven triangles, at $N=12$, $18$, $24$ and $30$, where the characters $a$ with $\gcd(a,N)=3$ can be missing (\cref{sec:setting}). Once $C\supset G$, rule~\labelcref{it:rule} is needed only with $u=1$, and the theorem is a statement about the divisors of $N$ and the holomorphic characters in each class. The second is a rule for relative periods. Let $Z=\ker p$ and $Z_c$ its $\zeta^c$-eigenspace. For $c\not\equiv0$, $Z_c$ is a line if $c$ is a multiple of $N/\gcd(p_i,N)$ for a vertex $i$ whose preimages are zeros of $\omega$, and zero otherwise \cite[Lemma~2.2]{P23}. \begin{theorem}\label{thm:relative} Let $\Delta$ be scalene, $\Delta\ne\tri123{6}$, let $u$ be a unit, $x\in uS\cap\Phi$ and $a\in S$, and suppose that $c=a+x-1$ is not $0$ and that $Z_c\ne0$. Then $Z_{u^{-1}c}\subset V$. \end{theorem} The proof follows that of the rule of Part~I \cite[Theorem~1.5]{P23}, with relative classes in place of absolute ones. The form $\omega_x$ extends to a family of holomorphic forms on the surfaces of $\mathcal M$ near $(X,\omega)$ whose absolute classes stay in the Galois conjugate $\sigma_u(p(V))$, and by Filip's splitting theorem \cite[Theorem~4.2]{FilipSplitting} their relative classes then stay in $\sigma_u(V)$. If $Z_{u^{-1}c}\not\subset V$, a form of character $-c$ with simple poles at the zeros above vertex $i$ is orthogonal to $\sigma_u(V)$, and differentiating its pairing with the family along $V$ contradicts Kahn and Wright's derivative formula \cite[Theorem~1.1]{KahnWright}, in the form \cite[Lemma~3.1]{P23}. Applied with $u=1$, once $S=F$, to every odd $c$ with $Z_c\ne0$, it gives: \begin{theorem}\label{thm:full} Let $N$ be even and $\Delta$ scalene, $\Delta\ne\tri123{6}$. If $\operatorname{rank}\mathcal M=\operatorname{rank}\mathcal L$, then $\mathcal M=\mathcal L$. \end{theorem} \begin{remark}\label{rem:questionA} Mirzakhani and Wright asked whether every affine invariant submanifold of such a locus of double covers that has the rank of the locus is the whole locus \cite[\S1, Question~(A)]{MirzakhaniWright}. As they note, the answer is negative in general, by the work of Eskin, McMullen, Mukamel and Wright \cite{EMMW}; \cref{thm:full} answers it for the orbit closures of unfoldings of scalene triangles. When $\operatorname{rank}\mathcal L\ge g/2+1$, with $g$ the genus of $X$, \cref{thm:full} also follows from Apisa and Wright's classification \cite[Theorem~1.1]{ApisaWrightHigh}: $\mathcal M$ is then a connected component of a stratum, and $\mathcal M\subset\mathcal L$ gives $\mathcal M=\mathcal L$, or the locus of all holonomy double covers of the surfaces in a stratum of quadratic differentials, which is that of $(X/\iota,q)$ because the covering involution is $\iota$ \cite[Theorem~6.2]{P23}. \end{remark} \subsection{The proof}\label{ssec:steps} Let $N>58$ and let $\Delta$ be scalene and not in \eqref{eq:list}. We prove \cref{thm:chars} in the first of the following cases that applies. \begin{enumerate}[label=\textup{(\arabic*)},leftmargin=*] \item \emph{$N$ is prime.} This is \cite[Theorem~1.2]{P23}. \item \emph{An angle $2\pi/3$.} Then $\Delta=\tri p{N/3-p}{2N/3}N$. The lines $Z_c$ above the vertex $2N/3$ are those with $c$ a non-zero multiple of $3$. \Cref{thm:relative} puts some of them in $V$, the derivative formula turns each of these into a further rule for $S$, and with \labelcref{it:neg}--\labelcref{it:rule} these rules force $S=F$ (\cref{sec:families}). \item \emph{$12\mid N$ and an angle $\pi/3$.} Cylinders put every unit in $S$ (\cref{sec:sixty}), and $S=F$ by \cref{thm:units}. \item \emph{The three families above.} Cylinder decompositions give $S=F$ (\cref{sec:families}). \item \emph{$N=2^j$, $2P$ or $3P$ with $P$ prime.} Every closed set containing $1$ with at least four elements is $F$ (\cref{sec:conductors}). \item \emph{$N\le400$.} We find that every closed set containing $1$ with at least four elements is $F$ (\cref{sec:small}). \item \emph{$N>400$.} Let $H$ be the unit part of $S$ and $c$ its conductor; $H\ne\{\pm1\}$, as $\lvert S\rvert\ge4$. If $\Delta$ has a witness, $c\ne N'$ by \cref{thm:witness}. If not, $\Delta$ is in one of the families of \cref{sec:witness-free}; on each, $c\ne N'$ or $S=F$ (\cref{sec:families}), apart from sixteen triangles with $N\le2{,}000$, on which we find that no subgroup $H\ne\{\pm1\}$ of conductor $N'$ is closed (\cref{sec:small}). If $1{\raggedright\arraybackslash}p{9.6cm}l@{}} \toprule statement & section\\\midrule \cref{prop:comp-twelve}\ref{it:c12-values}, the list of $B^\sharp$ & \S S8\\ \cref{thm:D2,thm:D3-large} & \S S7\\ \cref{prop:pow2,prop:2P,prop:3P} & \S S1\\ \cref{thm:growth} & \S S2\\ \cref{thm:Gamma2,thm:Gamma4} & \S S3\\ \cref{thm:doubling,thm:theta,thm:Ad-dense,thm:A1-dense,thm:B-family} & \S S4\\ \cref{prop:sixty-test,prop:sixty-p3,prop:sixty-V,prop:sixty-VK,prop:sixty-types,prop:sixty-low}, and two steps of \cref{ssec:sixty-plan} & \S S5\\ \cref{thm:upto58} & \S S6\\\bottomrule \end{tabular} \caption{The statements proved in the supplement, with its sections.}\label{tab:supp} \end{table} \subsection{Computations}\label{ssec:computations} Finite computations enter the proofs: the closed sets for $581$ of $N$ with $O_d\subset F$ and $K_{N/d}\subset H$, and every choice of $a_d\in O_d$, the set $H\cup\bigcup_{d\in D}Ha_d$ satisfies rules~\labelcref{it:neg} and~\labelcref{it:unit} and has unit part $H$. \end{lemma} \begin{proof} For $s\in H$, $s=s\cdot1\in C\cap sC$, so $sC=C$; hence $H$ is closed under products, so a subgroup, and $-1\in H$ by rule~\labelcref{it:neg}. If $uC=C$, then $u=u\cdot1\in C\cap G$. For $a,b\in C\cap O_d$ choose a unit $u$ with $b=ua$; then $b\in C\cap uC$, so $u\in H$. For $u\in K_{N/d}$ and $a\in C\cap O_d$, $ua=a\in C\cap uC$, so $u\in H$. Conversely, the set is stable under $-1\in H$; if it meets its image under a unit $u$, then, as $u$ preserves each $O_d$ and $d>1$ keeps the orbits $Ha_d$ off $G$, either $u\in H$ directly or $hua_d=h'a_d$ for some $h,h'\in H$, and then $h'^{-1}hu\in K_{N/d}\subset H$. \end{proof} By the Chinese remainder theorem $K_mK_{m'}=K_{\gcd(m,m')}$, since a unit modulo $\operatorname{lcm}(m,m')$ lifts to a unit modulo $N$; so the conductor of a subgroup is well defined, and $K_m\subset H$ if and only if the conductor divides $m$. Also $K_m=\{1\}$ if and only if $m=N$ or $m=N'$: at each prime $\ell$ of $N$ the kernel of reduction from $(\Z/\ell^{e})^\times$ to $(\Z/\ell^{f})^\times$, $e=v_\ell(N)$, $f=v_\ell(m)$, is trivial only for $f=e$, or for $\ell=2$, $e=1$. \begin{lemma}\label{lem:conductor} Let $C\ni1$ be closed, with unit part $H$ of conductor $f$. Then $f\mid N'$; if $C$ meets $O_d$, then $f\mid N/d$; and if $f=N'$, then $C=H$. If $H=\{\pm1\}$ and $N\notin\{3,4,6\}$, then $f=N'$ and $C=\{\pm1\}$. \end{lemma} \begin{proof} $K_{N'}=\{1\}\subset H$, so $f\mid N'$. If $C$ meets $O_d$, then $K_{N/d}\subset H$ by \cref{lem:structure}. If $f=N'$ and $d>1$, then $N'\mid N/d$, which forces $N'=N/2$ and $d=2$, and no element of $F$ is even. If $H=\{\pm1\}$, then $K_f\subset\{\pm1\}$. Here $-1\in K_f$ only for $f\in\{1,2\}$, where $K_f=G\ne\{\pm1\}$ as $N\notin\{3,4,6\}$; so $K_f=\{1\}$, and $f=N'$. \end{proof} The next proposition is why the triangles with an angle $\pi/3$ or $2\pi/3$ need the geometry of the unfolding. \begin{proposition}\label{prop:Splus} Let $12\mid N$ and let $\Delta$ have a numerator $N/3$ or $2N/3$. Then $S_+=\{a\in F:\ a\equiv\pm1\pmod{12}\}$ is closed and differs from $F$. \end{proposition} \begin{proof} Every $a\in F$ is prime to $6$: it is odd, and at the vertex with numerator $\kappa N/3$, $\kappa\in\{1,2\}$, $3\mid a$ would give $ap_i\equiv0$. Let $\chi$ be the character of $(\Z/12)^\times$ with kernel $\{\pm1\}$; then $\chi(ua)=\chi(u)\chi(a)$, and $uS_+=\{a\in F:\ \chi(a)=\chi(u)\}$. Rules~\labelcref{it:neg} and~\labelcref{it:unit} follow. For rule~\labelcref{it:rule}, let $a\in uS_+\cap\Phi$, $a'\in S_+$ and $b=1-a-a'\in\Phi$; we need $\chi(b)=\chi(a)$. If $a'\equiv1\pmod{12}$, then $b\equiv-a$. If $a'\equiv-1$, then $b\equiv2-a$, which is divisible by $3$ if $a\equiv5,11\pmod{12}$, impossible for $b\in F$, and is $\equiv a$ if $a\equiv1,7$. Some unit is $\equiv5\pmod{12}$, and it is not in $S_+$. \end{proof} \subsection{Proof of \texorpdfstring{\cref{thm:units}}{Theorem 1.5}}\label{ssec:units} Let $\Delta$ be any rational triangle and $C$ as in \cref{thm:units}, but with any $N\ge3$. Every unit $u$ lies in $C\cap uC$, so $uC=C$: $C$ is a union of orbits $O_d$, and rule~\labelcref{it:rule} is needed only for $u=1$: if $x,a'\in C$ and $x,1-x-a'\in\Phi$, then $1-x-a'\in C$. Let $\mathcal D$ be the set of $d\mid N$ with $10$, $[ap_k]>0$ and $[ap_i]+[ap_k]0$, $\rho(y)>0$ and $[y]+g\rho(y)0$; put $r=g\rho(y)$ and $r'=g\rho(y')$. Then $a_y,a_{y'}\in\Phi$ if and only if \[ \max(0,L+\varepsilon N-N+r')1$, then $K_{N/d}\subset H$, and $K_{\gcd(m,N/d)}\subset H$ for every $m\mid N$ with $K_m\subset H$. \end{enumerate} \end{lemma} \begin{proof} \labelcref{it:win-two} If the two residues are positive with sum below $N$, the third, $N-[ap_i]-[ap_k]$, lies in $(0,N)$, and the three add up to $N$. Conversely, the residues of $a\in\Phi$ are positive with sum $N$. \labelcref{it:win-coord} $a_yp_i\equiv y$, and $a_yp_k=g\,a_y(p_k/g)\equiv g\rho(y)\pmod{gn}$ with $0\le g\rho(y)0$. \labelcref{it:win-rule} Rule~\labelcref{it:rule} with $u=a=x$, which lies in $xC\cap\Phi$ as $1\in C$, puts $b$ in $xC$. The rest is \cref{lem:structure} and $K_mK_{N/d}=K_{\gcd(m,N/d)}$. \end{proof} \section{Closed sets and witnesses}\label{sec:reduction} This section reduces \cref{thm:chars} to three conditions on the unit parts of closed sets, one for the conductor $N'$, one for the conductors strictly between $1$ and $N'$, and one for the group $H_{12}$, and proves \cref{thm:witness}, which gives the first condition on every triangle with a witness. \subsection{Three conditions}\label{ssec:conditions} Let $\Delta$ be scalene. We say that $\Delta$ satisfies \begin{description} \item[(N$'$)] if no closed set containing $1$ has a unit part $H\ne\{\pm1\}$ of conductor $N'$; \item[(D)] if every closed set containing $1$ whose unit part $H$ has a conductor $c$ with $130$ and let $\Delta$ be scalene and satisfy \textup{(N$'$)}, \textup{(D)} and \textup{(12)}. Then every closed set $C\ni1$ with $\lvert C\rvert\ge4$ is $F$. \end{proposition} \begin{proof} Let $H$ be the unit part of $C$ and $c$ its conductor. As $\lvert C\rvert\ge4$, $H\ne\{\pm1\}$ by \cref{lem:conductor}, which also gives $c\mid N'$; and $c\ne N'$ by (N$'$). If $c=1$, then $G=K_1\subset H$, and $C=F$ by \cref{thm:units}. Otherwise $158$ and let $\Delta$ be a scalene triangle not in \eqref{eq:list} that satisfies \textup{(N$'$)}, \textup{(D)} and \textup{(12)}. Then $S=F$ and $\mathcal M=\mathcal L$. \end{corollary} \begin{proof} The scalene triangles of rank one with $N>58$ are the three families of \eqref{eq:list} \cite[Theorem~1.1]{P23}, so $\operatorname{rank}\mathcal M\ge2$ and $\lvert S\rvert\ge4$ by \eqref{eq:S}. As $S$ is closed and contains $1$ (\cref{ssec:notation}), $S=F$ by \cref{prop:reduction}, and $\mathcal M=\mathcal L$ by \cref{cor:ambient}. \end{proof} Condition (N$'$) is a statement about subgroups of $G$ alone, since a closed set whose unit part has conductor $N'$ is that unit part (\cref{lem:conductor}); and closedness of a subgroup is a condition on sums of two holomorphic characters. We call a pair $(x,b)$ of elements of $\Phi$ with $x+b=c$ a \emph{pair on the diagonal} $c\in\Z/N$; then $(b,x)$ is one too. For a subgroup $H\ni-1$ of $G$ consider the condition \begin{description} \item[(P)] for every $a'\in H$, the two members $x,b$ of every pair on the diagonal $1-a'$ are both non-units, or both units with $b/x\in H$. \end{description} \begin{lemma}\label{lem:P} A subgroup $H\ni-1$ of $G$ is closed if and only if it satisfies \textup{(P)}. Hence $\Delta$ satisfies \textup{(N$'$)} if and only if no subgroup $H\ne\{\pm1\}$ of conductor $N'$ satisfies \textup{(P)}; and if the diagonal $2$ carries a pair with exactly one unit member, no subgroup containing $-1$ is closed, and $\Delta$ satisfies \textup{(N$'$)}. \end{lemma} \begin{proof} Every unit lies in $\Phi\cup-\Phi$ and is odd at even $N$, so $H\subset F$, and rules~\labelcref{it:neg,it:unit} hold for a subgroup containing $-1$. Let $H$ be closed, $a'\in H$, and $(x,b)$ a pair on the diagonal $1-a'$ with $x$ a unit. Rule~\labelcref{it:rule} with $u=a=x$ puts $b$ in $xH$, so $b$ is a unit and $b/x\in H$; the case of a unit $b$ is the same with $x$ and $b$ exchanged. Conversely, let $H$ satisfy (P), and in rule~\labelcref{it:rule} let $a\in uH\cap\Phi$, $a'\in H$ and $b=1-a-a'\in\Phi$. Then $a$ is a unit with $aH=uH$, and $(a,b)$ is a pair on the diagonal $1-a'$; by (P), $b\in aH=uH$. The second statement follows with \cref{lem:conductor}, and the third is (P) at $a'=-1$. \end{proof} \subsection{Proof of \texorpdfstring{\cref{thm:witness}}{Theorem 1.4}}\label{ssec:witness} Let $x$ be a witness, $C\ni1$ a closed set, $H$ its unit part and $c$ its conductor. The $m\mid N$ with $K_m\subset H$ are the multiples of $c$, as $K_mK_c=K_{\gcd(m,c)}$, and $K_m=\{1\}$ only for $m\in\{N',N\}$ (\cref{ssec:closed}); so $H$ contains some $K_f\ne\{1\}$ if and only if $c$ is a proper divisor of $N'$, which is the equivalence in the theorem. Suppose that $c=N'$. Then $C=H$ by \cref{lem:conductor}, so $H$ is closed, and we shall find some $K_f\ne\{1\}$ in $H$, a contradiction. Put $d=x-1$ and $n_i=N/g_i$ for $i=1,2,3$; as $p_i/g_i$ is prime to $n_i$, $ap_i\equiv0$ if and only if $n_i\mid a$. \needspace{4\baselineskip} \begin{lemma}\label{lem:link} The element $\rho=(2-x)/x$ lies in $H$, $\rho\ne1$, and for every $h\in H$ such that no $n_i$ divides $h+d$, $h+d$ is a unit and $(h+d)/x\in H$. \end{lemma} \begin{proof} By rule~\labelcref{it:rule} with $u=a=x$ and $a'=-1$, $2-x\in xH$; so $2-x$ is a unit and $\rho\in H$, and $\rho\ne1$ as $2x\not\equiv2$. Let $h\in H$ with no $n_i$ dividing $h+d$. Then $h+d\in\Phi\cup-\Phi$; at even $N$ it is odd, as $h$ and $x$ are. If $-(h+d)=1-x-h$ lies in $\Phi$, rule~\labelcref{it:rule} with $(u,a,a')=(x,x,h)$ puts it in $xH$. Otherwise $h+d=1-(2-x)-(-h)$ lies in $\Phi$, and rule~\labelcref{it:rule} with $(u,a,a')=(2-x,2-x,-h)$ puts it in $(2-x)H=xH$. In both cases $(h+d)/x\in H$, as $-1\in H$. \end{proof} So $\tau(h)=(h+d)/x$, an injective map, sends $H$ into $H$ off the set of $h$ with $n_i\mid h+d$ for some $i$. The rest is arithmetic in $\Z/n$ for a modulus $n$, and we state it in that generality, since at odd $N$ it is applied at $n=2N$ and at divisors of $N$. For $f\mid n$ we write $K_f$ for the group of units modulo $n$ that are $\equiv1\pmod f$, and $\operatorname{rad}(m)$ for the product of the primes of $m$. Let $H\ni-1$ be a subgroup of $(\Z/n)^\times$ and $d\in\Z/n$ with $1+d$ and $1-d$ units, $2d\not\equiv0$, and $\rho=(1-d)/(1+d)\in H$; put $x=1+d$ and $\tau(h)=(h+d)/x=1+(h-1)/x$. For a subset $E\subset H$ consider \begin{description} \item[(T)] for every $h\in H\setminus E$, the residue $h+d$ is a unit and $\tau(h)\in H$. \end{description} The map $\tau$ preserves each class $1+f\Z/n$, $f\mid n$, and sums of powers over subgroups do the counting. \begin{lemma}\label{lem:powersums} Let $s$ be an odd prime, $a\ge1$, and $\mu$ a subgroup of $(\Z/s^a)^\times$ of order $k$ prime to $s$. Then $\mu$ is cyclic, reduction modulo $s$ is injective on $\mu$, and $\sum_{z\in\mu}z^i\equiv0\pmod{s^a}$ for every integer $i$ with $k\nmid i$. \end{lemma} \begin{proof} $(\Z/s^a)^\times$ is cyclic of order $s^{a-1}(s-1)$, and the kernel of reduction modulo $s$ has order $s^{a-1}$, so $\mu$ is cyclic and meets the kernel trivially. If $\zeta$ generates $\mu$ and $k\nmid i$, then $\zeta^i-1$ is a unit, and $(\zeta^i-1)\sum_{j1$ of $m$, or $r=\infty$, and let \textup{(T)} hold for $E=\{h\in H:\ r\mid h+d\}$ \textup{(}empty if $r=\infty$\textup{)}. \begin{enumerate}[label=\textup{(\roman*)},leftmargin=*] \item\label{it:dich-i} If $E=\emptyset$, then $H+d=xH$, $\operatorname{rad}(m)\mid d$, and $H$ contains some $K_f\ne\{1\}$ with $2^{\min(\alpha,2)}\operatorname{rad}(m)\mid f\mid n$. \item\label{it:dich-ii} If $E\ne\emptyset$, then $r$ is a prime, $r\ge5$, $r\nmid d$, and $H$ maps onto $(\Z/r)^\times$. \end{enumerate} \end{lemma} \begin{proof} \labelcref{it:dich-i} By (T), the injective map $\tau$ sends $H$ into $H$, so $H+d=xH$. Reduce modulo a prime $s\mid m$ and sum over the image $\bar H$ of $H$: its elements cancel in pairs $\pm z$, so $\lvert \bar H\rvert d\equiv0\pmod s$ with $0<\lvert \bar H\rvert(r-1)/2$ elements, and $\lambda$ is trivial; but $\lambda(-1)=-1\ne1$. \emph{Step 4.} If some odd prime $q\ne r$ has $v_q(d)1$ be odd, $H$, $d$, $x$, $\tau$ as above with $n=N$, and $n_1,n_2,n_3>1$ divisors of $N$ with $\operatorname{lcm}(n_i,n_j)=N$ for $i\ne j$; put $e_i=N/n_i$, which are pairwise coprime, $E_i=\{h\in H:\ n_i\mid h+d\}$, $E=E_1\cup E_2\cup E_3$ and $B_m=H\cap K_m$, $B_i=B_{n_i}$. Then each $E_i$ is empty or a coset of $B_i$; $E_i\cap E_j\subset\{-d\}$ for $i\ne j$; $d$ is prime to $n_i$ if $E_i\ne\emptyset$; for each prime $s\mid N$ at most one $i$ has $s\nmid n_i$; and $-d\not\equiv\pm1$ modulo every prime of $N$, as $1\pm d$ are units. \begin{lemma}\label{lem:lift} Let $n>1$ be odd, $r>1$ a divisor of $n$, and let \textup{(T)} hold for $E=\{h\in H:\ r\mid h+d\}$. Then $H$ contains $K_f$ for a proper divisor $f$ of $n$, and if $E\ne\emptyset$, $r$ is a prime, $r\ge5$, $r\nmid d$, and $H$ maps onto $(\Z/r)^\times$. \end{lemma} \begin{proof} Reduction is an isomorphism $(\Z/2n)^\times\to(\Z/n)^\times$. Let $\tilde H$ be the preimage of $H$ and $\tilde d$ the even lift of $d$; then $1\pm\tilde d$ are units, $2\tilde d\not\equiv0\pmod{2n}$, $(1-\tilde d)/(1+\tilde d)\in\tilde H$, and (T) holds for $\tilde H$, $\tilde d$ and the set of $\tilde h\in\tilde H$ with $r\mid\tilde h+\tilde d$. \Cref{lem:dich,lem:caseii} at the modulus $2n$ give $\tilde K\subset\tilde H$, $\tilde K\ne\{1\}$, the units $\equiv1$ modulo some $f\mid2n$, which we may take odd as units modulo $2n$ are odd; it reduces to $K_f\subset H$, $K_f\ne\{1\}$, so $f$ is a proper divisor of $n$. The rest is \cref{lem:dich}\labelcref{it:dich-ii}. \end{proof} \needspace{4\baselineskip} \begin{lemma}\label{lem:fiber} Let $m\mid N$, $B=B_m$, and $a\in H$ with $aB\cap E=\emptyset$, and let \textup{(T)} hold for $E$. Then $B+(u-1)d/a=B$ for every $u\in B$, and $K_f\subset H$ with $f=\gcd\bigl(N,\{(u-1)d:\ u\in B\}\bigr)$. If $d$ is a unit and $B\ne\{1\}$, then $f$ is a proper divisor of $N$. \end{lemma} \begin{proof} By (T), $\tau$ maps $aB$ injectively into $H$, and its image is $\equiv(a+d)/x\pmod m$, so it is the coset $\tau(a)B$: $aB+d=x\tau(a)B$. Multiplying by $u\in B$ gives $aB+ud=aB+d$, so $B+(u-1)d/a=B$. As in Step~2 of \cref{lem:caseii}, $1+f\Z/N=K_f\subset B$. If $d$ is a unit and $u\ne1$, then $(u-1)d\not\equiv0$. \end{proof} \begin{lemma}\label{lem:moments} Let $s$ be a prime, $\mu\subset(\Z/s)^\times$ the subgroup of order $k\ge5$, $d,x\in(\Z/s)^\times$ with $-d\in\mu$, and suppose that $(\mu\setminus\{-d,\pi\})+d\subset x\mu$ for some $\pi\in\mu$, $\pi\ne-d$. Then $k=s-1$. \end{lemma} \begin{proof} Here $s\ge7$. Let $f_1,f_2$ be the two elements of $x\mu$ outside $(\mu\setminus\{-d,\pi\})+d$, and $c=\pi+d$. The power sums of degree $1\le j\le k-1$ over $\mu$ vanish, so \[ kd^j-c^j+f_1^j+f_2^j=0\quad\text{in }\Z/s,\qquad1\le j\le k-1 . \] For $R(T)=(1-dT)^k(1-f_1T)(1-f_2T)/(1-cT)$ in $(\Z/s)[[T]]$ this says $TR'/R\equiv0\pmod{T^k}$, and as $1,\dots,k-1$ are invertible modulo $s$, $R\equiv1\pmod{T^k}$, that is, $(1-dT)^k(1-\sigma_1T+\sigma_2T^2)\equiv1-cT\pmod{T^k}$ with $\sigma_1=f_1+f_2$, $\sigma_2=f_1f_2$. The coefficients of $T^2$, $T^3$, $T^4$ vanish, so $(1,\sigma_1/d,\sigma_2/d^2)$ lies in the kernel of the matrix with rows $\bigl(\binom kj,\binom k{j-1},\binom k{j-2}\bigr)$, $j=2,3,4$, modulo $s$, whose determinant is $k^2(k+1)^2(k-1)(k+2)/144$. As $s\ge7$ and $k\le s-1$, $s$ divides $k+1$ or $k+2$; and $s=k+2$ would give $k\mid k+1$. So $s=k+1$. \end{proof} \begin{proposition}\label{prop:three} If \textup{(T)} holds for $E=E_1\cup E_2\cup E_3$, then $H$ contains $K_f$ for a proper divisor $f$ of $N$. \end{proposition} \begin{proof} Suppose not; at odd $N$, $K_f\ne\{1\}$ for every proper divisor $f$, so $H$ contains no $K_f\ne\{1\}$. \emph{If $d$ is not a unit,} at most one $E_i$ is non-empty, as $d$ is prime to $n_i$ when $E_i\ne\emptyset$ and $\operatorname{lcm}(n_i,n_j)=N$. If $E_i\ne\emptyset$, then $E=E_i$, and if all are empty, then $-d\notin H$ and $E=\{h\in H:\ N\mid h+d\}$; in both cases \cref{lem:lift} gives a contradiction. \emph{Let $d$ be a unit.} By \cref{lem:fiber}, for every $m\mid N$ with $B_m\ne\{1\}$, every coset of $B_m$ in $H$ meets $E$. For a prime $s\mid N$ let $A_s=B_s$ and $\bar H$ the image of $H$ in $(\Z/s)^\times$. If $A_s\ne\{1\}$, there is exactly one $i_0$ with $s\nmid n_{i_0}$, and $B_{i_0}$ maps onto $\bar H$. Indeed, $A_s$ meets some $E_i$, in an $h\equiv1\pmod s$; $s\mid n_i$ would give $x\equiv0\pmod s$, so $s\nmid n_i$, and $i_0=i$ is unique. For $\pi\in \bar H\setminus\{-d\}$ the coset of $A_s$ above $\pi$ meets $E$, not in the $E_j$ with $s\mid n_j$, which lie above $-d$; so it meets $E_{i_0}$. So a coset of the image of $B_{i_0}$ contains $\bar H\setminus\{-d\}$, and as $1,-1,-d$ are distinct modulo $s$, it is all of $\bar H$. \emph{Case 1: $A_s\ne\{1\}$ for every prime $s$ of $N$.} Then $s^{v_s(N)}\mid e_{i_0(s)}$ for every $s$, so $N=e_1e_2e_3$. Take $i$ with $e_i>1$; then $B_i\ne\{1\}$, and the coset $B_i$ meets some $E_l$: an $h\equiv1\pmod{n_i}$ with $h\equiv-d\pmod{n_l}$, so $\gcd(n_i,n_l)$ divides the unit $x$. Hence $l\ne i$, and the third index $k$ has $e_k=\gcd(n_i,n_l)=1$: $N=e_ie_l$ with $n_i=e_l>1$ and $n_l=e_i$. In $G=(\Z/e_i)^\times\times(\Z/e_l)^\times$, $B_i=H\cap((\Z/e_i)^\times\times1)$, $E_i$ is the set of elements of $H$ with second coordinate $-d$, $E_l$ those with first coordinate $-d$, and $E_k\subset\{(-d,-d)\}$. A prime of $e_l$ gives $B_l\ne\{1\}$, and the cosets of $B_l$ are the fibers of the first projection; each fiber over $a\ne-d$ meets $E$, hence $E_i$, so $(a,-d)\in H$ for every $a\ne-d$ in the first projection $H_i$ of $H$. As in the previous paragraph, $H_i\times1\subset H$, so $H=H_i\times H_l$ and $-d\in H_l$. For $b\in H_l$ with $b\not\equiv-d$, $(1,b)\notin E$, so $b+d$ is a unit modulo $e_l$ and $(b+d)/x\in H_l$; \cref{lem:lift} at the modulus $e_l$ with $r=e_l$ makes $e_l$ a prime and $H_l=(\Z/e_l)^\times$. Then $K_{e_i}=1\times(\Z/e_l)^\times\subset H$, a contradiction. \emph{Case 2: $A_{s_0}=\{1\}$ for some prime $s_0$.} Then $H$ embeds in $(\Z/s_0)^\times$ and is cyclic, and for the at least two $i$ with $s_0\mid n_i$, $B_i=\{1\}$ and $\lvert E_i\rvert\le1$. Suppose first $B_i\ne\{1\}$ for some $i$. Every coset of $B_i$ meets $E$, and $H/B_i$, the image of $H$ modulo $n_i$, contains $-1\ne1$. If $E_i\ne\emptyset$, the image contains the distinct elements $1,-1,-d$, so there are at least three cosets, each met by the coset $E_i$ or by one of the at most two points of $E_j\cup E_k$; so the image has order $3$, which is odd, although it contains $-1\ne1$. So $E_i=\emptyset$, $[H:B_i]=2$, and the two other $E_j=\{h_j\}$, $E_k=\{h_k\}$ lie in different cosets; but $h_j\equiv-d\equiv h_k\pmod{s_0}$, so $h_j=h_k$. Suppose now every $B_i=\{1\}$. If $-d\in H$, or $-d\notin H$ and at most one $E_i$ is non-empty, $E$ is $\{h\in H:\ r\mid h+d\}$ for $r=N$ or $r=n_i$, and \cref{lem:lift} gives a contradiction. Otherwise $E_i=\{h_i\}$ and $E_j=\{h_j\}$ with $i\ne j$ and $h_i\ne h_j$. Then $A_s=\{1\}$ for every prime $s$ of $N$, by the first paragraph of the case $d$ a unit, so $H$ embeds modulo every prime of $N$, and no prime divides both $n_i$ and $n_j$; so $N=e_ie_j$, $n_i=e_j$ and $n_j=e_i$ are coprime and greater than $1$, $n_k=N$ and $E_k=\emptyset$. For a prime $s\mid e_j$, modulo $s$ the group $H$ is the subgroup $\mu$ of order $\lvert H\rvert$, $h_i\equiv-d$, and $(\mu\setminus\{-d,h_j\})+d\subset x\mu$ by (T). Here $\lvert H\rvert\ge4$ is even, as $\rho\notin\{\pm1\}$. If $\lvert H\rvert\ge6$, \cref{lem:moments} gives $s=\lvert H\rvert+1$, and the same holds for the primes of $e_i$; so $N$ is a power of one prime, against $N=e_ie_j$. If $\lvert H\rvert=4$, then $\rho^2=-1$, so $d^2=-1$ and $\rho=(1-d)^2/(1-d^2)=-d$, and $-d\in H$, which is excluded. \end{proof} \begin{proof}[End of the proof of \cref{thm:witness}] Recall that $H$ is closed, of conductor $N'$, and that $d=x-1$. Here $1+d=x$ and $1-d=2-x$ are units, $2d\not\equiv0$ and $\rho\in H$ (\cref{lem:link}). Let $N$ be even, $p_e$ the even numerator, and $r=n_e$ if $n_e$ is odd and $r=\infty$ otherwise; as $h+d$ is odd for $h\in H$ and $n_i$ is even for the odd numerators, $n_i\mid h+d$ for some $i$ only if $r\mid h+d$. By \cref{lem:link}, (T) holds for $E=\{h\in H:\ r\mid h+d\}$, and \cref{lem:dich,lem:caseii} give some $K_f\ne\{1\}$ in $H$. Let $N$ be odd. The $n_i$ are greater than $1$ and $\operatorname{lcm}(n_i,n_j)=N/\gcd(g_i,g_j)=N$; by \cref{lem:link}, (T) holds for $E=E_1\cup E_2\cup E_3$, and \cref{prop:three} gives some $K_f\ne\{1\}$ in $H$. In both cases this contradicts $c=N'$. \end{proof} \section{Triangles without a witness}\label{sec:witness-free} This section lists the triangles without a witness for $N>58$ and proves condition (12). For even $N$ we write $\nu=N/2$. The families are \begin{gather*} \mathcal A_d=\tri1{(N-d)/2-1}{(N+d)/2}N\quad(d\mid N,\ N/d\ge3\text{ odd}),\\ \Lambda=\tri1{(\nu-1)/2}{(3\nu-1)/2}N\quad(\nu\text{ odd}),\\ \Gamma_1=\tri1{\nu-2}{\nu+1}N,\quad \Theta_0=\tri2{\nu-3}{\nu+1}N\quad(4\mid N),\\ \Gamma_2=\tri2{N/4-1}{3N/4-1}N\quad(8\mid N),\\ \Theta_1=\tri14{N-5}N,\quad \Theta_2=\tri4{\nu-5}{\nu+1}N\quad(N\equiv4\ (\mathrm{mod}\ 8)),\\ \Theta_3=\tri4{\nu-3}{\nu-1}N,\quad \Gamma_4=\tri4{N/4-2}{3N/4-2}N\quad(N\equiv4\ (\mathrm{mod}\ 8)), \end{gather*} and the family $\mathcal B$ of the triangles \[ \mathcal B_{k,d}=\tri k{\nu-\nu/d-k}{\nu+\nu/d}N, \] where $N$ is even, $d\ge5$ is an odd divisor of $N$ with $d\mid2k-1$, $k$ is an odd prime not dividing $N$, $k\le N/(2d)$, and every prime $\ell<2k$ with $\ell\ne k$ and $\ell\not\equiv1\pmod d$ divides $N$. We write $\mathcal B_k=\mathcal B_{k,2k-1}$. The member $\mathcal A_{N/3}$ of $\mathcal A$ has the numerator $2N/3$; $\mathcal A_d$ with $d=2$ is $\Gamma_1$ in form, but $N/2$ is odd there and even on $\Gamma_1$. \begin{proposition}\label{prop:nowitness} Let $N>58$ and let $\Delta$ be scalene and not in \eqref{eq:list}. If $\Delta$ has no witness, then it has a numerator $2N/3$, or it is $\mathcal A_d$ with $N/d\ge5$, or it lies in one of the other nine families above. \end{proposition} \begin{table}[ht] \centering\small \renewcommand{\arraystretch}{1.15} \setlength{\tabcolsep}{4pt} \begin{tabular}{@{}>{\raggedright\arraybackslash}p{2.8cm}>{\raggedright\arraybackslash}p{4.2cm}>{\raggedright\arraybackslash}p{5.3cm}@{}} \toprule family & source & treated by\\\midrule $\mathcal A_d$, $N/d\ge5$ & \cite[Theorem~4.1(a)]{P21} & \cref{thm:A1-dense} ($d=1$), \cref{thm:Ad-dense} ($d\ge3$), \cref{thm:doubling} ($d=2$)\\ $\mathcal B_{k,d}$ & \cite[Theorem~4.1(a), (b)]{P21} & \cref{thm:B-family}, \cref{prop:sixteen}\\ $\Gamma_1$, $\Theta_0$, $\Theta_2$ & \cite[Theorem~4.1(a)]{P21} & \cref{thm:Gamma1}; \cref{thm:s12}, \cref{thm:theta}\ref{it:th-0}; \cref{thm:theta}\ref{it:th-12}\\ $\Theta_3$ & \cite[Theorem~1.7]{P23} & \cref{thm:theta}\ref{it:th-3}\\ $\Theta_1$, $\Lambda$, $\Gamma_2$, $\Gamma_4$ & \cite[Theorem~4.1]{LNZ} & \cref{thm:theta}\ref{it:th-12}; \cref{thm:B-shape}; \cref{thm:Gamma2}; \cref{thm:Gamma4}\\ numerator $2N/3$ & & \cref{thm:twothirds}\\\bottomrule \end{tabular} \caption{The triangles without a witness for $N>58$, off \eqref{eq:list}, where each family is found, and the statements that treat it. The denominators $2^j$, $2P$ and $3P$ are treated in \cref{sec:conductors}, and $N\le400$ in \cref{sec:small}.}\label{tab:nowitness} \end{table} \begin{proof} We sort by the largest numerator $p_3$. If $\Delta$ is acute, Part~I lists the triangles without a witness \cite[Theorem~1.7]{P23}; the scalene ones with $N>42$ are the $\Theta_3$ with $N\equiv4\pmod8$. If $\Delta$ is right, then after renumbering $\Delta=\tri a{\nu-a}\nu N$ with $a$ odd and prime to $N$, and by Proposition~10.1 of Part~I, whose proof is Apisa's argument for his Lemma~7.4 \cite{Apisa}, $\Delta$ has a witness unless $a\in\{1,\nu-1,\nu-2\}$; these are $\tri1k{k+1}{(2k+2)}$ and $\tri2{2k+1}{2k+3}{(4k+6)}$, which are in \eqref{eq:list} \cite[Proposition~10.1]{P23}. If $N/21$, then $k=3$ and $N=3s$, so $d=3$; if $\gcd(k,N)=1$, then $k$ is prime, $d\mid2k-1$, and every prime $\ell<2k$ with $\ell\ne k$ and $\ell\not\equiv1\pmod d$ divides $N$. The members of $\mathcal A$ with $N/d=3$ and those of $\mathcal B$ with $d=3$ have $p_3=2N/3$. Let $d\ge5$. Then $\gcd(k,N)=1$; $\ell=2$ is a prime $<2k$, $\not\equiv1\pmod d$, and $\ne k$ unless $k=2$, which would give $d\mid3$; so $N$ is even, $k\ge3$ is odd, $k\le s/2=N/(2d)$, and $\Delta=\mathcal B_{k,d}$. If $p_3>2N/3$, then by \cite[Theorem~4.1]{LNZ} the triangles without a witness are $\tri11{N-2}N$, $\tri12{N-3}N$ at even $N$, which is in \eqref{eq:list}, $\Theta_1$ at $N\equiv4\pmod8$, $\Lambda$, $\Gamma_2$ at $8\mid N$, $\Gamma_4$ at $N\equiv4\pmod8$, and seven triangles with $N\le42$. On obtuse triangles the witness of \cite{P21} and \cite{LNZ}, a unit $a$ with $2a\not\equiv2$ such that $[ap_i]<[2p_i]$ for two indices $i$, is ours \cite[Lemma~2.7]{P23}. As $N>58$, the single triangles do not occur. \end{proof} \subsection{Condition (12)}\label{ssec:twelve} \begin{proposition}\label{prop:twelve} Let $12\mid N$, $N>58$, and let $\Delta$ be scalene with no numerator $N/3$ or $2N/3$. Then every closed $S\ni1$ with $S\cap G\supset H_{12}$ is $F$. So $\Delta$ satisfies \textup{(12)}. \end{proposition} Throughout this subsection $12\mid N$, $N_3=N/3$, $v=v_3(N)$, and $\Delta$ is scalene with no numerator $N/3$ or $2N/3$. The subgroups of $G$ containing $H_{12}$ correspond to the subgroups of $(\Z/12)^\times/\{\pm1\}$, a group of order $2$, so they are $H_{12}$ and $G$. By \cref{thm:units}, a closed $S$ with $S\cap G=G$ is $F$, as $N>30$. So \cref{prop:twelve} says that no closed $S\ni1$ has $S\cap G=H_{12}$. For a unit $\beta$ modulo $N_3$ the character $3\beta$ is well defined modulo $N$, $\gcd(3\beta,N)=3$, and every element of $O_3$ has this form. It lies in $\Phi\cup-\Phi$, since $3\beta p_i\equiv0\pmod N$ would mean $N_3\mid p_i$, and it is odd, since $\beta$ is odd ($4\mid N_3$). So $O_3\subset F$. An \emph{instance} is a pair $(x,\beta)$ of a holomorphic unit $x\equiv2\pmod3$ and a unit $\beta$ modulo $N_3$ such that $3\beta$ is holomorphic, $\beta\equiv-x\pmod4$, and $1-x-3\beta$ is a unit. \begin{lemma}\label{lem:tw-inst} Let $S\ni1$ be closed with $S\cap G\supset H_{12}$. If $v=1$ and an instance exists, or if $v\ge2$ and there are instances $(x,\beta)$ and $(x_2,\beta_2)$ with $\beta\not\equiv\beta_2\pmod3$, then $S\cap G=G$. \end{lemma} \begin{proof} Suppose $H=S\cap G=H_{12}$. For an instance $(x,\beta)$ let $b=3\beta$ and $a'=1-x-b$, a unit. Modulo $3$, $a'\equiv1-2-0=-1$. Modulo $4$, $b\equiv-\beta\equiv x$, so $a'\equiv1-2x\equiv-1$, as $x$ is odd. So $a'\equiv-1\pmod{12}$ and $a'\in H_{12}\subset S$. Rule \labelcref{it:rule} with $u=x$, the holomorphic $x\in xS$, $a'$ and the holomorphic $b=1-x-a'$ gives $b\in xS$, that is $x^{-1}b\in S\cap O_3$. Let $v=1$. By \cref{lem:structure}, $K_{N_3}\subset H$. As $3\nmid N_3$ and $4\mid N_3$, the Chinese remainder theorem gives a unit $u\equiv1\pmod{N_3}$ with $u\equiv2\pmod3$; then $u\equiv5\pmod{12}$, so $u\notin H_{12}$, a contradiction. Let $v\ge2$, so $12\mid N_3$. By \cref{lem:structure}, $S\cap O_3$ is one $H$-orbit, so $x_2^{-1}\cdot3\beta_2\equiv h\,x^{-1}\cdot3\beta\pmod N$ for some $h\in H_{12}$, that is $\beta_2\equiv hx_2x^{-1}\beta\pmod{N_3}$. Modulo $4$, $\beta\equiv-x$ and $\beta_2\equiv-x_2$ give $h\equiv1\pmod4$, so $h\equiv1\pmod{12}$. Modulo $3$, $x\equiv x_2\equiv2$ then gives $\beta_2\equiv\beta$, a contradiction. So $H\ne H_{12}$, and $H=G$ as $H\supset H_{12}$. \end{proof} To produce instances we count holomorphic units in congruence classes modulo $4$, $3$ and $12$, at the level $N$ and at the level $N_3$. For $n\ge2$, a \emph{triple modulo $n$} is $(p_1,p_2,p_3)\in\Z^3$ with $p_1+p_2+p_3\equiv0\pmod n$, $n\nmid p_j$ for each $j$, and $\gcd(p_1,p_2,p_3,n)=1$. Put $g_j=\gcd(p_j,n)$, $n_j=n/g_j\ge2$ and $q_j=p_j/g_j$, a unit modulo $n_j$. For a unit $\beta$ modulo $n$ put $s(\beta)=3-2\sum_j\{\beta p_j/n\}$, and call $\beta$ \emph{holomorphic for the triple} if $s(\beta)=1$. \begin{lemma}\label{lem:tw-triple} \begin{enumerate}[label=\textup{(\alph*)},leftmargin=*] \item\label{it:tt-s} For a triple modulo $n$ and a unit $\beta$, $s(\beta)\in\{1,-1\}$, $s(-\beta)=-s(\beta)$, and $s(\beta)=\sum_js_j(\beta)$ with $s_j(\beta)=1-2\{\beta q_j/n_j\}$. \item\label{it:tt-lcm} $\operatorname{lcm}(n_i,n_j)=n$ for $i\ne j$. \item\label{it:tt-N} The numerators of $\Delta$ form a triple modulo $N$, and a unit is holomorphic for it if and only if it is a holomorphic character. They also form a triple modulo $N_3$, and a unit $\beta$ modulo $N_3$ is holomorphic for it if and only if the character $3\beta$ is holomorphic. \end{enumerate} \end{lemma} \begin{proof} \ref{it:tt-s} Each $\{\beta p_j/n\}$ lies in $(0,1)$, as $\beta$ is a unit and $n\nmid p_j$, and their sum is an integer, as $\beta\sum_jp_j\equiv0$; so it is $1$ or $2$, and $s=\pm1$. Then $\{-t\}=1-\{t\}$ for $t\notin\Z$ gives $s(-\beta)=-s(\beta)$, and $\beta p_j/n=\beta q_j/n_j$. \ref{it:tt-lcm} A common divisor of $g_i$ and $g_j$ divides $p_i$, $p_j$ and $n$, hence $p_k\equiv-p_i-p_j\pmod n$, hence $\gcd(p_1,p_2,p_3,n)=1$. So $\gcd(g_i,g_j)=1$ and $\operatorname{lcm}(n/g_i,n/g_j)=n/\gcd(g_i,g_j)=n$. \ref{it:tt-N} At level $N$: $00$. For $n'\mid n$ with $n'\ge2$, the \emph{restriction} $\mathfrak t|n'$ keeps the factor $4$ of $m$ if $4\mid n'$, the factor $3$ of $m$ if $3\mid n'$, the primes of $E$ that divide $n'$, and the same classes; for a unit $q$ modulo $n'$, $q\mathfrak t|n'$ multiplies $c$ and every $e_\ell$ by $q$. Let $\alpha(n;\mathfrak t)$ be the average of $1-2y/n$ over $y\in C(n;\mathfrak t)$, $y$ read in $(0,n)$, and $A^\sharp(n)$ the maximum of $-\alpha(n;\mathfrak t)$ over all data on $n$. The map $y\mapsto n-y$ shows $\alpha(n;(1,1,\emptyset,\emptyset))=0$, so $A^\sharp(n)\ge0$. Let $\varpi$ be the multiplicative function of $n\ge2$ with $\varpi(2)=2$, $\varpi(2^k)=2^{2-k}$ for $k\ge2$, $\varpi(3^k)=3^{1-k}$ and $\varpi(\ell^k)=3/(\ell^{k-1}(\ell-2))$ for $\ell\ge5$. \begin{lemma}\label{lem:tw-count} For a triple modulo $n$ and a datum $\mathfrak t$ on $n$, with $C=C(n;\mathfrak t)$, the number of $\beta\in C$ holomorphic for the triple is \[ \tfrac12\lvert C\rvert\,(1+\alpha_1+\alpha_2+\alpha_3),\qquad \alpha_j=\alpha\bigl(n_j;\,q_j\mathfrak t|n_j\bigr). \] In particular, if no $\beta\in C$ is holomorphic for the triple, then $A^\sharp(n_1)+A^\sharp(n_2)+A^\sharp(n_3)\ge1$. \end{lemma} \begin{proof} By \cref{lem:tw-triple}\ref{it:tt-s} the number is $\sum_{\beta\in C}(1+s(\beta))/2=\lvert C\rvert/2+\frac12\sum_j\sum_{\beta\in C}s_j(\beta)$, and $s_j(\beta)$ depends only on $\beta$ modulo $n_j$. Reduction modulo $n_j$ carries the uniform measure on $C$ to the uniform measure on $C_j=C(n_j;\mathfrak t|n_j)$. Indeed, by the Chinese remainder theorem $(\Z/n)^\times=\prod_\ell(\Z/\ell^{k_\ell})^\times$ and $C=\prod_\ell C^{(\ell)}$, where $C^{(2)}$ is given by $y\equiv c\pmod4$ if $4\mid m$, $C^{(3)}$ by $y\equiv c\pmod3$ if $3\mid m$, $C^{(\ell)}$ by $y\not\equiv e_\ell\pmod\ell$ for $\ell\in E$, and $C^{(\ell)}$ is the whole factor otherwise; reduction is the product of the surjections $(\Z/\ell^{k_\ell})^\times\to(\Z/\ell^{j_\ell})^\times$ with $j_\ell=v_\ell(n_j)$. If $C^{(\ell)}$ is the whole factor, or its condition is a condition modulo $\ell^{j_\ell}$ (that is, $j_\ell\ge2$ for $\ell=2$ and $j_\ell\ge1$ for odd $\ell$), then $C^{(\ell)}$ is the full preimage of the set given by the same condition, and the uniform measure goes to the uniform measure; otherwise the target factor is trivial ($j_\ell=0$, or $\ell=2$ and $j_2=1$), and $\mathfrak t|n_j$ has no condition at $\ell$. Hence $\sum_{\beta\in C}s_j(\beta)$ is $\lvert C\rvert$ times the average of $1-2\{wq_j/n_j\}$ over $w\in C_j$, and $y=wq_j$ runs over $C(n_j;q_j\mathfrak t|n_j)$, with $\{wq_j/n_j\}=y/n_j$ for $y$ read in $(0,n_j)$. This is the formula. If the number is $0$, then $\alpha_1+\alpha_2+\alpha_3=-1$, and $-\alpha_j\le A^\sharp(n_j)$. \end{proof} \begin{lemma}\label{lem:tw-radical} Let $\mathfrak t=(m,c,E,e)$ be a datum on $n$ and $\hat n=\operatorname{lcm}(m,\operatorname{rad}n)$. Then $\alpha(n;\mathfrak t)=(\hat n/n)\,\alpha(\hat n;\mathfrak t)$ and $\lvert\alpha(n;\mathfrak t)\rvert\le\varpi(n)$. Hence $A^\sharp(n)\le\varpi(n)$, and $A^\sharp(n)$ is the maximum over $m\in\{1,3,4,12\}$ with $m\mid n$ of $(\hat n_m/n)A^\sharp_m(\hat n_m)$, where $\hat n_m=\operatorname{lcm}(m,\operatorname{rad}n)$ and $A^\sharp_m$ is the maximum of $-\alpha$ over the data with that $m$. \end{lemma} \begin{proof} With $((t))$ as in \cref{lem:hermite}, $1-2y/n=-2((y/n))$ for $058$, with $N$ or $N/3$ in $\mathcal N_0$, other than $60$, $72$, $108$ and $180$, and $\Delta$ a scalene triangle at $N$ with $\gcd(p_1,p_2,p_3)=1$ and no numerator $N/3$ or $2N/3$. If $9\nmid N$, an instance exists; if $9\mid N$, there are instances $(x,\beta)$ and $(x_2,\beta_2)$ with $\beta\not\equiv\beta_2\pmod3$. \item\label{it:c12-closure} At $N=60$, $72$, $108$ and $180$, for every such triangle, the smallest closed set containing $H_{12}$ is $F$. \end{enumerate} \end{proposition} We find these facts as follows. By \cref{lem:tw-radical}, $A^\sharp(n)\le\varpi(n)$; every prime power factor of $\varpi$ other than $\varpi(2)=2$ is at most $1$ and tends to $0$ with the prime power, so the $n$ with $\varpi(n)\ge1/12$ are finitely many: $394$ of them, the largest $30{,}030$. For each of them $A^\sharp(n)$ is computed exactly from the formula in the proof of \cref{lem:tw-radical}, at the levels $\hat n_m$, over all data; every other $n$ has $A^\sharp(n)<1/12$. This gives \ref{it:c12-values}, and \ref{it:c12-levels} is a finite search. For \ref{it:c12-inst} the instances are listed by enumeration, and for \ref{it:c12-closure} the closure of $H_{12}$ is computed by iterating the rules until nothing is added \cite{Record}. \begin{lemma}\label{lem:tw-nonempty} If $n\notin\mathcal N_0$, then for every triple modulo $n$ and every datum $\mathfrak t$ on $n$, the set $C(n;\mathfrak t)$ contains a unit holomorphic for the triple. \end{lemma} \begin{proof} If not, \cref{lem:tw-count} gives $A^\sharp(n_1)+A^\sharp(n_2)+A^\sharp(n_3)\ge1$. Number the $n_j$ so that $A_1\ge A_2\ge A_3$, with $A_j=A^\sharp(n_j)$. As $A_1\le5/6$, $A_2+A_3\ge1/6$, so $A_2\ge1/12$ and $n_1,n_2\in B^\sharp$. Moreover $\operatorname{lcm}(n_1,n_2)=n$ by \cref{lem:tw-triple}\ref{it:tt-lcm}, $A_1+2A_2\ge1$, and $n_3\ge2$ divides $n$, has $\operatorname{lcm}(n_3,n_1)=\operatorname{lcm}(n_3,n_2)=n$, and has $A^\sharp(n_3)\ge1-A_1-A_2$. By \cref{prop:comp-twelve}\ref{it:c12-levels}, $n\in\mathcal N_0$. \end{proof} \begin{proof}[Proof of \cref{prop:twelve}] Let $S\ni1$ be closed with $S\cap G\supset H_{12}$. By the first paragraph of this subsection it suffices to show $S\cap G=G$, and by \cref{lem:tw-inst} it suffices to find one instance if $v=1$ and two instances $(x,\beta_+)$, $(x_2,\beta_-)$ with $\beta_+\equiv1$ and $\beta_-\equiv2\pmod3$ if $v\ge2$. Suppose first that $N\notin\mathcal N_0$ and $N_3\notin\mathcal N_0$. By \cref{lem:tw-triple}\ref{it:tt-N} and \cref{lem:tw-nonempty} at the level $N$ with the datum $(3,2,\emptyset,\emptyset)$, there is a holomorphic unit $x\equiv2\pmod3$. Let $E$ be the set of primes $\ell\ge5$ dividing $N$ with $x\not\equiv1\pmod\ell$; they divide $N_3$. For $\ell\in E$ let $e_\ell\equiv(1-x)/3\pmod\ell$, which is not $0$. If $v=1$, then $4\mid N_3$ and $3\nmid N_3$, and \cref{lem:tw-nonempty} at the level $N_3$ with the datum $(4,-x,E,e)$ gives a unit $\beta$ modulo $N_3$ with $3\beta$ holomorphic, $\beta\equiv-x\pmod4$ and $3\beta\not\equiv1-x\pmod\ell$ for $\ell\in E$. If $v\ge2$, then $12\mid N_3$, and the data $(12,c_\pm,E,e)$ with $c_\pm\equiv-x\pmod4$ and $c_\pm\equiv\pm1\pmod3$ give two such units $\beta_\pm$, with $\beta_\pm\equiv\pm1\pmod3$. In each case $1-x-3\beta$ is a unit modulo $N$: it is odd, as $x$ and $\beta$ are odd; it is $\equiv1-2-0\pmod3$; at a prime $\ell\ge5$ of $N$ with $x\equiv1\pmod\ell$ it is $\equiv-3\beta\not\equiv0$, as $\ell\mid N_3$ and $\beta$ is a unit modulo $N_3$; and at $\ell\in E$ it is $\not\equiv0$ by the choice of $\beta$. So these pairs are instances. Otherwise $N$ or $N_3$ lies in $\mathcal N_0$. With $12\mid N$ and $N>58$ these are the $44$ values $60$, $72$, $84$, $96$, $108$, $120$, $132$, $144$, $156$, $168$, $180$, $204$, $216$, $228$, $240$, $252$, $264$, $276$, $288$, $300$, $324$, $336$, $360$, $396$, $420$, $468$, $504$, $540$, $612$, $660$, $684$, $720$, $756$, $792$, $828$, $900$, $924$, $1{,}008$, $1{,}020$, $1{,}188$, $1{,}260$, $1{,}980$, $2{,}772$ and $3{,}060$. At each of them other than $60$, $72$, $108$ and $180$, the instances required above exist on every scalene triangle with $\gcd(p_1,p_2,p_3)=1$ and no numerator $N/3$ or $2N/3$ (\cref{prop:comp-twelve}\ref{it:c12-inst}). At $N=60$, $72$, $108$ and $180$ the smallest closed set containing $H_{12}$ is $F$ on every such triangle (\cref{prop:comp-twelve}\ref{it:c12-closure}), so $S=F$. \end{proof} \section{Smaller conductors}\label{sec:conductors} This section states the results that give condition (D) for $N>400$ (\cref{thm:D2,thm:D3}) and those for the denominators $2^j$, $2P$ and $3P$, explains the method, and proves \cref{thm:DU} and one case in full: the steps at which a count of the units of $\Phi$ in the classes modulo the step gives a witness modulo the conductor (\cref{prop:W-rich}). The other cases are proved in the supplement (\S\S S1 and~S7). \subsection{Steps}\label{ssec:D-steps} \begin{lemma}\label{lem:steps} Let $C\ni1$ be closed, $H$ its unit part and $c$ its conductor, with $12$, and $c\not\equiv2\pmod4$ if $N$ is even. Let $f$, the step of $c$, be $c$ if $N$ is odd or $c$ is even, and $2c$ if $N$ is even and $c$ is odd. Then $H_f=H_c$, $e=N/f\ge2$, and $e=2$ only if $4\mid N$, with $c=N/2$ if $8\mid N$ and $c=N/4$ if $N\equiv4\pmod8$. \end{lemma} \begin{proof} As $K_c\subset H$ and $-1\in H$, $H\supset H_c$. The conductor of $H_c$ divides $c$, as $K_c\subset H_c$, and is divisible by $c$, as $H\supset H_c$. If $\varphi(c)\le2$, every unit is $\equiv\pm1\pmod c$, so $H_c=G=H$ and $c=1$. If $N$ is even and $c\equiv2\pmod4$, a unit $\equiv1\pmod{c/2}$ is odd, hence $\equiv1\pmod c$, so $K_{c/2}=K_c\subset H$, against the choice of $c$. If $f=2c$, a unit $\equiv\pm1\pmod c$ is odd, hence $\equiv\pm1\pmod{2c}$, so $H_f=H_c$. In both cases $f\mid N$ and $f400$, $N$ not a power of $2$, and let $\Delta$ be scalene and not in \eqref{eq:list}, other than $\Gamma_1$, $\Gamma_2$ with $8\mid N$ and $\Gamma_4$ with $N\equiv4\pmod8$, with no numerator $2N/3$ and no numerator $N/3$. Then no closed set containing $1$ has a unit part of conductor $N/2$ if $8\mid N$, or $N/4$ if $N\equiv4\pmod8$. So $\Delta$ satisfies \textup{(D)} at this conductor. \end{theorem} \begin{lemma}\label{lem:E} If $e\ge3$ divides $N$ and divides no numerator of $\Delta$, then $D_e\le e$. \end{lemma} \begin{proof} The numbers $m_j=\gcd(p_j,e)$ are proper divisors of $e$. A common divisor of $m_i$ and $m_j$ divides $p_i$, $p_j$ and $N$, hence the third numerator, so it is $1$: the $m_j$ are pairwise coprime and their product divides $e$. If all $m_j$ are $1$, the sum is $3\le e$. If exactly one exceeds $1$, then $e\ge4$, as $3$ has no proper divisor above $1$, and the sum is at most $e/2+2\le e$. If two or three exceed $1$, the sum is at most $\prod_jm_j\le e$, since $x+y\le xy-1$ for coprime $x,y\ge2$ and $x+y+z\le xyz$ for $x,y,z\ge2$. \end{proof} \begin{proposition}\label{prop:W-rich} Let $c\ne12$ divide $N$, with $14{,}200$, and let $\Delta$ have $\gcd(p_1,p_2,p_3)=1$, no numerator $2N/3$, and no numerator $N/3$ if $12\mid N$. Then no closed set containing $1$ has a unit part whose conductor $c$ satisfies $c\ne12$ and $12$ and $c\not\equiv2\pmod4$, the conductor $12$ and the conductors whose step has $e=2$ included. \begin{theorem}\label{thm:D3} Let $N>60$ be composite, and let $\Delta$ be scalene and not in \eqref{eq:list}, other than $\Gamma_1$, $\Gamma_2$ and $\Gamma_4$, with no numerator $2N/3$, and with no numerator $N/3$ if $12\mid N$. Then $\Delta$ satisfies \textup{(D)} at every conductor $c$ with $12$, and $c\not\equiv2\pmod4$ if $N$ is even. If $c=12$, then $H\supset H_{12}$, which is the conclusion of (D). Let $c\ne12$. If every prime of $N$ divides $f$ and $e$ divides no numerator, \cref{prop:W-rich} gives a nontrivial witness modulo $c$; otherwise, if $N\le4{,}200$, the computation above gives one. In both cases \cref{thm:DU} shows that there is no such $C$. If $N>4{,}200$, \cref{thm:D3-large} shows it. \end{proof} \begin{proposition}\label{prop:pow2} Let $N=2^j\ge64$ and let $\Delta$ be scalene. If $\Delta$ has a witness, the closure of $\{1\}$ is $F$. If not, the closed sets containing $1$ other than $F$ are $\{\pm1\}$ and, exactly on $\Gamma_1$ and $\Gamma_2$, also $H_\nu=\{\pm1,\pm(1+\nu)\}$, $\nu=N/2$. In particular, if $\Delta$ is neither $\Gamma_1$ nor $\Gamma_2$, every closed $C\ni1$ with $\lvert C\rvert\ge4$ is $F$. \end{proposition} \begin{proposition}\label{prop:2P} Let $P\ne13$ be an odd prime and $N=2P$. For every scalene $\Delta$ and every subgroup $H\ni-1$ of $G$ with $4\le\lvert H\rvert4{,}200$ the other steps with $e\ge3$ (\cref{thm:D3-large}) are treated at the divisors $R$ of $N$ with $f\mid R$, by a nontrivial witness $(x,x'')$ modulo $c$ with $x+x''\equiv2\pmod R$. If $N/R$ divides no numerator, counts of the residues in a class modulo $R$ that lie in $\Phi$ or are not generic give one, under conditions on the primes of $N$ that do not divide $R$. If $N/R$ divides a numerator $p_j$, the fractional part of $xp_j/N$ depends only on the class of $x$ modulo $n_j=N/\gcd(p_j,N)$, and a unit class $x$ modulo $R$ with $2x\not\equiv2\pmod c$ for which it and that of $(2-x)p_j/N$ lie in a window $(0,\lambda)$ gives one; a class modulo $n_j$ with both below $3/5$ exists except in $66$ small cases, all with $n_j\le30$. A choice of $R$, by the primes of $N$ that do not divide $f$ and the numerators that $N/f$ divides, covers every step but one family, $e=3$ with $3\parallel N$ and $3$ dividing a numerator. There a numerator $N/3$, $N/6$ or $5N/6$ gives a nontrivial witness modulo $c$ directly; otherwise the closed set contains every residue whose greatest common divisor with $N$ is $3$ and whose class modulo $c$ lies in $\bar H$, and the translation is run with residues whose greatest common divisor with $N$ divides $3$. At $e=2$ the classes modulo $f=N/2$ have only two lifts. Write $\Delta=(o_1,o_2,q)/N$ with $o_1\max(\alpha-j,0)=v_\ell(b)$, as $j\ge1$, a contradiction. \end{proof} \begin{proposition}\label{prop:DU-datum} In \cref{lem:DU-transl} let $c1$ as $g_i\le p_i1$ of $m$. An even $r$ divides no $\bar h+\bar d$, which is odd, as $\bar h$ is a unit and $\bar d=\bar x-1$ is even. So \cref{prop:DU-datum}\ref{it:DUT-a} gives \textup{(T)} for $E=\{\bar h\in\bar H:\ r'\mid\bar h+\bar d\}$. By \cref{lem:dich}, and \cref{lem:caseii} if $E\ne\emptyset$, $\bar H$ contains some $K_f\ne\{1\}$ with $f\mid c$; so $f$ is a proper divisor of $c$. \emph{$c$ odd.} Let $r'=r$ if $r\ne\infty$, an odd divisor $r>1$ of $c$, and $r'=c$ if $r=\infty$. As $r'\nmid\bar h+\bar d$ implies $r\nmid\bar h+\bar d$, \cref{prop:DU-datum}\ref{it:DUT-a} gives \textup{(T)} for $E=\{\bar h\in\bar H:\ r'\mid\bar h+\bar d\}$. By \cref{lem:lift} at $n=c$, $\bar H$ contains $K_f$ for a proper divisor $f$ of $c$. In both cases the preimage of $K_f$ in $G$ is the group $K_f$ of units modulo $N$ that are $\equiv1\pmod f$, and it lies in $H$, the full preimage of $\bar H$ (\cref{lem:DU-gcd}). So the conductor $c$ of $H$ divides the proper divisor $f$ of $c$, a contradiction. Hence no closed set containing $1$ has a unit part of conductor $c$. If $\Delta$ is scalene and $1h_0(f)-B(f)\ge0$. Let $R$ be the set of $\ell\in Q_5$ with $x\not\equiv1\pmod\ell$ and $r=\prod_{\ell\in R}\ell$. By inclusion and exclusion over $\delta\mid r$, the number of units $y\equiv b\pmod f$ in $\Phi$ with $y\not\equiv1-x\pmod\ell$ for every $\ell\in R$ is $\sum_{\delta\mid r}\mu(\delta)h_{f\delta}(c_\delta)$, where $c_\delta$ is the class modulo $f\delta$ that is $\equiv b\pmod f$ and $\equiv1-x\pmod\ell$ for $\ell\mid\delta$; it is a unit class, as $1-x\not\equiv0\pmod\ell$ for $\ell\in R$. By \cref{cor:RC} this number exceeds \begin{multline*} h_0(f)\prod_{\ell\in R}\frac{\ell-2}{\ell-1}-\sum_{\delta\mid r}B(f\delta)\ \ge\ h_0(f)\prod_{\ell\in Q_5}\frac{\ell-2}{\ell-1}-\frac{2^wD_e}2\sum_{\delta\mid q_5}2^{-\omega(\delta)}\\ =\prod_{\ell\in Q_5}\frac{\ell-2}{\ell-1}\Bigl(h_0(f)-\kappa(Q)\frac{2^wD_e}2\Bigr)\ge0, \end{multline*} using $\sum_{\delta\mid q_5}2^{-\omega(\delta)}=(3/2)^{\lvert Q_5\rvert}$. Choose such a $y$. Then $x+y-1\equiv1\pmod f$ is prime to every prime of $f$. If $2\in Q$, $x$ and $y$ are odd and $x+y-1$ is odd; if $3\in Q$, $x+y-1\equiv y\not\equiv0\pmod3$; for $\ell\in Q_5$, $x+y-1\equiv y\not\equiv0$ if $x\equiv1\pmod\ell$, and $x+y-1\not\equiv0$ by the choice of $y$ if $\ell\in R$. So $x+y-1$ is a unit. \end{proof} \begin{proof}[Proof of \cref{prop:W-rich}] As $c$ is the conductor of $H_c$ and $c>1$, $H_c\ne G$, so some unit is $\not\equiv\pm1\pmod c$ and $\varphi(c)>2$; in particular $c\ge3$, and $f\ge3$ divides $N$. By \cref{lem:rich-pair}, for all units $a,b$ modulo $f$ with $a+b\equiv2\pmod f$ there are units $x\equiv a$ and $x''\equiv b\pmod f$ in $\Phi$ with $x+x''-1$ a unit. As $c\mid f$, $(x,x'')$ is a witness modulo $c$, nontrivial if $2a\not\equiv2\pmod c$. So it suffices to find a unit $a$ modulo $f$ with $2-a$ a unit and $2a\not\equiv2\pmod c$. We choose $a$ modulo each prime power $\ell^{v}\parallel f$; at $\ell=2$ every odd $a$ has $2-a$ odd. If a prime $\ell\ge5$ divides $c$, take $a\equiv3$ modulo its power in $f$ and $a\equiv1$ modulo the other prime powers of $f$: then $2-a\equiv-1$ or $1$, and $2a-2\equiv4\not\equiv0\pmod\ell$. Otherwise $c=2^i3^j$. If $9\mid c$, take $a\equiv4\pmod{3^j}$ and $a\equiv1$ modulo the power of $2$ in $f$: then $2-a\equiv-2\pmod{3^j}$, and $2a-2\equiv6\not\equiv0\pmod9$. If $8\mid c$, then $f=c$; take $a\equiv3\pmod{2^i}$ and $a\equiv1\pmod{3^j}$: then $2-a\equiv-1\pmod{2^i}$, and $2a-2\equiv4\not\equiv0\pmod8$. Otherwise $c\mid12$, and $\varphi(c)>2$ gives $c=12$, which is excluded. In the last case of the statement, $w=0$, $\kappa(Q)=1$ and $h_0(f)=e/2$, and $D_e\le e$ by \cref{lem:E}. \end{proof} \section{Families without a witness and an angle \texorpdfstring{$2\pi/3$}{2pi/3}}\label{sec:families} This section proves $S=F$ on the triangles with an angle $2\pi/3$, through relative periods, and on the three families $\Gamma_1$, $\Gamma_2$, $\Gamma_4$, through cylinders, and states for the other families of \cref{prop:nowitness} the results that give (N$'$) or $S=F$ on them. Five of these have short proofs, which we give; the others repeat methods shown here in full and are proved in the supplement (\S\S S2--S4). For even $N$ we write $\nu=N/2$, and for $4\mid N$ we put $u_\iota=1+\nu$. Then $u_\iota$ is a unit, $u_\iota^2\equiv1$, $u_\iota x\equiv x+\nu$ for odd $x$ and $u_\iota x\equiv x$ for even $x$, and $K_\nu=\{1,u_\iota\}$. \subsection{An angle \texorpdfstring{$2\pi/3$}{2pi/3}}\label{ssec:twothirds} Let $K>16$, $1\le p16$ and $\Delta=\tri p{K-p}{2K}{3K}$ with $\gcd(p,K)=1$. Let $C\ni1$ be closed with $C\ne\{\pm1\}$ and $\mathcal D$ a set of non-zero multiples of $3$ in $\Z/N$ such that \labelcref{it:relH3} and \labelcref{it:relL3} hold. Then $C=F$. \end{theorem} The proof is in the supplement (\S S2). It starts from the following elements of $\mathcal D$. \begin{lemma}\label{lem:start} In \cref{thm:growth}, $1-2x^{-1}\in\mathcal D$ for every unit $x\in\Phi$ with $x\equiv2\pmod3$ and $x\ne2$. \end{lemma} \begin{proof} By rule~\labelcref{it:neg}, $-1\in C$, and $x\in xC\cap\Phi$ as $1\in C$. So \labelcref{it:relH3} with $u=x$, $a=-1$ and $c=x-2$, a non-zero multiple of $3$, gives $x^{-1}(x-2)=1-2x^{-1}\in\mathcal D$. \end{proof} The rest of the proof runs as follows. Label the vertices so that $3\nmid p$ (if $3\mid p$, then $3\nmid K-p$). The holomorphic units $x\equiv2\pmod3$ are those with $[px]$ in one class modulo $3$, or modulo $6$ for even $N$, in the window $(0,2K)$, and on the diagonal $1-c=2x^{-1}$ of $c=1-2x^{-1}$ rule~\labelcref{it:relL3} pairs the elements of $C$ in this window with further characters. Let $j(n)$ be Jacobsthal's function, the least $j$ such that any $j$ consecutive integers contain one prime to $n$; then any $j(n)$ consecutive terms of a progression whose difference is prime to $n$ contain one prime to $n$. When a prime $\ell\ge5$ of $K$ satisfies $\lfloor\lceil(K-2)/2\rceil/(\delta\ell)\rfloor\ge j(N_\ell)$, where $\delta$ is $3$ for odd $N$ and $6$ for even $N$ and $N_\ell$ is the product of the primes $\ell'\ge5$ of $N$ other than $\ell$, this puts a non-unit $s$ with $\ell\mid\gcd(s,N)$ into $C$. We use Jacobsthal's function as Puchta \cite{Puchta} and Larsen, Norton and Zykoski \cite[Proposition~7.5]{LNZ} do. Then $K_{N/\ell^i}\subset H$ for some $i\ge1$, by \cref{lem:structure}; rules~\labelcref{it:relH3} and~\labelcref{it:relL3} then give $H=G$, in one more step when $8\mid N$; and $C=F$ by \cref{thm:units}. When no prime $\ell\ge5$ of $K$ satisfies the inequality, $K=2^\alpha3^\beta$, or $K=eP$ with $P\ge5$ prime and $e\in\{1,2,3,4,6,8,12\}$, or $K$ is one of $25$, $35$, $50$, $55$, $70$, $77$, $110$, $154$. In these cases counts of the holomorphic units of the window on one such diagonal give a non-unit in $C$ or more than two units in $H$, except for finitely many values of $K$; for these we find, for every subgroup $H_0\ni-1$ of $G$ with $H_0/\{\pm1\}$ of prime order, that the smallest pair $(C,\mathcal D)$ with $H_0\subset C$ satisfying the rules has $C=F$; as $C\ne\{\pm1\}$, the unit part of $C$ contains such a subgroup (\cref{lem:conductor}). \begin{theorem}\label{thm:twothirds} Let $N>48$ and let $\Delta$ be a scalene triangle with an angle $2\pi/3$. Then $S=F$ and $\mathcal M=\mathcal L$. \end{theorem} \begin{proof} Here $\Delta=\tri p{K-p}{2K}N$ with $K=N/3>16$, and a common divisor of $p$ and $K$ divides the three numerators, so $\gcd(p,K)=1$; and $\Delta\ne\tri123{6}$. Let $\mathcal D$ be the set of non-zero multiples of $3$ in $\mathcal C$. The set $S$ is closed and contains $1$ (\cref{ssec:notation}). If $u$ is a unit, $x\in uS\cap\Phi$, $a\in S$ and $c=a+x-1$ is a non-zero multiple of $3$, then $c\in R$, and rule~\labelcref{it:relH} puts $u^{-1}c$, a non-zero multiple of $3$, in $\mathcal C$, hence in $\mathcal D$. If $c\in\mathcal D$, its vertex is the one of numerator $2K$, and a character $x\equiv2\pmod3$ in $uS\cap\Phi$ has $[2Kx]=K<2K$; so rule~\labelcref{it:relL} gives \labelcref{it:relL3}. By \cite[Theorem~1.1]{P23}, a scalene triangle of rank one with $N>15$ is $\tri1k{k+1}{(2k+2)}$, $\tri2{2k+1}{2k+3}{(4k+6)}$ or $\tri12{2k-3}{2k}$, whose largest numerators are $N/2$, $N/2$ and $N-3$. A numerator $2N/3$ would be the largest, and none of these is $2N/3$, as $N\ne9$. So $\Delta$ has rank at least two, $\lvert S\rvert\ge4$ by \eqref{eq:S}, and $S\ne\{\pm1\}$. \Cref{thm:growth} gives $S=F$, and \cref{cor:ambient} gives $\mathcal M=\mathcal L$. \end{proof} \subsection{The three families \texorpdfstring{$\Gamma_1$, $\Gamma_2$, $\Gamma_4$}{Gamma1, Gamma2, Gamma4}}\label{ssec:three} In this subsection $4\mid N$. Let $\Gamma_1=\tri1{\nu-2}{\nu+1}N$, $\Gamma_2=\tri2{N/4-1}{3N/4-1}N$ with $8\mid N$, and $\Gamma_4=\tri4{N/4-2}{3N/4-2}N$ with $N\equiv4\pmod8$. We begin with the holomorphic characters, which are known exactly on these triangles and on the triangle $\tri12{N-3}N$ of \eqref{eq:list}, and with the reason why the rules do not suffice on them. \needspace{4\baselineskip} \begin{lemma}\label{lem:twin} Let $\Delta$ and $\Delta'$ be triangles with $p'_i\equiv u_\iota p_i\pmod N$ for $i=1,2,3$. Then $\Phi(\Delta')=u_\iota\Phi(\Delta)$, and a subgroup $H\ni-1$ of $G$ satisfies \textup{(P)} on $\Delta$ if and only if it satisfies \textup{(P)} on $\Delta'$. \end{lemma} \begin{proof} For every $x$, $xp'_i\equiv(u_\iota x)p_i$, so $x\in\Phi(\Delta')$ if and only if $u_\iota x\in\Phi(\Delta)$; and $u_\iota^{-1}=u_\iota$. The diagonals $1-a'$, $a'\in H$, are even, and $u_\iota c\equiv c$ for even $c$; so $(x,b)\mapsto(u_\iota x,u_\iota b)$ maps the pairs of $\Delta'$ on the diagonal $1-a'$ bijectively onto those of $\Delta$ on the same diagonal, and keeps units, non-units and the quotient $b/x$. \end{proof} So $\Theta_0=\tri2{\nu-3}{\nu+1}N$, whose numerators are $u_\iota$ times those of $\tri12{N-3}N$, and $\tri12{N-3}N$ have the same subgroups with (P). For an odd $x$ let $[x]$ be its residue in $[0,N)$. \begin{lemma}\label{lem:hol} Let $x$ be odd. \begin{enumerate}[label=\textup{(\alph*)},leftmargin=*] \item\label{it:hol-12} On $\Gamma_1$, and on $\Gamma_2$ when $8\mid N$, $x\in\Phi$ if and only if $[x]\in(0,N/4)\cup(\nu,3N/4)$. \item\label{it:hol-4} On $\Gamma_4$, when $N\equiv4\pmod8$, $x\in\Phi$ if and only if $0<[4x]<\nu$. \item\label{it:hol-s} On $\tri12{N-3}N$, when $3\nmid N$, $x\in\Phi$ if and only if $[x]\in(0,N/3)\cup(\nu,2N/3)$. \end{enumerate} In \labelcref{it:hol-12} and \labelcref{it:hol-4} the set of odd elements of $\Phi$ is stable under multiplication by $u_\iota$. \end{lemma} \begin{proof} We use \cref{lem:window}\labelcref{it:win-two} in the form: $x\in\Phi$ if and only if the residues of $xp_1,xp_2,xp_3$ are non-zero and add up to $N$; otherwise they add up to $2N$ or one of them is $0$. \labelcref{it:hol-12} As $x$ is odd, $x\nu\equiv\nu$. On $\Gamma_1$, for $[x]$ in $(0,N/4)$, $(N/4,\nu)$, $(\nu,3N/4)$, $(3N/4,N)$ the residues of $x$, $x(\nu-2)\equiv\nu-2x$ and $x(\nu+1)\equiv\nu+x$ are $(x,\nu-2x,\nu+x)$, $(x,3\nu-2x,\nu+x)$, $(x,3\nu-2x,x-\nu)$, $(x,5\nu-2x,x-\nu)$, with sums $N$, $2N$, $N$, $2N$. On $\Gamma_2$, $xN/4\equiv N/4$ or $3N/4$ as $x\equiv1$ or $3\pmod4$, so the residues of $x(N/4-1)$ and $x(3N/4-1)$ are, in some order, those of $N/4-x$ and $3N/4-x$; with $2x$, on the same four intervals they are $(2x,N/4-x,3N/4-x)$, $(2x,5N/4-x,3N/4-x)$, $(2x-N,5N/4-x,3N/4-x)$, $(2x-N,5N/4-x,7N/4-x)$, with sums $N$, $2N$, $N$, $2N$. The ends of the intervals are multiples of $N/4$, at which a residue vanishes when $x$ is odd. \labelcref{it:hol-4} Here $N/4$ is odd, and as in \labelcref{it:hol-12} the residues of $x(N/4-2)$ and $x(3N/4-2)$ are those of $N/4-2x$ and $3N/4-2x$. Let $y=[2x]$, which is even, so $y\ne N/4,3N/4$. For $y$ in $(0,N/4)$, $(N/4,\nu)$, $(\nu,3N/4)$, $(3N/4,N)$ the residues of $4x$, $N/4-y$ and $3N/4-y$ are $(2y,N/4-y,3N/4-y)$, $(2y,5N/4-y,3N/4-y)$, $(2y-N,5N/4-y,3N/4-y)$, $(2y-N,5N/4-y,7N/4-y)$, with sums $N$, $2N$, $N$, $2N$; and $[4x]=[2y]$ lies in $(0,\nu)$ exactly in the first and the third case. If $y\in\{0,\nu\}$, then $4x\equiv0$ and $[4x]=0$. \labelcref{it:hol-s} For $[x]$ in $(0,N/3)$, $(N/3,\nu)$, $(\nu,2N/3)$, $(2N/3,N)$ the residues of $x$, $2x$, $-3x$ are $(x,2x,N-3x)$, $(x,2x,2N-3x)$, $(x,2x-N,2N-3x)$, $(x,2x-N,3N-3x)$, with sums $N$, $2N$, $N$, $2N$; none is $0$, as $x$ is odd and $3\nmid N$. Finally $u_\iota x\equiv x+\nu$ preserves the conditions in \labelcref{it:hol-12} and \labelcref{it:hol-4}, as $[x]$ modulo $\nu$ and $[4x]$ do not change. \end{proof} \begin{proposition}\label{prop:closed-group} Let $\Delta$ be $\Gamma_1$ with $N\ge8$, $\Gamma_2$ with $8\mid N$, or $\Gamma_4$ with $N\equiv4\pmod8$ and $N\ge12$. Then $\Delta$ has no witness, and $C=\{\pm1,\pm u_\iota\}$ is closed. Its conductor divides $\nu$, and $C\ne F$ when $\varphi(N)>4$. \end{proposition} \begin{proof} \emph{No witness.} On $\Gamma_1$ and $\Gamma_2$ let $x\in\Phi$ be a unit with $x\notin\{1,u_\iota\}$, and $r$ its residue modulo $\nu$. By \cref{lem:hol}\labelcref{it:hol-12}, $r$ is odd with $3\le rN/4$, so $2-x\notin\Phi$. On $\Gamma_4$ let $x\in\Phi$ be a unit and $r=[4x]$, so $0\nu$, and $2-x\notin\Phi$. In each case $2x\equiv2$ or $2-x\notin\Phi$. \emph{$C$ is closed.} As $u_\iota\ne\pm1$, $C$ is a subgroup of $G$ of order $4$; by \cref{lem:P} we check (P) on the diagonals $1-a'$, $a'\in C$, and only pairs of odd characters need checking, since the diagonal is even and every unit is odd. The diagonal $0$ carries no pair, as at most one of $\pm x$ lies in $\Phi$. On the diagonal $1-u_\iota=-\nu$, a pair $(x,b)$ with a unit member, say $x$, has $b\equiv-x-\nu=-u_\iota x$, which is not in $\Phi$ by the stability in \cref{lem:hol}; so this diagonal carries no pair with a unit member. On the diagonal $1+u_\iota=2+\nu$, the pairs of odd characters are the $(x,u_\iota(2-x))$, as $2-x$ is odd; by the stability, they are the images of the pairs $(x,2-x)$ of the diagonal $2$, with the same units and with quotients multiplied by $u_\iota\in C$. On the diagonal $2$, a pair with a unit member $x$ has $2x\equiv2$, as there is no witness; so $x=2-x\in\{1,u_\iota\}$, and (P) holds. Finally $K_\nu=\{1,u_\iota\}\subset C$, so the conductor of $C$ divides $\nu$; and $G\subset F$ has $\varphi(N)$ elements. \end{proof} As $N'=N$ when $4\mid N$, the conductor of $C$ lies strictly between $1$ and $N'$ when $\varphi(N)>4$, and $C$ does not contain $H_{12}$ once $\varphi(N)>8$: on these triangles (D) fails. We use cylinders instead. \paragraph{Free sets of cylinders.} Let $\lambda\in\C^\times$ be such that $(X,\lambda\omega)$ is horizontally periodic, with maximal horizontal cylinders $C_1,\dots,C_r$ of heights $h_i$, circumferences $c_i$ and moduli $m_i=h_i/c_i$, and let $\Xi_i=I_{C_i}$ be Wright's class of $C_i$ (\cref{ssec:cylinders}). A non-empty set $\mathcal G$ of these cylinders is \emph{free} if the $\Q$-span of the moduli of the cylinders in $\mathcal G$ meets the $\Q$-span of the moduli of the other cylinders only in $0$. \begin{lemma}\label{lem:free-set} Let $\Delta$ be scalene, $\Delta\ne\tri123{6}$, let $\mathcal G$ be a free set of maximal horizontal cylinders of $(X,\lambda\omega)$, and $\xi=\sum_{C_i\in\mathcal G}h_i\Xi_i$. Then $(T^k)^*\xi\in V$ for every $k\in\Z/N$. If a segment $\sigma$ joining two points of $\Sigma$ meets $C_i$ in finitely many open segments, each joining the two boundary components of $C_i$, then $\Xi_i(\sigma)$ is the number of these segments that run from the bottom of $C_i$ to its top minus the number that run from its top to its bottom. \end{lemma} \begin{proof} Let $t_i=m_i$ for $C_i\in\mathcal G$ and $t_i=0$ otherwise. If $\sum_iq_im_i=0$ with $q_i\in\Q$, then $\sum_{C_i\in\mathcal G}q_im_i=-\sum_{C_i\notin\mathcal G}q_im_i$ lies in both $\Q$-spans, so it is $0$, and $\sum_iq_it_i=0$. So $t$ satisfies every rational linear relation among the moduli, and Wright's Lemma~3.1 with his Corollary~3.4 \cite{WrightCyl}, in the form \cite[Lemma~2.8]{P23} with $\Sigma'=\Sigma$, give $\sum_it_ic_i\Xi_i=\xi\in V$. As $T^*V=V$ \cite[Lemma~2.4]{P23}, $(T^k)^*\xi\in V$. For the second statement let $y\in(0,h_i)$ be the height in $C_i$ above its bottom, $\rho\colon(0,h_i)\to[0,1]$ smooth, $0$ near $0$ and $1$ near $h_i$, and $\beta$ the closed form $d(\rho\circ y)$ on $C_i$, extended by $0$. Its integral is $0$ on relative cycles disjoint from $C_i$ and on a core curve of $C_i$, and $1$ on a path in the closure of $C_i$ from a zero on its bottom to a zero on its top. Relative cycles of these kinds span $H_1(X,\Sigma;\Z)$ \cite[p.~420]{WrightCyl}, and $\Xi_i$ takes the same values on them; so $\beta$ represents $\Xi_i$. On each open segment of $\sigma\cap C_i$ the integral of $\beta$ is $1$ from the bottom to the top and $-1$ from the top to the bottom, and $\beta$ vanishes on the rest of $\sigma$. \end{proof} \paragraph{The star.} Let $\Delta=\tri1qrN$ be scalene with $r>N/2$, with vertices $A$, $B$, $C$ of angles $\theta$, $q\theta$, $r\theta$, $\theta=\pi/N$, scaled so that $\lvert BC\rvert=1$. For $j\in\Z/2N$ let \[ v_j=\rho_j\,(\sin j\theta,\cos j\theta),\qquad \rho_j=\lvert AC\rvert=\frac{\sin q\theta}{\sin\theta}\ (j\text{ even}),\qquad \rho_j=\lvert AB\rvert=\frac{\sin r\theta}{\sin\theta}\ (j\text{ odd}), \] and let $e_j$ be the side with ends $v_{j-1}$ and $v_j$. The polygon $\mathcal P$ with vertices $v_0,v_{-1},v_{-2},\dots$ in counterclockwise order is the star of \cite[\S5.3]{P21}, placed as in the proof of \cite[Theorem~5.15]{P21} (there $\phi=\pi/2-j_0\theta$, $B_k=v_{j_0-2k}$ and $C_k=v_{j_0-2k-1}$ for a fixed odd $j_0$). It is the union of the $2N$ copies $Ov_{j-1}v_j$ of $\Delta$ with the vertex $A$ at the origin $O$; the $v_j$ with $j$ even are copies of $C$, the others copies of $B$. \begin{lemma}\label{lem:star} \begin{enumerate}[label=\textup{(\alph*)},leftmargin=*] \item\label{it:st-glue} The unfolding is $\mathcal P$ with, for even $i$, the side $e_i$ glued by a translation to $e_{i-2q-1}$, $v_i$ to $v_{i-2q-2}$ and $v_{i-1}$ to $v_{i-2q-1}$; $O$ is a regular point, and $\omega$ is a non-zero multiple of $dz$. \item\label{it:st-T} The rotation about $O$ through $2\theta$ maps $v_j$ to $v_{j-2}$ and $e_j$ to $e_{j-2}$, and induces $T$. \item\label{it:st-H1} Suppose that every vertex of $\mathcal P$ lies in $\Sigma$, and let $\mathrm a$ be a side $e_j$ with an orientation. Then $H_1(X,\Sigma;\Z)$ is free with basis $T^k\mathrm a$, $k\in\Z/N$; for $\ell\in\Z/N$, $H^1(X,\Sigma)_\ell$ is spanned by the class $\varphi_\ell$ with $\varphi_\ell(T^k\mathrm a)=\zeta^{\ell k}$; and for $\xi\in H^1(X,\Sigma;\C)$ the classes $(T^k)^*\xi$ span $\bigoplus_{\ell:\hat\xi(\ell)\ne0}H^1(X,\Sigma)_\ell$, where $\hat\xi(\ell)=\frac1N\sum_k\zeta^{-\ell k}\xi(T^k\mathrm a)$. \end{enumerate} \end{lemma} \begin{proof} \labelcref{it:st-glue} This is \cite[Lemma~5.12]{P21} in our labels: there $b_k=e_{j_0-2k}$ is glued to $c_{k-q-1}=e_{j_0-2k+2q+1}$, with $B_k\mapsto B_{k-q}$ and $C_k\mapsto C_{k-q-1}$; put $i=j_0-2k+2q+1$. The unfolding is $(X,\omega)$ up to a non-zero factor (\cref{ssec:cylinders}). \labelcref{it:st-T} The rotation $R$ adds $2\theta$ to arguments and $\rho_{j-2}=\rho_j$, so $R(v_j)=v_{j-2}$. The rule of \labelcref{it:st-glue} is invariant under $j\mapsto j-2$, so $R$ induces an automorphism of $X$ with $R^*\omega=\zeta\omega$, which is a power of $T$ \cite[Theorem~6.2]{P23}, hence $T$. \labelcref{it:st-H1} The points of $\Sigma$, the $N$ classes of glued pairs of sides, each containing one side of odd index, and the interior of $\mathcal P$ form a cell structure on $X$. Each $1$-cell occurs twice in the boundary of the $2$-cell, with opposite orientations, as the gluings are translations; so $H_1(X,\Sigma;\Z)$ is free on the $1$-cells, which by \labelcref{it:st-T} are the $T^k\mathrm a$ up to orientation. So $(T^*\xi)(T^k\mathrm a)=\xi(T^{k+1}\mathrm a)$, $T^*\varphi_\ell=\zeta^\ell\varphi_\ell$, $\xi=\sum_\ell\hat\xi(\ell)\varphi_\ell$, and $\frac1N\sum_k\zeta^{-\ell k}(T^k)^*\xi=\hat\xi(\ell)\varphi_\ell$. \end{proof} \paragraph{The triangle \texorpdfstring{$\Gamma_1$}{Gamma1}.} Let $\nu\ge8$ be even, $N=2\nu$, $\Delta=\Gamma_1=\tri1{\nu-2}{\nu+1}N$, $\theta=\pi/N$ and $\kappa=2\cos2\theta$, and let $\mathcal P$, $v_j$, $e_j$, $j\in\Z/4\nu$, be as above with $q=\nu-2$, $r=\nu+1$. So $\rho_j=\cos2\theta/\sin\theta$ for even $j$ and $\rho_j=\cot\theta$ for odd $j$, and \cref{lem:star}\labelcref{it:st-glue} reads: \emph{for even $i$, $e_i$ is glued to $e_{i+2\nu+3}$, with $v_i\leftrightarrow v_{i+2\nu+2}$ and $v_{i-1}\leftrightarrow v_{i+2\nu+3}$}, the rule of the proof of \cite[Theorem~5.15]{P21}. The copies of $C$ form one point of cone angle $2\pi(\nu+1)$, and the copies of $B$ form $g_B=\gcd(\nu-2,4)$ points of cone angle $2\pi(\nu-2)/g_B\ge4\pi$; so every vertex of $\mathcal P$ lies in $\Sigma$. The half-turn $z\mapsto-z$ is $T^\nu=\iota$; it maps $v_j$ to $v_{j+2\nu}$ and $e_j$ to $e_{j+2\nu}$. Let $y_j$ be the height of $v_j$, $x(v_j)=\rho_j\sin j\theta$ and $w_j=y_{j-1}-y_j$. By the proof of \cite[Theorem~5.15]{P21}, for $1\le j\le\nu$, $w_j=\sin((j+1)\theta)$ for even $j$ and $w_j=\sin((j-2)\theta)$ for odd $j$, and \[ 0=y_\nu{\raggedright}p{3.2cm}>{\raggedright}p{4.4cm}l>{\raggedright\arraybackslash}p{3.3cm}@{}} \toprule cylinder & made of & height & circumference\\ \midrule $C_{\mathrm T}$ & right tip, top slab of $\Pi'_5$, left tip, $\Pi'_3$ & $\sin\theta$ & $2\kappa(\kappa+2)\cos\theta$\\ $C_{\mathrm W}$ & $\mathrm N$, bottom slab of $\Pi'_5$ & $\kappa\sin\theta$ & $2\kappa(\kappa+1)\cos\theta$\\ $C_{\mathrm Z_j}$, $j$ even, $4\le j\le\nu-4$ & $\Pi_j$, $\Pi'_{j+3}$ & $\sin((j+1)\theta)$ & $2\kappa\cot\theta\,\sin((j+1)\theta)$\\ $C_{\mathrm Y}$ & $\Pi_{\nu-2}$, $\Pi_\nu$ & $\cos\theta$ & $2\kappa\cot\theta\,\cos\theta$\\ \bottomrule \end{tabular} \end{center} Their moduli are $\tan\theta/(2\kappa(\kappa+2))$ for $C_{\mathrm T}$, $\tan\theta/(2(\kappa+1))$ for $C_{\mathrm W}$, and $\tan\theta/(2\kappa)$ for $C_{\mathrm Y}$ and each $C_{\mathrm Z_j}$; $\iota$ preserves moduli. \end{proposition} \begin{proof} Each step uses the gluing rule and \cite[Lemma~5.14]{P21}: strips glued in a cycle, side to side at equal heights, form an annulus of closed horizontal leaves whose circumference is the sum of the lengths of the chords at corresponding heights, and it is a maximal cylinder if each of its boundary components contains a point of $\Sigma$. $C_{\mathrm T}$: the right tip leaves through $e_2\to e_{2\nu+5}$, the left side of $\Pi'_5$, with $v_1\mapsto v_{2\nu+5}$, the top of $\Pi'_5$; as $\sin\theta30$. On $\Gamma_4$ with $N\in\{28,36,44,60\}$ the cylinders are found by computation. The proofs are in the supplement (\S S3). \begin{theorem}\label{thm:Gamma2} Let $8\mid N$, $N\ge16$, and $\Delta=\Gamma_2$. The unfolding has $N/4-1$ horizontal cylinders whose moduli are pairwise not rational multiples of each other. Hence $S=F$ and $\mathcal M=\mathcal L$. \end{theorem} \begin{theorem}\label{thm:Gamma4} Let $N\equiv4\pmod8$, $N\ge28$, and $\Delta=\Gamma_4$. Then $\operatorname{rank}\mathcal M=N/4-1$, $S=F$ and $\mathcal M=\mathcal L$. \end{theorem} \subsection{Five short proofs}\label{ssec:short} For even $N$ and odd $\nu$, reduction modulo $\nu$ maps $G$ isomorphically onto $(\Z/\nu)^\times$; we write $\bar H$ for the image of a subgroup $H$, and for integers $b,x$ prime to $\nu$, $b/x\in\bar H$ means that the class of $bx^{-1}$ modulo $\nu$ lies in $\bar H$. \begin{lemma}\label{lem:T-hol} Let $N$ be even, $c,\sigma\ge1$ with $c+2\sigma=\nu$, and $\Delta=\tri c\sigma{\sigma+\nu}N$. An odd $x$ lies in $\Phi$ if and only if $0<[xc]<\nu$. \end{lemma} \begin{proof} Put $r=[xc]$. As $x$ is odd, $2x\sigma=x\nu-xc\equiv\nu-r$, and $\nu-r$ is even, as $r\equiv c\equiv\nu\pmod2$. So with $\rho=(\nu-r)/2$ the residues of $x\sigma$ and $x(\sigma+\nu)\equiv x\sigma+\nu$ are those of $\rho$ and $\rho+\nu$. If $0(m-1)/2$; then $1\le j_0\le(m-1)/2$ and $(m-1)/2<1+5j_0\le(m-1)/2+5N/6+1$, then $\nu+1-\alpha-\gamma\in A_1$ (diagonal $1-\alpha$, $x=\nu+\gamma$; then $b=\nu+1-\alpha-\gamma$ is odd and lies in $(0,N/3)$). \end{enumerate} If $A_1\ne\{1\}$, let $1+g$ be its least element above $1$; by \labelcref{it:C1}, $\alpha'-g\in A_1$ for $\alpha'\in A_1$, $\alpha'>1$, so $A_1=\{1+jg:\ 0\le j\le n\}$, and $g$ is even. \emph{The element $3g-1$.} If $N\equiv2\pmod3$, or $3g-1<\nu$, then $3g-1\in H$. We use the diagonal $1-(1+g)=-g$. If $N\equiv1\pmod3$, let $x=(N-1)/3\in I_1$ and $b=(2N+1-3g)/3$, an odd integer below $2N/3$, and above $\nu$ when $3g-1<\nu$. Then $x+b=N-g$, $3x\equiv-1$, so $x$ is a unit, and $3b\equiv1-3g$, so $b/x\equiv3g-1$. If $N\equiv2\pmod3$, let $x=(N+1)/3-g$, odd and in $(0,N/3)$ as $2\le gN/3$.} Then $A_1\subset\{1,1+g,1+2g\}$, and as $2g>N/6$, by \labelcref{it:C2} two elements of $\Gamma$ differ by $0$ or $g$. On the diagonal $1+(1+g)$, $x=3$ and $b=g-1$ form a pair, so $g-1\in3H$: $g-1$ is $\equiv\pm3$, $\pm3(1+g)$, $\pm3(1+2g)$ (the last only if $1+2g\in A_1$, so $gN/3$, which is impossible. If $\beta=1+2g$, then $g=(N-4)/8$ and $\beta=N/4$, not a unit. If $\beta=1+g$, then $g=(N-4)/5$, $1+2g>N/3$, $\gamma^*=(N+6)/10$ and $\gamma^*\pm g\notin(0,N/6)$, so $H=\pm\{1,(N+1)/5,3(N+1)/5\}=\pm\{1,5^{-1},3\cdot5^{-1}\}$; then $5^{-2}\in H$, so $N$ divides one of $24,26,4,6,14,16$. So Step 3 does not occur for $N\ge40$. For the last statement, a closed set containing $1$ whose unit part has conductor $N'=N$ is that unit part, with (P) (\cref{lem:conductor,lem:P}), so it is $\{\pm1\}$. \end{proof} \subsection{The other families}\label{ssec:other-families} The following statements are proved in the supplement (\S S4). For $N\not\equiv0\pmod4$ let $\sigma_0=0$ if $N$ is odd and $\sigma_0=\nu$ if $N\equiv2\pmod4$. \begin{theorem}\label{thm:doubling} Let $N$ be composite with $4\nmid N$ and with composite odd part, and let $\Delta$ have $\gcd(p_i,N)\le2$ for each $i$ and $2+\sigma_0\in\Phi$. Then $\Delta$ satisfies \textup{(N$'$)}. \end{theorem} Two instances of rule~\labelcref{it:rule} on the diagonal $1+k$, for a unit $k$ of a closed set, act like the map $k\mapsto(1\pm k)/2$ on its unit part; a unit part of conductor $N'$ is then forced to inject modulo every odd prime of $N$ and to be stable under this map, which is impossible when the odd part of $N$ is composite. The theorem applies to $\mathcal A_2=\tri1{\nu-2}{\nu+1}N$ with $N\equiv2\pmod4$ and $\nu$ composite: the residues of $(2+\nu)(1,\nu-2,\nu+1)$ are $\nu+2$, $\nu-4$ and $2$. \begin{theorem}\label{thm:theta} Let $N=4m$. \begin{enumerate}[label=\textup{(\alph*)},leftmargin=*] \item\label{it:th-0} If $12\mid N$ and $N\ge84$, no subgroup $H\ni-1$ of $G$ other than $\{\pm1\}$ with conductor $N$ satisfies \textup{(P)} on $\Theta_0$. \item\label{it:th-12} Let $m>1$ be odd, $\Theta_1=\tri14{N-5}N$ and $\Theta_2=\tri4{\nu-5}{\nu+1}N$. If $N\ge76$ and $m$ is not prime, no subgroup $H\ni-1$ of $G$ other than $\{\pm1\}$ satisfies \textup{(P)} on $\Theta_1$ or on $\Theta_2$. If $m\ge7$ is prime, every subgroup $H\ni-1$ with \textup{(P)} on $\Theta_1$ or on $\Theta_2$ is $\{\pm1\}$ or $G$. \item\label{it:th-3} Let $m\ge45$ be odd and $\Theta_3=\tri4{\nu-3}{\nu-1}N$. Every subgroup $H\ni-1$ of $G$ other than $\{\pm1\}$ with \textup{(P)} on $\Theta_3$ has conductor different from $N$. \end{enumerate} So these triangles satisfy \textup{(N$'$)} at these $N$. \end{theorem} Here $\Theta_2$ has the numerators of $\Theta_1$ multiplied by $u_\iota$, so \cref{lem:twin} reduces it to $\Theta_1$. \begin{theorem}\label{thm:Ad-dense} Let $d\mid N$ with $n=N/d\ge5$ odd, and suppose that $N$ is odd and $d\ge3$, or $N\equiv d\equiv0\pmod4$, or $N\equiv d\equiv2\pmod4$ and $d\ge6$; suppose $N\ne15$. On the unfolding of $\mathcal A_d=\tri1{(N-d)/2-1}{(N+d)/2}N$ every unit lies in $S$. Hence $S=F$ when $N>30$. \end{theorem} The last sentence follows from \cref{thm:units}, as $S$ is closed. \begin{theorem}\label{thm:A1-dense} Let $N\ge7$ be odd, $N\ne9$, and $\Delta=\mathcal A_1=\tri1{(N-3)/2}{(N+1)/2}N$. Then $V=H^1(X,\Sigma;\C)$, and the orbit of the unfolding is dense in its connected component of $\mathcal H\bigl((N-1)/2,(N-5)/2\bigr)$ if $3\nmid N$, and of $\mathcal H\bigl((N-1)/2,((N-9)/6)^3\bigr)$ if $3\mid N$. In particular $S=F$. \end{theorem} Its proof is that of \cref{thm:Gamma1}: the unfolding is the star, and one free set of cylinders and its images under $T$ span $H^1(X,\Sigma;\C)$. \begin{theorem}\label{thm:B-family} Let $N>400$ and let $\Delta=\mathcal B_{k,d}$ be a triangle of the family $\mathcal B$ of \cref{prop:nowitness} with $d\ge5$, other than the sixteen triangles of \cref{prop:sixteen}. Then $\Delta$ satisfies \textup{(N$'$)}. \end{theorem} \needspace{4\baselineskip} \begin{remark}\label{rem:cyl-question} Delecroix and R\"uth ask whether the tangent vectors that the cylinder deformation theorem gives in the directions with cylinders eventually span the tangent space of the orbit closure \cite[Question~3.1]{DelecroixRuth}. On $\Gamma_1$ with $4\mid N$, $N\ge16$, and on $\mathcal A_1$ with $N\ge7$ odd, $N\ne9$, those of finitely many directions span it. The twist $\xi$ of a free set $\mathcal G$ of cylinders (\cref{lem:free-set}) lies in the span of the vectors that one step of their algorithm gives in the direction of $\mathcal G$ (\cref{ssec:upto58}), and $(T^k)^*\xi$ is the twist of the free set $T^{-k}(\mathcal G)$; in the proofs of \cref{thm:Gamma1,thm:A1-dense}, the $(T^k)^*\xi$ for one such $\xi$ span $V$. \end{remark} \section{An angle \texorpdfstring{$\pi/3$}{pi/3}}\label{sec:sixty} In this section $12\mid N$ and $\Delta$ has an angle $\pi/3$. Let $p$ be the smaller of the two other numerators. Then \[ \Delta=\tri{p}{N/3}{2N/3-p}{N},\qquad 1\le p58$ with $12\mid N$, and let $\Delta=\tri{p}{N/3}{2N/3-p}{N}$ with $1\le p,>=stealth] (-0.605,4.597) -- (0.500,4.597); \draw[line width=0.4pt] (0.500,4.597) -- (1.177,4.597); \draw[line width=0.4pt,->,>=stealth] (-4.083,-2.259) -- (1.335,-2.259); \draw[line width=0.4pt] (1.335,-2.259) -- (4.655,-2.259); \fill[black!38] (5.820,4.517) rectangle (5.940,4.677); \fill[black!38] (5.820,-2.338) rectangle (5.940,-2.179); \draw[line width=0.4pt] (5.880,-4.677) -- (5.880,4.677); \draw[line width=0.4pt] (5.810,-4.677) -- (5.950,-4.677); \draw[line width=0.4pt] (5.810,-4.517) -- (5.950,-4.517); \draw[line width=0.4pt] (5.810,-4.050) -- (5.950,-4.050); \draw[line width=0.4pt] (5.810,-3.307) -- (5.950,-3.307); \draw[line width=0.4pt] (5.810,-2.338) -- (5.950,-2.338); \draw[line width=0.4pt] (5.810,-1.210) -- (5.950,-1.210); \draw[line width=0.4pt] (5.810,0.000) -- (5.950,0.000); \draw[line width=0.4pt] (5.810,1.210) -- (5.950,1.210); \draw[line width=0.4pt] (5.810,2.338) -- (5.950,2.338); \draw[line width=0.4pt] (5.810,3.307) -- (5.950,3.307); \draw[line width=0.4pt] (5.810,4.050) -- (5.950,4.050); \draw[line width=0.4pt] (5.810,4.517) -- (5.950,4.517); \draw[line width=0.4pt] (5.810,4.677) -- (5.950,4.677); \node[inner sep=0pt] at (6.332,-4.597) {\tiny$-5.5$}; \node[inner sep=0pt] at (6.332,-4.284) {\tiny$-4.5$}; \node[inner sep=0pt] at (6.332,-3.678) {\tiny$-3.5$}; \node[inner sep=0pt] at (6.332,-2.823) {\tiny$-2.5$}; \node[inner sep=0pt] at (6.332,-1.774) {\tiny$-1.5$}; \node[inner sep=0pt] at (6.332,-0.605) {\tiny$-0.5$}; \node[inner sep=0pt] at (6.222,0.605) {\tiny$0.5$}; \node[inner sep=0pt] at (6.222,1.774) {\tiny$1.5$}; \node[inner sep=0pt] at (6.222,2.823) {\tiny$2.5$}; \node[inner sep=0pt] at (6.222,3.678) {\tiny$3.5$}; \node[inner sep=0pt] at (6.222,4.284) {\tiny$4.5$}; \node[inner sep=0pt] at (6.222,4.597) {\tiny$5.5$}; \node[inner sep=0pt] at (1.271,5.203) {\tiny$13.5$}; \node[inner sep=0pt] at (0.103,5.367) {\tiny$-2.5$}; \node[inner sep=0pt] at (4.678,-2.429) {\tiny$6.5$}; \node[inner sep=0pt] at (5.136,-1.505) {\tiny$14.5$}; \node[inner sep=0pt] at (0.582,-4.417) {\tiny$-5.5$}; \node[inner sep=0pt] at (1.679,-4.054) {\tiny$-4.5$}; \node[inner sep=0pt] at (2.639,-3.439) {\tiny$-3.5$}; \node[inner sep=0pt] at (3.406,-2.614) {\tiny$-2.5$}; \node[inner sep=0pt] at (3.951,-1.637) {\tiny$-1.5$}; \node[inner sep=0pt] at (4.249,-0.559) {\tiny$-0.5$}; \node[inner sep=0pt] at (4.352,0.573) {\tiny$0.5$}; \node[inner sep=0pt] at (4.045,1.675) {\tiny$1.5$}; \node[inner sep=0pt] at (3.475,2.667) {\tiny$2.5$}; \node[inner sep=0pt] at (2.677,3.488) {\tiny$3.5$}; \node[inner sep=0pt] at (1.694,4.089) {\tiny$4.5$}; \node[inner sep=0pt] at (0.576,4.372) {\tiny$5.5$}; \node[inner sep=0pt] at (-0.576,4.372) {\tiny$6.5$}; \node[inner sep=0pt] at (-1.694,4.089) {\tiny$7.5$}; \node[inner sep=0pt] at (-2.677,3.488) {\tiny$8.5$}; \node[inner sep=0pt] at (-3.475,2.667) {\tiny$9.5$}; \node[inner sep=0pt] at (-3.985,1.651) {\tiny$10.5$}; \node[inner sep=0pt] at (-4.288,0.565) {\tiny$11.5$}; \node[inner sep=0pt] at (-4.288,-0.565) {\tiny$12.5$}; \node[inner sep=0pt] at (-3.985,-1.651) {\tiny$13.5$}; \node[inner sep=0pt] at (-3.431,-2.633) {\tiny$14.5$}; \node[inner sep=0pt] at (-2.651,-3.454) {\tiny$15.5$}; \node[inner sep=0pt] at (-1.683,-4.064) {\tiny$16.5$}; \node[inner sep=0pt] at (-0.582,-4.418) {\tiny$17.5$}; \fill (0,0) circle[radius=0.8pt]; \node[below right=0.6pt,inner sep=0.4pt,fill=white] at (0,0) {\tiny$O$}; \end{tikzpicture} \caption{The star of the unfolding of $\tri18{15}{24}$ ($p=1$, $\mu=2$), with the common apex $O$ of its corners, in the frame of the flow of the direction of $AC$, which runs to the right. The base of index $y$ is marked $y$ inside the star, $-60$, that is $\lvert y\rvert<3\mu$ for the representative $y$ of its index in $(-6\mu,6\mu]$. A leaf leaves the star through right bases and enters it through the other bases. For a leaf leaving the star through the right base $y$ we write $c$ for its height above the apex of that corner, measured in the frame of the flow. The ends of the base $y$ are at heights $\tfrac{\sqrt3}{2}\sin((2y\mp p)\vartheta)$, so \begin{equation}\label{eq:sx-window} \tfrac{\sqrt3}{2}\sin\bigl((2y-p)\vartheta\bigr)(\ell+s)\sin2y\vartheta$. Its height above the apex of the corner of the base $x$ is then \[ c'=c-\ell\sin2y\vartheta+\ell\sin2x\vartheta=c-\sqrt3\,\ell\sin(2w\vartheta),\qquad w=\begin{cases}y-\mu&\text{(side 1)},\\ y+\mu&\text{(side 2)},\end{cases} \] and $\lvert w\rvert<2\mu$. This $w$ is the \emph{passage} of the crossing. \item[\textup{(b)}] It then leaves the star through the right base $y'$ with $y'\equiv x\pmod p$ if $c'>0$ and $y'\equiv x-N\pmod p$ if $c'<0$, where $x$ is read as the number $y+4\mu$ or $y+8\mu$ in $(3\mu,9\mu)$; $y'$ is the unique such index with $c'$ in its window, and its height is still $c'$. \end{enumerate} A closed leaf with passages $w_1,\dots,w_n$ (one for each crossing of a triangle, in order) has length $\sqrt3\,\ell\sum_i\cos(2w_i\vartheta)$, and $\sum_i\sin(2w_i\vartheta)=0$. \end{lemma} \begin{proof} (a) In the frame of the corner of the base $y$, with its apex at the origin, the center of the triangle $E$ glued to the base is at $\ell e^{2iy\vartheta}$, and the vertex of $E$ opposite the base at $(\ell+s)e^{2iy\vartheta}$. The sides of $E$ other than the base $y$ are glued to the corners whose bases have outward normals $2y\vartheta+2\pi/3$ and $2y\vartheta+4\pi/3$, that is to the bases $y+4\mu$ and $y+8\mu$, as $2\cdot4\mu\vartheta=2\pi/3$. Let $P$ and $P'$ be the lower and upper ends of the base $y$. The leaf enters $E$ between $P$ and $P'$; if it passes below the opposite vertex $V$ it leaves $E$ through the side $PV$, and otherwise through $P'V$. The side $PV$ has outward normal (for $E$) of angle $2y\vartheta-\pi/3$, so the corner glued to it has outward normal $2y\vartheta+2\pi/3$: it is the base $y+4\mu$. This proves the rule. The gluings are translations, so the leaf keeps its height in the plane; the center of $E$ is at height $\ell\sin2y\vartheta$ above the first apex and $\ell\sin2x\vartheta$ above the second, which gives $c'$. For side~1, $\sin2x\vartheta-\sin2y\vartheta=\sin(2y\vartheta+\tfrac{2\pi}3)-\sin2y\vartheta=-\sqrt3\sin(2y\vartheta-\tfrac\pi6)$, and for side~2, $\sin(2y\vartheta-\tfrac{2\pi}3)-\sin2y\vartheta=-\sqrt3\sin(2y\vartheta+\tfrac\pi6)$; as $2\mu\vartheta=\pi/6$ this is $-\sqrt3\sin2w\vartheta$ in both cases. A leaf running to the right enters the corner $x$ through its base only if that base faces left, $\cos2x\vartheta<0$: for side~1 this means $2y\vartheta\in(-\pi/6,5\pi/6)$, which with $\lvert y\rvert<3\mu$ gives $-\mu0$, the direction of its point seen from the apex decreases from about $\pi$ towards $0$, so the leaf meets the corners in the order $Q_x,Q_{x-p},Q_{x-2p},\dots$, whose bases have normals $2x\vartheta,2x\vartheta-2\alpha,\dots$ (as real numbers, starting in $(\pi/2,3\pi/2)$). The leaf passes from each corner to the next across their common leg, until it leaves a corner through its base; it does so after finitely many corners, because the developed corners lie in the disc of radius $\sqrt3/2$ around the apex while the leaf moves to the right at unit speed. Each corner is convex, and a leaf running to the right leaves a convex region through a part of the boundary whose outward normal has positive horizontal component; so the base $y'=x-kp$ through which it leaves is a right base. Its normal $2y'\vartheta$ lies within $\alpha<\pi/3$ of a direction in $(0,\pi)$ and has positive cosine, so $2y'\vartheta\in(-\pi/2,\pi/2)$ as a real number. If $c'<0$ the direction increases from about $\pi$ towards $2\pi$, the corners met are $Q_{x+kp}$, and the exit base has normal $2(x+kp)\vartheta\in(3\pi/2,5\pi/2)$, that is index $y'=x+kp-N$. The point of exit is on the base $y'$ at height $c'$, so $c'$ lies in its window. The window of a right base $y'$ is an interval of length $\sqrt3\cos(2y'\vartheta)\sin\alpha>0$, and the windows of $y'$ and $y'+p$ have a common end, the second lying above the first; so the windows of the right bases in one class modulo $p$ are disjoint, and $y'$ is determined by $c'$. For the length, let $\xi$ be the horizontal coordinate of the point of the leaf relative to the apex of its current corner. It grows at unit speed along the leaf, is continuous in the star (all corners around one apex are developed with the apex fixed), and at the crossing of a triangle from the base $y$ to the base $x$ it changes by $\ell\cos2x\vartheta-\ell\cos2y\vartheta$, the difference of the horizontal coordinates of the center in the two frames. Around a closed leaf the total change of $\xi$ is $0$, so the length is $\ell\sum_i(\cos2y_i\vartheta-\cos2x_i\vartheta)$. For side~1, $\cos2y\vartheta-\cos(2y\vartheta+\tfrac{2\pi}3)=\sqrt3\cos(2y\vartheta-\tfrac\pi6)$, and for side~2, $\cos2y\vartheta-\cos(2y\vartheta-\tfrac{2\pi}3)=\sqrt3\cos(2y\vartheta+\tfrac\pi6)$; both are $\sqrt3\cos2w\vartheta$. The same argument for the vertical coordinate gives $\sum_i(c'_i-c_i)=0$, that is $\sum_i\sin2w_i\vartheta=0$. \end{proof} Along a fixed sequence of crossings every condition in \cref{lem:sixty-return} is an inequality between the first height $c_0$ and a number that does not depend on $c_0$, as the heights change by translations. Hence a closed leaf that meets no point over $A$ or $C$ lies in a cylinder, the leaves of the cylinder are the leaves with the same sequence of crossings, and its height is the length of the open interval of their first heights $c_0$. The \emph{exponents} of a crossing with passage $w$ are \[ e=w\ \ (\text{direction }AB),\qquad e=w-\tfrac12\ \ (\text{direction }AC); \] in both cases $e$ is an integer in the \emph{window of exponents} $\mathcal X=\{-2\mu,-2\mu+1,\dots,2\mu-1\}$, as $\lvert w\rvert<2\mu$ and $w$ is an integer for $AB$ and a half-integer for $AC$. For a cylinder $Y'$ of one of the two directions with exponents $e_1,\dots,e_n$ we put \[ \Sigma_{Y'}=\sum_{i=1}^n\zeta^{e_i}\in\Q(\zeta). \] By \cref{lem:sixty-return}, $\sum_i\zeta^{w_i}$ is real and is the circumference of $Y'$ divided by $\sqrt3\ell$; and $\Sigma_{Y'}=\sum_i\zeta^{w_i}$ for $AB$, $\Sigma_{Y'}=\zeta^{-1/2}\sum_i\zeta^{w_i}$ for $AC$. So for two cylinders $Y$, $Y'$ of one direction, $\Sigma_{Y'}/\Sigma_Y$ is the ratio of their circumferences, a positive real number. \subsection{What one cylinder forces}\label{ssec:sixty-test} The cylinders of one direction $\theta$ and the classes $I_{Y'}$ are those of \cref{ssec:cylinders}. For cylinders $Y$, $Y'$ of the direction of $AB$ or of $AC$ we put $t_{Y'}=\Sigma_{Y'}/\Sigma_Y=c_{Y'}/c_Y$. \begin{lemma}\label{lem:sixty-forces} Let $Y$ be a cylinder of the direction of $AB$ or $AC$ and $\mathcal E$ its $\mathcal M$-parallel class. If $H_{12}\subset S$ and some unit is not in $S$, then $t_{Y'}\in\Q(\sqrt3)$ for every $Y'\in \mathcal E$, and $\sum_{Y'\in\mathcal E}h_{Y'}\,\bar t_{Y'}=0$, where $\bar t$ is the conjugate of $t$ in $\Q(\sqrt3)$. In particular some $Y'\in \mathcal E$ has $\bar t_{Y'}<0$. \end{lemma} \begin{proof} By \cref{lem:structure}, $S\cap G$ is a subgroup of $G$; it contains $H_{12}$, which has index $2$ in $G$ as $G/H_{12}\cong(\Z/12)^\times/\{\pm1\}$, and it is not $G$; so $S\cap G=H_{12}$. The automorphisms $\sigma_v$, $v\in H_{12}$, are those that fix $\zeta^\mu+\zeta^{-\mu}=2\cos(\pi/6)=\sqrt3$, so their fixed field is $\Q(\sqrt3)$, and $t_{Y'}\in\Q(\sqrt3)$ by \cref{lem:cyl}\labelcref{it:cyl-f1} with $A_0=S$. Let $v\equiv5\pmod{12}$ be a unit; then $v\notin S$ and $\sigma_v(\sqrt3)=2\cos(5\pi/6)=-\sqrt3$, so \cref{lem:cyl}\labelcref{it:cyl-f2} gives $\sum_{Y'\in\mathcal E}h_{Y'}\bar t_{Y'}=0$. As $t_Y=1$ and all $h_{Y'}>0$, some $\bar t_{Y'}$ is negative. \end{proof} \begin{definition}\label{def:sixty-pass} Let $Y$ be a cylinder of the direction of $AB$ or $AC$, with exponents $e_1,\dots,e_n\in\mathcal X$. We say that $Y$ \emph{passes} if there are no function $m\colon\mathcal X\to\Z_{\ge0}$ and rational numbers $a,b$ with $b>0$, $\lvert a\rvert0>\bar t_{Y'}=a-b\sqrt3$; so $b>0$ and $\lvert a\rvert0$ for the strict inequality and $a\sqrt3\,n_{-2}\qquad\text{or}\qquad n_{-2}-n_0>\sqrt3\,n_1, \] then $Y$ passes. \end{proposition} \begin{proof} By $\sqrt3\,\zeta^x=\zeta^{x+\mu}+\zeta^{x-\mu}$ and \eqref{eq:sx-reduce}, the coordinates of $(a+b\sqrt3)\Sigma_Y$ at $r-2\mu,r-\mu,r,r+\mu$ are \[ a\,n_{-2}-b(n_1-n_{-1}),\quad a\,n_{-1}+b(n_0+2n_{-2}),\quad a\,n_0+b(2n_1+n_{-1}),\quad a\,n_1+b(n_0-n_{-2}). \] Indeed $\sqrt3\zeta^{r-2\mu}=\zeta^{r-\mu}+\zeta^{r-3\mu}=2\zeta^{r-\mu}-\zeta^{r+\mu}$, $\sqrt3\zeta^{r-\mu}=\zeta^r+\zeta^{r-2\mu}$, $\sqrt3\zeta^r=\zeta^{r+\mu}+\zeta^{r-\mu}$ and $\sqrt3\zeta^{r+\mu}=\zeta^{r+2\mu}+\zeta^r=2\zeta^r-\zeta^{r-2\mu}$. If $n_1-n_{-1}>\sqrt3n_{-2}$, $b>0$ and $a\sqrt3n_1$, the last one is less than $(a-b\sqrt3)n_1\le0$. Since the $\zeta^x$, $x\in\mathcal X$, are a basis, no $m\ge0$ has $\sum m(x)\zeta^x=(a+b\sqrt3)\Sigma_Y$. \end{proof} We say that $Y$ \emph{passes the block test} when the hypothesis of \cref{prop:sixty-block} holds. When a prime $q\ge5$ divides $N$, the numbers $\zeta^x$, $x\in\mathcal X$, are not linearly independent over $\Q$, and \cref{prop:sixty-block} is not available. One test serves every $N$. Let $\mathfrak d$ be the product of the primes $q\ge5$ that divide $N$ ($\mathfrak d=1$ is allowed) and $\mathfrak s=N/(6\mathfrak d)$. As $\mathfrak d$ is prime to $6$, $\mathfrak d\mid\mu$; so $2\mu=\mathfrak d\mathfrak s$, $\mathfrak s$ is even, and $p$ is prime to $\mathfrak d$ and to $\mathfrak s$. \needspace{4\baselineskip} \begin{proposition}\label{prop:sixty-test} Let $Y$ be a cylinder of the direction of $AC$ with exponents $x_1,\dots,x_n$, and let $E$ be an integer with $\mu\le E\le2\mu-1$. Let $n_1,n_0,n_{-1},n_{-2}$ be the numbers of $j$ with $x_j=E$, $E-\mu$, $E-2\mu$, $E-3\mu$ respectively, and let $\mathcal R$ be the set of the residues modulo $\mathfrak d$ of the integers $r_j=2(x_j-E)/\mathfrak s$, over the $j$ with $\mathfrak s\mid2(x_j-E)$ and $\mathfrak d\nmid r_j$. If \[ n_1-n_{-1}>\sqrt3\,n_{-2}\qquad\text{and}\qquad \sum_{r\in \mathcal R}\ \prod_{q\mid\mathfrak d,\ q\nmid r}\frac2{q-1}<1, \] then $Y$ passes. The same holds with the list $(-1-x_j)_j$ in place of $(x_j)_j$. \end{proposition} We then say that the list \emph{passes the test at $E$}. The proof, in \S S5 of the supplement, applies \cref{prop:sixty-cert} with an explicit function supported on the residue class of $E+\mu$ modulo $\mathfrak s$, multiplied at each prime $q\mid\mathfrak d$ by a measure on $\Z/q$ supported on three points; when the sum in the hypothesis is less than $1$, a count shows that these measures can be chosen so that the exponents not counted by the $n_k$ contribute nothing. For a cylinder of the direction of $AB$, whose exponents lie in $\mathcal X\setminus\{-2\mu\}$, the supplement proves the same with $(-x_j)_j$ in place of $(-1-x_j)_j$, for the reading of \cref{def:sixty-pass} with $\mathcal X\setminus\{-2\mu\}$ in place of $\mathcal X$; \cref{prop:sixty-one} holds with that reading, by its proof. If $\mathfrak d=1$, then $\mathcal R=\emptyset$, and for the direction of $AC$ the test is the block test: with $r=E-\mu$ the numbers $n_k$ are the $n_k(r)$ of \cref{prop:sixty-block}, and $x\mapsto-1-x$ maps the block $\{r-2\mu,r-\mu,r,r+\mu\}$ onto the block of $\mu-1-r$, in the reverse order, so that the test for $(-1-x_j)_j$ at $2\mu-1-r$ is the inequality $n_{-2}-n_0>\sqrt3\,n_1$ at $r$. If $x_j-E\equiv J_jp\pmod{2\mu}$ with an integer $J_j$, then, as $\mathfrak s\mid4\mu$ and $p$ is prime to $\mathfrak s$ and $\mathfrak d$, $\mathfrak s\mid2(x_j-E)$ if and only if $\mathfrak s\mid2J_j$, and then $r_j\equiv(2J_j/\mathfrak s)\,p\pmod{\mathfrak d}$, so that a prime $q\mid\mathfrak d$ divides $r_j$ if and only if it divides $2J_j/\mathfrak s$. \subsection{The units congruent to \texorpdfstring{$\pm1$}{plus or minus 1} modulo 12}\label{ssec:sixty-H} In this subsection $S'\subset F$ is a closed set containing $1$ (\cref{ssec:idea}) and $H=S'\cap G$, a subgroup of $G$ containing $-1$ (\cref{lem:structure}). Every element of $F$ is prime to $6$ (proof of \cref{prop:Splus}). Relabel the vertices if needed so that the numerator at the first vertex is a unit: put $\tilde p=p$ if $3\nmid p$ and $\tilde p=8\mu-p$ if $3\mid p$. Then $\Delta=\tri{\tilde p}{4\mu}{8\mu-\tilde p}{N}$ up to the order of the numerators, $0<\tilde p<8\mu$, and $\tilde p$ is a unit: it is odd, prime to $3$ (if $3\mid p$ then $3\nmid4\mu$, so $3\nmid8\mu-p$), and $\gcd(\tilde p,4\mu)=\gcd(p,4\mu)=1$. The set $S$ does not depend on the labeling, so we may work with $\tilde p$. Let \[ \Omega=\max\bigl(\tilde p,\,2\mu-\tilde p\bigr)\ \text{ if }\tilde p<4\mu,\qquad \Omega=\max\bigl(8\mu-\tilde p,\,\tilde p-6\mu\bigr)\ \text{ if }\tilde p>4\mu . \] Then $\Omega>\mu$: $\Omega\ge\mu$, with equality only if $\tilde p\in\{\mu,7\mu\}$, which is excluded as $\gcd(\tilde p,4\mu)=1$ and $\mu>1$ for $N>12$. \begin{lemma}\label{lem:sixty-hol3} Let $P$ be an integer with $P\equiv\tilde p\pmod3$ and $a=P\tilde p^{-1}\bmod N$. Then $a$ is holomorphic if and only if $0<[P]<8\mu$. \end{lemma} \begin{proof} This is \cref{lem:window}\labelcref{it:win-coord} with $p_i=\tilde p$, $p_k=N/3$ and $y=P$, as $2N/3=8\mu$. \end{proof} \needspace{4\baselineskip} \begin{lemma}\label{lem:sixty-inst} Let $s\equiv0\pmod6$ with $0<\lvert s\rvert<\Omega$ and $\gcd(\tilde p+s,N)=1$. Then $e_s=(\tilde p-s)/(\tilde p+s)\bmod N$ lies in $S'$. If $\tilde p-s$ is a unit, then $e_s\in H$ and $e_s\equiv1\pmod{12}$. If $d=\gcd(\tilde p-s,N)>1$, then $d$ is prime to $6$ and $K_{N/d}\subset H$; in particular $K_{N/q}\subset H$ for every prime $q\mid d$. \end{lemma} \begin{proof} Choose $(c,r)$ among $(\tilde p,\tilde p)$ if $\tilde p<4\mu$; $(\tilde p+6\mu,\,2\mu-\tilde p)$ if $\tilde p<2\mu$; $(\tilde p,\,8\mu-\tilde p)$ if $\tilde p>4\mu$; $(\tilde p-6\mu,\,\tilde p-6\mu)$ if $\tilde p>6\mu$, so that $r=\Omega$. In each case $c\equiv\tilde p\pmod{N/2}$ and the interval $(c-r,c+r)$ is $(0,2\tilde p)$, $(4\mu+2\tilde p,8\mu)$, $(2\tilde p-8\mu,8\mu)$ or $(0,2\tilde p-12\mu)$, contained in $(0,8\mu)$. Put $P=c+s$ and $P'=c-s$; both lie in $(0,8\mu)$ and are $\equiv\tilde p\pmod 6$, as $6\mid N/2$. They are odd and congruent modulo $N/2$ to $\tilde p+s$ and $\tilde p-s$, and every odd prime power dividing $N$ divides $N/2$; so $\gcd(P,N)=1$ and $\gcd(P',N)=\gcd(\tilde p-s,N)$. By \cref{lem:sixty-hol3}, $x=P/\tilde p$ is a holomorphic unit and $b=P'/\tilde p$ is holomorphic; and $x+b=2c/\tilde p\equiv2\pmod N$, so $b=1-x-(-1)$. Rule~\labelcref{it:rule} with the unit $u=x$ (note $x=x\cdot1\in xS'$) and $a'=-1\in S'$ gives $b\in xS'$, that is $P'/P\in S'$. Finally $P'/P\equiv(\tilde p-s)/(\tilde p+s)$, because $(c-s)(\tilde p+s)-(\tilde p-s)(c+s)=2s(c-\tilde p)\equiv0\pmod N$. If $\tilde p-s$ is a unit, $e_s$ is a unit, and $e_s\equiv1$ modulo $3$ and modulo $4$, as $\tilde p-s\equiv\tilde p+s$ modulo $3$ and modulo $4$. If $d>1$, $d$ is prime to $6$ as $\tilde p-s$ is; for $u\in K_{N/d}$, $(u-1)e_s\equiv0\pmod N$, so $e_s\in S'\cap uS'$, hence $uS'=S'$ by \labelcref{it:unit} and $u=u\cdot1\in H$. \end{proof} \begin{proposition}\label{prop:sixty-H} Each of the following implies $H_{12}\subset H$; in each case, therefore, $H_{12}\subset S$. \begin{enumerate}[label=\textup{(\alph*)},leftmargin=*] \item\label{it:sxH-a} Setting \ref{it:sx-a}, $N\ge72$. \item\label{it:sxH-b} Setting \ref{it:sx-b}, $p\ge9$. \item\label{it:sxH-c} Setting \ref{it:sx-c} or \ref{it:sx-d}, $N\ge60$. \end{enumerate} \end{proposition} The last assertion follows from the first as $S$ is closed and contains $1$ (\cref{ssec:notation}). Parts \ref{it:sxH-a} and \ref{it:sxH-b} are proved now; part \ref{it:sxH-c} after \cref{lem:sixty-cubes}. \begin{proof}[Proof of \ref{it:sxH-a} and \ref{it:sxH-b}] \ref{it:sxH-a} Here $\tilde p=p$ and $N=2^{a+2}3^{b+1}$. Take $s=6$: $\Omega>\mu\ge6$ as $N\ge72$, and $p\pm6$ are odd and prime to $3$, so units. By \cref{lem:sixty-inst}, $v=(p-6)/(p+6)$ lies in $H$, and $v\equiv1\pmod{12}$. Moreover $v=1-12/(p+6)$, so $v\equiv5\pmod8$ and $v\not\equiv1\pmod9$. The units $\equiv1\pmod{12}$ form, by the Chinese remainder theorem, the product of the units $\equiv1\pmod4$ modulo $2^{a+2}$, a cyclic group of order $2^a$ generated by any element $\equiv5\pmod8$, and the units $\equiv1\pmod3$ modulo $3^{b+1}$, a cyclic group of order $3^b$ generated by any element $\not\equiv1\pmod9$. So $v$ generates them, and with $-1\in H$ we get $H_{12}\subset H$. \ref{it:sxH-b} Here $N=12\cdot2^a$, $p=3p'$ with $p'\ge3$ odd, and $p<4\mu$, so $4\mu\ge16$. Let $x$ be the unit with $x\equiv1\pmod3$ and $x\equiv(p'+2)/p'\pmod{4\mu}$ ($p'$ is odd and $4\mu$ a power of $2$). Then $[x\cdot4\mu]=4\mu$, and $xp'\equiv p'+2\pmod{4\mu}$ gives $[xp]=3(p'+2)=p+6<8\mu$, so $[x(8\mu-p)]=8\mu-p-6$; the sum is $N$, and $x$ is holomorphic. Likewise $2-x\equiv1\pmod3$ and $(2-x)p'\equiv p'-2\pmod{4\mu}$, which is odd, so $2-x$ is a unit, and its residues are $p-6\in(0,8\mu)$, $4\mu$ and $8\mu-p+6$, with sum $N$: $2-x$ is holomorphic. Rule~\labelcref{it:rule} with $u=x$ and $a'=-1$ gives $2-x\in xS'$, so $v=(2-x)/x\in H$. Now $v\equiv1\pmod3$ and $v\equiv(p'-2)/(p'+2)=1-4/(p'+2)\pmod{4\mu}$, and $4/(p'+2)\equiv4\pmod8$, so $v\equiv5\pmod8$. The units $\equiv1\pmod{12}$ modulo $N$ form a cyclic group of order $2^a$ generated by any element $\equiv5\pmod 8$ that is $\equiv1\pmod3$; so they lie in $H$, and with $-1$, $H_{12}\subset H$. \end{proof} For part \ref{it:sxH-c} let some prime $q\ge5$ divide $N$; then $\tilde p$ is a unit in both settings \ref{it:sx-c} and \ref{it:sx-d}. The first step finds a non-unit in $S'$, the second spreads it. \begin{lemma}\label{lem:sixty-kernel} Let $q\ge5$ be a prime dividing $N$ with $K_{N/q}\subset H$. Then $H_{12}\subset H$. \end{lemma} \begin{proof} Put $M=N/q$, so $12\mid M$ and $8\mu=2qM/3>3M$. (1) Let $z,w\in[1,8\mu)$ be prime to $N$, with $z\equiv w\equiv\tilde p\pmod3$, $z+w\equiv2\tilde p\pmod M$, and $\tilde p-z-w$ prime to $N$. By \cref{lem:sixty-hol3}, $x=z/\tilde p$ and $b=w/\tilde p$ are holomorphic units, and $a'=1-x-b=(\tilde p-z-w)/\tilde p$ is a unit $\equiv-1\pmod M$, so $a'\in-K_{M}\subset H\subset S'$. Rule~\labelcref{it:rule} with $u=x$ gives $b\in xS'$, so $w/z\in H$. (2) Let $\bar z,\bar w$ be units modulo $M$ with $\bar z\equiv\tilde p\pmod3$ and $\bar z+\bar w\equiv2\tilde p\pmod M$. Let $z_0,w_0\in[1,M)$ represent them. The lifts $z_0+iM$, $w_0+jM$ ($i,j\in\{0,1,2\}$) lie in $[1,3M)\subset[1,8\mu)$, are odd and $\equiv\tilde p\pmod 3$, and $\tilde p-z-w\equiv-\tilde p\pmod M$ is a unit modulo $M$. If $q\mid M$, every lift and every $\tilde p-z-w$ is prime to $N$. If $q\nmid M$, the three lifts of $\bar z$ are distinct modulo $q$; choose one with $q\nmid z$; the three lifts of $\bar w$ are distinct modulo $q$, at most one has $q\mid w$ and at most one has $q\mid\tilde p-z-w$, so a third one satisfies (1). Hence $H$ contains an element $\equiv\bar w/\bar z\pmod M$. (3) The ratios $\bar w/\bar z$ of (2) are the numbers $(2-y)/y$ for the units $y=\bar z/\tilde p$ modulo $M$ with $y\equiv1\pmod3$ and $2-y$ a unit. Prime power by prime power: modulo $2^c\,\|\,M$ ($c\ge2$) they run over all of $1+4\Z$; modulo $3^c\,\|\,M$ over all of $1+3\Z$; modulo $q'^c\,\|\,M$ with $q'\ge5$ over the set $R_{q'}$ of residues $\not\equiv0,-1\pmod{q'}$, which has $q'^{c-1}(q'-2)>\varphi(q'^c)/2$ elements, so that $R_{q'}R_{q'}^{-1}$ is the whole unit group modulo $q'^c$. By the Chinese remainder theorem the set of ratios is the product of these sets, each of which contains $1$, so the group it generates contains every unit modulo $M$ that is $\equiv1\pmod{12}$. (4) For a unit $u\equiv1\pmod{12}$ modulo $N$, (2) and (3) give $h\in H$ with $h\equiv u\pmod M$; then $uh^{-1}\in K_{M}\subset H$, so $u\in H$. With $-1\in H$, $H_{12}\subset H$. \end{proof} Let $j(n)$ be Jacobsthal's function, as in \cref{ssec:twothirds}. \begin{lemma}\label{lem:sixty-hit} Let $q\ge5$ be a prime dividing $N$, and $N_q$ the product of the primes $\ge5$ of $N$ other than $q$. If $\lfloor N/(36q)\rfloor\ge j(N_q)$, there is $s\equiv0\pmod6$ with $0<\lvert s\rvert<\Omega$, $q\mid\tilde p-s$ and $\gcd(\tilde p+s,N)=1$; hence $K_{N/q}\subset H$ by \cref{lem:sixty-inst}. Such a $q$ exists unless $N=12q$ or $N=24q$ with $q$ prime. \end{lemma} \begin{proof} The number $n=\tilde p-s$ runs over the integers $\equiv\tilde p\pmod6$ of the open interval $(\tilde p-\Omega,\tilde p+\Omega)$, of length $2\Omega>2\mu=N/6$, other than $\tilde p$. Those divisible by $q$ form an arithmetic progression of difference $6q$, none equal to $\tilde p$ (a unit), and the interval contains at least $\lfloor N/(36q)\rfloor$ consecutive terms $n_t=n_1+6qt$ of it. For such $n$, $\tilde p+s=2\tilde p-n$ is odd, $\equiv\tilde p\pmod3$ and $\equiv2\tilde p\not\equiv0\pmod q$; for a prime $q'\mid N_q$ it is divisible by $q'$ for $t$ in exactly one class modulo $q'$. By the Chinese remainder theorem there is $t^*$ such that $2\tilde p-n_t$ is prime to $N_q$ if and only if $t-t^*$ is, and among $j(N_q)$ consecutive values of $t$ one has this property. For the second statement write $N=QM$ with $Q=2^a3^b\ge12$ and $M$ prime to $6$. If $M=q^e$ is a prime power, $N_q=1$, $j(1)=1$, and $N/(36q)=Qq^{e-1}/36\ge1$ unless $e=1$ and $Q\in\{12,24\}$. Otherwise let $q$ be the least prime $\ge5$ of $N$ and $n=N_q$, a squarefree number with $k\ge1$ prime factors, all $\ge7$; then $N\ge12qn$ and $\lfloor N/(36q)\rfloor\ge\lfloor n/3\rfloor$. If $k=1$, $j(n)=2\le\lfloor n/3\rfloor$. If $k\ge2$, by inclusion and exclusion over the $2^k$ divisors of $n$, the number of integers prime to $n$ among $J$ consecutive integers differs from $J\varphi(n)/n$ by less than $2^k$; so $j(n)\le2^kn/\varphi(n)+1$. As $n\ge77$ and $\varphi(n)\ge6^k$, $\varphi(n)(\tfrac13-\tfrac2n)\ge6^k(\tfrac13-\tfrac2{77})>2^k$, which gives $2^kn/\varphi(n)+1\le n/3-1<\lfloor n/3\rfloor$. \end{proof} It remains to treat $N=Qq$ with $Q\in\{12,24\}$ and $q\ge5$ prime. There $K_{Q}=K_{N/q}$, reduction modulo $q$ is an isomorphism from $K_{Q}$ onto $\mathbb F_q^\times$, and we let $W\subset\mathbb F_q^\times$ be the image of $H\cap K_{Q}$ and $r'$ its index. \needspace{4\baselineskip} \begin{lemma}\label{lem:sixty-inst2} Let $h\in H$ and let $z,w$ be integers with $01$ then $K_{N/d}\subset H$. \end{lemma} \begin{proof} By \cref{lem:sixty-hol3}, $x=z/\tilde p$ is a holomorphic unit and $b=w/\tilde p$ is holomorphic, and $1-x-b\equiv-h\in S'$. Rule~\labelcref{it:rule} with $u=x$ and $a'=-h$ gives $b\in xS'$, so $w/z\in S'$; the last statement follows as at the end of the proof of \cref{lem:sixty-inst}. \end{proof} \begin{lemma}\label{lem:sixty-cubes} Let $q\equiv1\pmod3$ be prime, $W_3\subset\mathbb F_q^\times$ the subgroup of cubes, and $\delta\in\mathbb F_q^\times$. Then $\#\{x\in W_3:\ x+\delta\in W_3\}\le(q+4+2\sqrt q)/9$. \end{lemma} \begin{proof} Let $\chi$ be a character of $\mathbb F_q^\times$ of order $3$, extended by $\chi(0)=0$. On $\mathbb F_q^\times$ the indicator of $W_3$ is $(1+\chi+\chi^2)/3$, so the number is $\frac19\sum_{i,j\in\{0,1,2\}}\sum_{x\ne0,-\delta}\chi^i(x)\chi^j(x+\delta)$. The term $(i,j)=(0,0)$ is $q-2$. The four terms with exactly one of $i,j$ zero are $-\chi^i(-\delta)$ and $-\chi^j(\delta)$, of absolute value $1$. The terms $(1,2)$ and $(2,1)$ are $\sum_x\chi^{\pm1}\bigl(x/(x+\delta)\bigr)=-1$, as $x/(x+\delta)$ runs over $\mathbb F_q\smallsetminus\{0,1\}$. The terms $(1,1)$ and $(2,2)$ become, after $x=-\delta y$, $\chi^i(-\delta^2)\sum_y\chi^i(y)\chi^i(1-y)=\chi^i(-\delta^2)J(\chi^i,\chi^i)$, a Jacobi sum with $\chi^i$, $\chi^i$ and $\chi^{2i}$ all non-trivial, so of absolute value $\sqrt q$ \cite[Corollary~2.5]{ConradGJ}. The sum is at most $q-2+4+2+2\sqrt q$. \end{proof} \begin{proof}[Proof of \cref{prop:sixty-H}\ref{it:sxH-c}] By \cref{lem:sixty-kernel} it suffices to find a prime $q\ge5$ of $N$ with $K_{N/q}\subset H$. If $N$ is not $12q$ or $24q$ with $q$ prime, \cref{lem:sixty-hit} gives one. Let $N=Qq$ with $Q\in\{12,24\}$, and suppose first that $Q=24$ and $q\ge11$, or $Q=12$ and $q\ge17$, $q\ne19$. Let $\varepsilon=\pm1$ with $\tilde p\equiv\varepsilon q\pmod6$. (i) $\varepsilon=1$. Apply \cref{lem:sixty-inst2} with $h=1$, $w=mq$ and $z\equiv2\tilde p-mq\pmod N$, for $m\in\{1,7\}$ ($Q=12$) or $m\in\{1,7,13\}$ ($Q=24$). Then $mq\equiv\tilde p\pmod 6$, $0(q-1)/4$ (as $q>5$), and $r'\le3$. (iii) $\varepsilon=-1$. Now $mq\equiv\tilde p\pmod6$ with $02\mu$, so $y_1$ is a right base. Its window is $(\lambda\sin(2\pi/3-2\alpha),\,3/4)$. The threshold of \cref{lem:sixty-return}(a) is $(\ell+s)\sin(2\pi/3-\alpha)=\sqrt3\sin(\alpha+\pi/6)\sin(\alpha+\pi/3)=3/4+\lambda\sin2\alpha>3/4$, so the whole window takes side~1. The entry is $x=8\mu-p/2\in(6\mu,7\mu)$ and the passage $w=y_1-\mu=3\mu-p/2$, with $2w\vartheta=\pi/2-\alpha$; the new height is $c'=c-\sqrt3\ell\cos\alpha=c-\lambda\sin(\pi/3+2\alpha)-3/4$. As $\sin(2\pi/3-2\alpha)=\sin(\pi/3+2\alpha)>0$, $c'$ runs over $(-3/4,-\lambda\sin(\pi/3+2\alpha))$, below the apex. So the exit is $\equiv x-N\equiv-4\mu-p/2\pmod p$, and $(-3/4,-\lambda\sin(\pi/3+2\alpha))$ is exactly the window of the base $-y_1=-4\mu+p/2$ of that class. There the threshold is $-(3/4+\lambda\sin2\alpha)0$; the crossing is above the apex, the exit is $\equiv4\mu+p/2\equiv y_1\pmod p$, and $c$ lies in the window of $y_1$. The exponents are the passages minus $\frac12$, and $2\mu0=\sqrt3n_{-2}$. The exponent $-E-1$ has $-E-1-E=p-6\mu\equiv1\cdot p\pmod{2\mu}$, so $J=1$, and $\mathfrak s\mid2(x-E)$ if and only if $\mathfrak s\mid2$, that is $\mathfrak s=2$; the exponent $E$ itself has $r=0$. So $\mathcal R=\emptyset$ unless $\mathfrak s=2$ and $\mathfrak d>1$; then $r\equiv p\pmod{\mathfrak d}$, $\mathcal R=\{p\bmod\mathfrak d\}$, and the sum is $\prod_{q\mid\mathfrak d}2/(q-1)\le\frac12$, as every $q\ge5$ and $p$ is prime to $\mathfrak d$. In each case the sum is less than $1$. If $\mathfrak d=1$ this is the block test (the remark after \cref{prop:sixty-test}). \end{proof} \emph{The top window.} The right base $y_0=3\mu-p/2$ has $2y_0\vartheta=\pi/2-\alpha$ and window $(\lambda\cos2\alpha,\lambda)$, of length $\Psi=\sqrt3\sin^2\alpha$. A leaf through it, followed backwards, crosses the leg pointing up at a right angle at the same height. This window is the \emph{top window}; we write the height of a leaf in it as $\lambda\cos2\alpha+\eta$, $0<\eta<\Psi$. The threshold $(\ell+s)\cos\alpha=\lambda(\sin(2\alpha+\pi/6)+\frac12)$ exceeds $\lambda$, so the whole top window takes side~1, with passage \[ x_0=y_0-\mu=2\mu-p/2,\qquad 2x_0\vartheta=\pi/3-\alpha, \] and new height $\eta-\lambda/2$ (as $\sqrt3\ell\sin(\pi/3-\alpha)=\lambda/2+\lambda\cos2\alpha$); it enters the star by $7\mu-p/2$. When $p<2\mu$ the exponent $E_0=x_0-\frac12=2\mu-\frac{p+1}2$ lies in $[\mu,2\mu-1]$. \emph{The top window when $N\ge5p^4$.} Let $p\ge5$ and $N\ge5p^4$; then $p^4\vartheta\le\pi/5$, so $p^3\vartheta\le0.126$, $p^2\vartheta\le0.0252$, $p\vartheta\le0.00503$, and $2\mu=N/6>0.83p^4>p^2+p$. Let $\kappa\equiv4\mu\pmod p$, a residue prime to $p$, and $k^*=(p-3)/2$. We use two more facts. \emph{(F4)} Write a height as $c=\lambda\sin(q\vartheta-\pi/6)$ with $\lvert q\vartheta\rvert<\pi/3$. The window of the base $-\mu+w$ is then exactly $2w-p0$, whose window $(\lambda\cos((2v+p)\vartheta),\lambda\cos((2v-p)\vartheta))$ contains the height; hence $00$, and $\varepsilon_k$ inside the side-1 part of the window of $-\mu+w_k$, $2w_k=Q_k+p$: an excursion (F5) with two passages $w_k-2\mu$ and $2\mu-v_k$, where $v_k\equiv-w_k\pmod p$ and $00$; from $\lambda\frac{\sqrt3}2\sin\varepsilon_0\vartheta\le\lambda(\sin(\varepsilon_0\vartheta-\frac\pi6)+\frac12)=\eta<\sqrt3\sin^2\alpha$ we get $\sin\varepsilon_0\vartheta<\frac4{\sqrt3}p^2\vartheta^2$, so $\varepsilon_0<2.32p^2\vartheta<0.06$. The entry is $7\mu-p/2$ and $c_0<0$, so the next base is $\equiv-5\mu-p/2\pmod p$, that is $-\mu+w$ with $2w\equiv-8\mu-p\equiv p-2\kappa\pmod{2p}$: this is the state $(0,0,\varepsilon_0)$, with $D_0\equiv\kappa$. \ref{it:top-b} Let the leaf be in a state $(k,Q,\varepsilon)$ with $\lvert Q\rvert\le2kp$, $\lvert\varepsilon\rvert<0.68$ and $D\equiv\kappa(k+1)^2$; $q=Q+\varepsilon$. If $D\ge1$: $q-(Q-2D)=2D+\varepsilon\in(1.32,\,2p-1.32)$, so the base is $-\mu+w$ with $2w=Q+p-2D$, and the leaf is more than $1.32$ above the bottom of its window; $\lvert w\rvert\le(\lvert Q\rvert+p)/2\le(2k+1)p/2\le(p-2)p/2$. The side-1 part of that window is empty if $w<0$, and otherwise has length $\sqrt3s\sin2w\vartheta\le2\sqrt3pw\vartheta^2$ in $c$, so by (MV) at most $4.71\,pw\vartheta\le2.36p^3\vartheta\le0.2966$ in $q$. So the leaf takes side~2: type (N). If $D=0$ and $\varepsilon<0$: $q$ lies in the window just below the common end $Q$, that of $-\mu+w-p$ with $2w=Q+p$, within $0.68$ of its top; the side-1 part of that window is at its bottom and at most $0.30$ long, and the window has length $2p\ge10$: side~2, type (B), and $\lvert w-p\rvert=\lvert Q-p\rvert/2\le(2k+1)p/2$. If $D=0$ and $\varepsilon>0$: $q$ lies in the window of $-\mu+w$, $2w=Q+p$, at $\varepsilon$ above its bottom. Either it is above the side-1 part (always so if $w<0$): side~2, type (N); or it is inside it: side~1, type (X), and $w>0$. ($\varepsilon=0$, or $\varepsilon$ at the top of the side-1 part, is a leaf through a singular point.) \emph{Side 2, from the base $-\mu+w'$ ($w'=w$ or $w-p$).} By (F4) with $\lvert q-2w'\rvert0$.} (F5) applies, as $\theta+\alpha\le p^2\vartheta+p\vartheta<\pi/2$ and $w+p\le(2k+1)p/2+p\le p^2/2<2\mu$: the passages are $w-2\mu$ and $2\mu-v$ with $v\equiv-w\pmod p$, $00.83p^4$; and $-\mu-p/2$ has absolute value above $p^2/2$ and lies farther than $p^2/2$ from $-2\mu$, as $\mu>0.41p^4$. With $r=E_0-\mu\in[0,\mu)$ this gives $n_1=1$, $n_{-1}=n_{-2}=0$ in \cref{prop:sixty-block}. \end{proof} \emph{The case $p=1$.} We carry this case through in full; it uses the top window, the test of \cref{prop:sixty-test} and nothing from the supplement but the proof of that test. \Cref{fig:sixty-star} shows it at $N=24$. \begin{proposition}\label{prop:sixty-p1} Let $p=1$ and $\mu\ge2$. In the direction of $AC$ every leaf of the top window is closed after two crossings, both by side~$1$: at $y_0=3\mu-\frac12$, with passage $x_0=2\mu-\frac12$, and at $y_1=-\mu+\frac12$, with passage $-x_0$. These leaves form a cylinder $\mathcal Z$ of height $\sqrt3\sin^2\alpha$ and circumference $2\sqrt3\,\ell\cos(\frac\pi3-\alpha)$, with the exponents $2\mu-1$ and $-2\mu$, and $\mathcal Z$ passes the test at $E=2\mu-1$. \end{proposition} \begin{proof} Here $\alpha=\vartheta\le\pi/24$. By the paragraph on the top window, a leaf of it at the height $\lambda\cos2\alpha+\eta$, $0<\eta<\Psi=\sqrt3\sin^2\alpha$, takes side~1 at $y_0$ with passage $x_0$, enters the star by the base $7\mu-\frac12$, and has the new height $c_1=\eta-\lambda/2$. As $\sin\alpha<\frac12$, $\Psi<\sqrt3/4=\lambda/2$, so $c_1<0$, and by \cref{lem:sixty-return}(b) the leaf leaves the star by the unique right base whose window contains $c_1$ (with $p=1$ the congruence there is no condition). By \eqref{eq:sx-window} and $2\mu\vartheta=\pi/6$, the window of $y_1$ is $(-\lambda/2,\lambda\sin(2\alpha-\frac\pi6))$, of length $\lambda(\sin(2\alpha-\frac\pi6)+\frac12)=\sqrt3\sin\alpha\cos(\frac\pi6-\alpha)$, which exceeds $\Psi$ as $\sin\alpha<\frac12<\cos(\frac\pi6-\alpha)$. The heights $c_1$ fill $(-\lambda/2,-\lambda/2+\Psi)$, so they lie in the window of $y_1$, and the leaf leaves by $y_1$. By (F1) at $\theta=2y_1\vartheta=\alpha-\frac\pi6$, the leaves that take side~1 at $y_1$ are those of the bottom part of its window of length $\sqrt3s\sin(\theta+\frac\pi6)=\sqrt3\sin^2\alpha=\Psi$, which lies between $0$ and the length of the window; this is exactly the set of the heights $c_1$. So every leaf takes side~1 at $y_1$, with passage $w=y_1-\mu=-x_0$, and enters the star by $y_1+4\mu=3\mu+\frac12$. As $2w\vartheta=\alpha-\frac\pi3$, \cref{lem:sixty-return}(a) and the identity $\sqrt3\ell\sin(\frac\pi3-\alpha)=\frac\lambda2+\lambda\cos2\alpha$ give the new height \[ c_1+\sqrt3\,\ell\sin(\tfrac\pi3-\alpha)=\eta-\tfrac\lambda2+\tfrac\lambda2+\lambda\cos2\alpha=\lambda\cos2\alpha+\eta . \] This is positive, so the leaf leaves the star by the right base whose window contains it, which is $y_0$, at its first height: it is closed. Every inequality used is strict for $0<\eta<\Psi$, so no leaf of the open top window meets a point over $A$ or $C$; the leaves through the ends of the window pass through the ends of the base $y_0$, which lie over $C$. So these leaves form a cylinder whose height is the length $\Psi$ of the top window. Its exponents are the passages minus $\frac12$, and its circumference is $\sqrt3\ell(\cos2x_0\vartheta+\cos2w\vartheta)=2\sqrt3\ell\cos(\frac\pi3-\alpha)$ by \cref{lem:sixty-return}. At $E=2\mu-1$: $n_1=1$, and $E-\mu=\mu-1$, $E-2\mu=-1$ and $E-3\mu=-\mu-1$ differ from $-2\mu$ as $\mu\ge2$, so $n_0=n_{-1}=n_{-2}=0$ and $n_1-n_{-1}=1>0=\sqrt3n_{-2}$. The exponent $-2\mu$ has $-2\mu-E=-4\mu+1\equiv1\cdot p\pmod{2\mu}$, so $J=1$, and $\mathfrak s\mid2(x-E)$ if and only if $\mathfrak s\mid2$, that is $\mathfrak s=2$; the exponent $E$ itself has $r=0$. So $\mathcal R=\emptyset$ unless $\mathfrak s=2$ and $\mathfrak d>1$; then $r\equiv p=1\pmod{\mathfrak d}$, $\mathcal R=\{1\}$, and the sum is $\prod_{q\mid\mathfrak d}2/(q-1)\le\frac12$, as every $q\ge5$. In each case the sum is less than $1$. \end{proof} At $N=12$ the same two crossings give the exponents $1$ and $-2$, and neither inequality of the block test holds. \begin{corollary}\label{cor:sixty-p1} \Cref{thm:sixty} holds for $p=1$. \end{corollary} \begin{proof} Let $N>58$ and $p=1$. As $3\nmid p$, $\Delta$ is in \ref{it:sx-a}, where $N\ge72$, or in \ref{it:sx-c}, where $N\ge60$. So $H_{12}\subset S$ by \cref{prop:sixty-H}\ref{it:sxH-a} or~\ref{it:sxH-c}. By \cref{prop:sixty-p1,prop:sixty-test} the cylinder $\mathcal Z$ passes, so every unit lies in $S$ by \cref{prop:sixty-one}, and the rest of \cref{thm:sixty} follows. \end{proof} \subsection{The plan in the four settings}\label{ssec:sixty-plan} Let $N>58$. By \cref{prop:sixty-H}, $H_{12}\subset S$ in every setting, except in \ref{it:sx-b} with $p=3$, where \cref{prop:sixty-H}\ref{it:sxH-b} needs $p\ge9$; there $N=3\cdot2^{a+2}\ge96$, and rule~\labelcref{it:rule}, applied to another pair of holomorphic units, gives a unit $v\equiv5\pmod8$, $v\equiv1\pmod3$ in $S$, which generates the units $\equiv1\pmod{12}$; so again $H_{12}\subset S$ (supplement, \S S5). By \cref{prop:sixty-one} it is then enough to find, at each $(p,N)$, one cylinder of the direction of $AB$ or $AC$ that passes. At one pair, $(9,60)$, there is none, and we bound the rank instead (\cref{prop:sixty-960}). As $\gcd(p,\mu)=1$, $\rho=c/e$ in lowest terms means $p=c$ and $\mu=e$; so $\rho$ is not $1$, $\frac87$, $\frac43$, $\frac85$, $\frac{12}7$ or $2$, as $\mu\ge5$ and $p$ is odd. \Cref{tab:sixty-plan} lists the cylinders used, by range of $\rho$. \begin{table}[ht] \centering\small \renewcommand{\arraystretch}{1.15} \setlength{\tabcolsep}{4pt} \begin{tabular}{@{}p{3.5cm}p{5cm}p{3.8cm}@{}} \toprule range & cylinder & it passes\\\midrule $p=1$ & $\mathcal Z$ of $AC$, two crossings (\cref{prop:sixty-p1}) & the test at $2\mu-1$\\ $p=3$ & $\mathcal Z_3$ of $AC$, four crossings (\cref{prop:sixty-p3}) & the test at $2\mu-2$; at $N=60$, $84$ by an explicit function\\ $2<\rho<4$ & $\mathcal U$ of $AC$, two crossings (\cref{prop:sixty-U}) & the test at $3\mu-\frac{p+1}2$ (\cref{lem:sixty-blockU})\\ $(1,\frac{13}{10}]\cup(\frac43,2)$ & one of $17$ types with intervals (\cref{prop:sixty-types}) & the test, outside $35$ pairs\\ $\frac{13}{10}<\rho<\frac43$ & $\mathcal V$ of $AB$, four crossings (\cref{prop:sixty-V}) & the test at $5\mu-3p$\\ $\rho<1$, $N\ge5p^4$ & through the top window (\cref{prop:sixty-top}) & by \cref{cor:sixty-top} and supplement, \S S5\\ $\rho<1$, $N<5p^4$,\newline $\frac1258$, by range of $\rho=p/\mu$; $t=2\mu/p$, $K=\lfloor t\rfloor$, $f=t-K$, and $\delta_K=4\mu-(2K+1)p$.}\label{tab:sixty-plan} \end{table} The statements follow; their proofs are in the supplement (\S S5). The first three are statements about the star at the real number $\rho$ (that a sequence of crossings is followed by an interval of heights) together with a count of exponents, as in \cref{prop:sixty-p1}. \begin{proposition}\label{prop:sixty-p3} Let $p=3$, so that $9\nmid N$, and let $\mu\ge5$. In the direction of $AC$ the leaves of the top window form one cylinder $\mathcal Z_3$ with four crossings, by the sides $1$, $2$, $2$, $1$, with the exponents $2\mu-2$, $0$, $-1$ and $-2\mu+1$. It passes the test at $E=2\mu-2$ unless $N\in\{60,84\}$, and at $N=60$ and $N=84$ it passes. \end{proposition} \needspace{4\baselineskip} \begin{proposition}\label{prop:sixty-V} Let $\frac{13}{10}<\rho<\frac43$, $\delta=4\mu-3p$ and $\lambda=\sqrt3/2$. In the direction of $AB$ the leaves that leave the star through the right base $p$ at a height $c$ with \[ \lambda\sin7\alpha58$ and $\rho\in(1,\frac{13}{10}]\cup(\frac43,4)$. Then some cylinder of the direction of $AB$ or $AC$ passes, unless $(p,N)=(9,60)$. More precisely, the cylinder of some type whose interval contains $\rho$ passes the test, unless $(p,N)$ is one of the following $35$ pairs: \begin{itemize}[leftmargin=*] \item in \ref{it:sx-a}: $(7,72)$, $(13,96)$; in \ref{it:sx-b}: $(9,96)$; \item in \ref{it:sx-c}: $(7,60)$, $(11,84)$, $(13,84)$, $(11,120)$, $(13,120)$, $(17,120)$, $(19,120)$, $(17,132)$, $(19,132)$, $(17,168)$, $(19,180)$, $(23,240)$, $(37,252)$, $(25,264)$, $(37,276)$, $(29,312)$, $(37,420)$, $(59,420)$, $(61,420)$, $(71,660)$, $(97,660)$, $(113,780)$, $(79,840)$; \item in \ref{it:sx-d}: $(9,60)$, $(9,84)$, $(15,132)$, $(21,132)$, $(33,228)$, $(45,336)$, $(39,420)$, $(57,420)$, $(87,660)$. \end{itemize} At $31$ of these pairs we find that the cylinder of a type passes. At the following three we find another cylinder that passes, with the exponents \begin{itemize}[leftmargin=*] \item $(13,96)$, of $AC$, $16$ crossings: $-13,-10,-7,-7,-6,-6,-1,-1,0,0,5,5,6,6,9,12$; the test at $E=12$; \item $(13,120)$, of $AC$, $8$ crossings: $-19,-9,-4,-3,2,3,8,18$; at $E=18$, with a choice of the measure at $q=5$; \item $(23,240)$, of $AB$, $9$ crossings: $-34,-23,-22,-12,0,12,22,23,34$; the test at $E=23$, with $\mathcal R=\emptyset$. \end{itemize} At $(9,60)$ no cylinder of $AB$ or $AC$ passes. \end{proposition} The point $\rho=\frac{13}{10}$ is attained only at $(13,120)$, and there the cylinder $\mathcal V$, which still exists, gives the sum $\frac32$ in \cref{prop:sixty-test}; so \cref{prop:sixty-V} is stated on the open interval, and \cref{prop:sixty-types} on the closed one. \begin{proposition}\label{prop:sixty-low} Let $p\ge5$, $\rho<1$ and $N<5p^4$, and let $t=2\mu/p$, $K=\lfloor t\rfloor$ and $f=t-K$. If $f\notin[\frac12,\frac{33}{64})$, then some cylinder of the direction of $AB$ or $AC$ passes. \end{proposition} Here $K\ge2$, and the cylinders belong to families of types whose itineraries depend linearly on $K$, so that whether a leaf follows one is a statement about $(\alpha,f)$ alone. \begin{proposition}\label{prop:sixty-960} \Cref{thm:sixty} holds for $\Delta=\tri9{20}{31}{60}$. \end{proposition} \begin{proof} The zeros of $\omega$ are the three points over $A$, of cone angle $6\pi$, and the point over $C$; the points over $B$ are regular. So the relative characters are $20$ and $40$, both even, and $V\cap Z=0$, as $V\subset E^-$ and by \eqref{eq:Eminus}. We find that the closure of $\{1\}$ is the set $S_+$ of \cref{prop:Splus}, and that among the $20$ cylinders of the direction of $AC$ there are ten, no two of them $S_+$-equivalent. As $S_+\subset S$, \cref{lem:cyl}\labelcref{it:cyl-shear} shows that no two of them are $\mathcal M$-parallel, and \cref{lem:cyl}\labelcref{it:cyl-rank} gives $\operatorname{rank}\mathcal M\ge10$, so $\lvert S\rvert\ge20$ by \eqref{eq:S}. An odd $a$ lies in $F$ if and only if $3\nmid a$ ($9a\equiv0$ needs $20\mid a$, $20a\equiv0$ needs $3\mid a$, and $31a\equiv0$ needs $60\mid a$), so $F$ is the set of the $20$ residues prime to $6$, and $S=F$. \end{proof} \begin{proof}[Proof of \cref{thm:sixty}] By the remarks after the statement it is enough that every unit lies in $S$. The case $(p,N)=(9,60)$ is \cref{prop:sixty-960}; in every other case $H_{12}\subset S$, as said at the start of this subsection, and by \cref{prop:sixty-one} it is enough that one cylinder of the direction of $AB$ or $AC$ passes. If $p=1$, this is \cref{prop:sixty-p1}, and if $p=3$, \cref{prop:sixty-p3}. Let $p\ge5$. If $\rho\in(1,\frac{13}{10}]\cup(\frac43,4)$, apply \cref{prop:sixty-types}, and if $\frac{13}{10}<\rho<\frac43$, \cref{prop:sixty-V}; as $\rho\ne1,\frac43$, it remains that $\rho<1$, and then $K\ge2$, as $t=2/\rho>2$. If $N\ge5p^4$, some leaf of the top window meets no point over $A$ or $C$, as these points are the ends of countably many leaves, each of which meets the top window in a countable set; its cylinder passes through the top window, and it passes by \cref{cor:sixty-top} in \ref{it:sx-a} and by \S S5 of the supplement in the other settings. Let $N<5p^4$. As $p\ge5$ and $\gcd(p,4\mu)=1$, $f\ne\frac12$; if $\frac1230$, a contradiction. \end{proof} We find \ref{it:s400-a} by iterating the three rules from $\{1\}$ until nothing is added. For \ref{it:s400-b} the closed sets containing $1$ are listed by closure: starting from the closure of $\{1\}$, each closed set other than $F$ found so far is enlarged by one element outside it and closed again; every closed $C\ni1$ is reached, since adding the elements of $C$ one at a time never leaves $C$. For \ref{it:s400-c} each $H_m$ is tested against \cref{lem:P}. The exclusions of $\Gamma_1$, $\Gamma_2$, $\Gamma_4$ and of a numerator $2N/3$ are needed: some $H_m$ with $\{\pm1\}\ne H_m\ne G$ is closed on each of the $172$ triangles $\Gamma_1$, $\Gamma_2$, $\Gamma_4$ in this range, where it is $H_{N/2}$, and on $95$ triangles with a numerator $2N/3$. \subsection{Sixteen triangles with \texorpdfstring{$N\le2{,}000$}{N<=2,000}}\label{ssec:sixteen} \begin{proposition}\label{prop:sixteen} The sixteen triangles $\mathcal B_3=\tri3{2N/5-3}{3N/5}N$ with \[ N\in\{490,500,640,770,800,910,1000,1190,1250,1280,1330,1430,1600,1870,2000\} \] and $\mathcal B_5=\tri5{219}{280}{504}$ satisfy \textup{(N$'$)}. \end{proposition} \begin{proof} Let $\Delta$ be one of them, and suppose that a closed set $C\ni1$ has a unit part $H\ne\{\pm1\}$ of conductor $N'$. Then $C=H$ by \cref{lem:conductor}, $H$ satisfies (P) by \cref{lem:P}, and $H$ contains $U_0=\langle-1,h\rangle$ for a unit $h\in H\setminus\{\pm1\}$. For each unit $h\ne\pm1$ we list, for every $a'\in U_0=\langle-1,h\rangle$, the pairs on the diagonal $1-a'$ with a unit member. If one of them has exactly one unit member, (P) fails for every $H\supset U_0$. Otherwise (P) puts the ratios $b/x$ of these pairs into $H$, and with $U_0$ they generate a group $U_1\subset H$; the conductor of $H$ divides that of $U_1$, which divides $N'$, so if the conductor of $U_1$ is not $N'$, neither is that of $H$. We find that every $h$ is settled in this way: at $N=504$ and at the seven $N\equiv2\pmod4$ other than $1{,}250$ by a pair with one unit member, and at the other eight $N$ by the conductor of $U_1$. So no such $C$ exists. \end{proof} \subsection{Proof of the main theorem}\label{ssec:proof} \begin{proof}[Proof of \cref{thm:chars}] Let $N>58$ and let $\Delta$ be scalene and not in \eqref{eq:list}. Then $\operatorname{rank}\mathcal M\ge2$ \cite[Theorem~1.1]{P23}, so $\lvert S\rvert\ge4$, and $S$ is a closed set containing $1$ (\cref{ssec:notation}). We take the cases of \cref{ssec:steps} in turn; in each, $\Delta$ meets none of the earlier hypotheses. \emph{(1) $N$ is prime.} The orbit closure is the ambient locus \cite[Theorem~1.2]{P23}, a connected component of a stratum, whose tangent space is $H^1(X,\Sigma;\C)$. So $p(V)=H^1(X;\C)$, and $S=F$ by \eqref{eq:S}. \emph{(2) A numerator $2N/3$.} \Cref{thm:twothirds}, as $N>48$. \emph{(3) $12\mid N$ and a numerator $N/3$.} The other two numerators add up to $2N/3$; let $p$ be the smaller. Then $\Delta=\tri p{N/3}{2N/3-p}N$ with $1\le p400$.} Now $N$ is composite and not $2^j$, $2P$ or $3P$, and $\Delta$ has no numerator $2N/3$, is not one of the three triangles of case~(4), and has no numerator $N/3$ if $12\mid N$. We check the three conditions of \cref{cor:reduction}. (N$'$): if $\Delta$ has a witness, \cref{thm:witness} gives (N$'$). If not, $\Delta$ is one of the triangles of \cref{prop:nowitness}, and as it has no numerator $2N/3$ and is not $\Gamma_1$, $\Gamma_2$ or $\Gamma_4$, it is one of the following. \begin{itemize}[leftmargin=*] \item $\mathcal A_d$ with $n=N/d\ge5$ odd, so that $d$ and $N$ have the same power of $2$. If $d=1$, $N$ is odd, and $S=F$ by \cref{thm:A1-dense}. If $N$ is odd and $d\ge3$, or $4\mid N$, or $N\equiv2\pmod4$ and $d\ge6$, then $S=F$ by \cref{thm:Ad-dense}. If $d=2$, then $N\equiv2\pmod4$, $\nu=N/2$ is odd and composite, as $N\ne2P$, and \cref{thm:doubling} gives (N$'$), as remarked after it. \item $\Lambda$, with $\nu$ odd and composite: \cref{thm:B-shape}. \item $\Theta_0$ with $4\mid N$: \cref{thm:s12} if $3\nmid N$, and \cref{thm:theta}\ref{it:th-0} if $3\mid N$, as then $12\mid N$. \item $\Theta_1$, $\Theta_2$ or $\Theta_3$ with $N\equiv4\pmod8$: \cref{thm:theta}\ref{it:th-12} and~\ref{it:th-3}, as $N/4>100$. \item $\mathcal B_{k,d}$: \cref{thm:B-family}, and \cref{prop:sixteen} on the sixteen triangles named there. \end{itemize} In each case (N$'$) holds or $S=F$. (D): if $4\mid N$, then $\Delta$ has no numerator $N/3$, since such a numerator needs $3\mid N$ and so $12\mid N$; and $N$ is not a power of $2$; so \cref{thm:D2} applies. By \cref{lem:steps}, a conductor $c$ with $160$ is composite, gives (D) at the others. (12): if $12\mid N$, $\Delta$ has no numerator $N/3$ or $2N/3$, and \cref{prop:twelve} gives (12); otherwise (12) holds by definition. So $S=F$ by \cref{cor:reduction}. \end{proof} \begin{proof}[Proof of \cref{thm:main}] For $N\le58$ this is \cref{thm:upto58}. For $N>58$, $\Delta\ne\tri123{6}$, and \cref{thm:chars} with \cref{cor:ambient} gives $\mathcal M=\mathcal L$. \end{proof} \section{Billiards in the triangle}\label{sec:billiards} Two points $p$ and $p'$ of $\Delta$, not necessarily distinct, are \emph{finitely blocked} if a finite set of points other than $p$ and $p'$ meets every billiard path from $p$ to $p'$, a path being allowed to run along a side but not through a vertex \cite[\S1 and Remark~3.14]{ApisaWrightMarked}. They are finitely blocked only if every point of $X$ over $p$ is finitely blocked from every point of $X$ over $p'$, with straight segments in place of billiard paths (the blocking set on $X$ is the preimage of the one on $\Delta$ together with the points over vertices other than $p$ and $p'$) \cite[proof of Theorem~3.10]{ApisaWrightMarked}, \cite[\S9]{Apisa}. A point of $X$ other than a zero is \emph{periodic} if marking it does not raise the dimension of the orbit closure of $(X,\omega)$ \cite[\S1]{ApisaMarked}. \begin{corollary}\label{cor:blocking} Let $\Delta$ be a scalene rational triangle that is not in \eqref{eq:list}, $\Delta\ne\tri123{6}$. If $N$ is odd, $X$ has no periodic points; if $N$ is even, its periodic points are the fixed points of $\iota$ off $\Sigma$, which lie over vertices. If two points of $\Delta$, not necessarily distinct, are finitely blocked, they are the same vertex. \end{corollary} For the right triangles among these Apisa proves more: no two points, equal or not, are finitely blocked \cite[Theorem~1.3]{Apisa}. For prime $N$ and $\Delta\ne\tri124{7}$ the last assertion is Apisa and Wright's \cite[Theorem~3.12 and Remark~3.14]{ApisaWrightMarked}, and for every rational polygon that is not Gaussian, Eisenstein or rectangle-tiled and has an angle that is not a multiple of $\pi/2$ they show that only finitely many pairs of points are finitely blocked \cite[Theorem~1.1(3)]{ApisaWrightMarked}. \begin{proof} As $\Delta$ is scalene and $\Delta\ne\tri123{6}$, $N\ge7$; so $X$ is not a translation cover of a torus \cite[proof of Proposition~3.11]{ApisaWrightMarked}, and $\mathcal M=\mathcal L$ by \cref{thm:main}. Let $(Y,q)=(X,\omega)$ and $\mathcal S=\mathcal L$ if $N$ is odd, and $(Y,q)=(X/\iota,q)$ and $\mathcal S=\mathcal Q$ (\cref{ssec:ambient}) if $N$ is even. As $\iota$ is a power of $T$, the map from $X$ to $\Delta$ factors through $Y$; and $T$ acts freely on the points of $X$ that are not over a vertex \cite[\S2.1]{P23}. The component $\mathcal S$ is not hyperelliptic. For odd $N$, Mirzakhani and Wright's Lemma~6.7 \cite{MirzakhaniWright} excludes it, as after \cref{thm:chars}. For even $N$, an automorphism $\alpha$ of $Y$ with $\alpha^*q=q$ lifts to an automorphism $\tilde\alpha$ of $X$ with $\tilde\alpha^*\omega=\pm\omega$, which is $1$ or $\iota$ \cite[Theorem~6.2]{P23}, so $\alpha$ is the identity; but every surface in a hyperelliptic component has an involution that preserves its quadratic differential \cite[Definition~1 and \S4.1]{LanneauHyp}. This is the sense of Apisa and Wright, whose hyperelliptic components are those in which every surface covers a surface of genus zero by the quotient by an involution preserving its quadratic differential \cite[\S1, Lemma~4.5 and \S5]{ApisaWrightMarked}. The orbit of $(Y,q)$ is dense in a neighborhood $W$ of $(Y,q)$ in $\mathcal S$. For odd $N$ this is \cref{thm:main}, with $W=\mathcal S$. For even $N$, Lanneau's chart identifies a neighborhood $W$ of $(Y,q)$, by the double-cover map, with $E^-\cap U$, which is $\mathcal M\cap U$ as $\mathcal M=\mathcal L$ (\cref{ssec:ambient} and the proof of \cref{lem:fulldim}). If $g(X,\omega)\in U$ with $g\in\GL(2,\R)$, the point of $W$ over it is its quotient by an involution that negates its form; that involution is affine with derivative $-I$ for the flat structure of $\omega$, as $g(-I)g^{-1}=-I$, so it is $\iota$ \cite[Theorem~6.2]{P23}, and the point is $g(Y,q)$. As the orbit of $(X,\omega)$ is dense in $\mathcal M$, the orbit of $(Y,q)$ is dense in $W$. The orbit closure of $(Y,q)$ contains $W$, so it is $\mathcal S$; if $(Y,q)$ had a non-bijective half-translation covering of some degree, every surface of $\mathcal S$ would, as surfaces with such a covering form a closed invariant set, contradicting \cite[Lemma~4.5]{ApisaWrightMarked}. Hence every half-translation covering of $(Y,q)$ is bijective. The covering $X\to Y$ is a factor of Apisa and Wright's minimal covering $\pi_{Q_{\min}}$ of $X$ onto a half-translation surface \cite[Lemma~3.3]{ApisaWrightMarked}, so $\pi_{Q_{\min}}$ is $X\to Y$ followed by a bijection, and two points of $X$ have the same image under $\pi_{Q_{\min}}$ if and only if they have the same image in $Y$. If $N$ is odd, $X$ has genus at least two (\cref{ssec:notation}) and dense orbit in the component $\mathcal S$, which is not hyperelliptic, so it has no periodic points \cite[Theorem~1.1]{ApisaMarked}. If $N$ is even, $\operatorname{rank}\mathcal L=\lvert F\rvert/2\ge\varphi(N)/2\ge2$ (\cref{ssec:ambient}), as every unit lies in $F$ (\cref{ssec:notation}); so $\mathcal Q$ is not $\mathcal Q(-1^4)$, $\mathcal Q(2,-1^2)$ or $\mathcal Q(2^2)$ \cite[Corollary~4.3]{ApisaWrightMarked}, and the periodic points of $X$ are fixed points of $\iota$ off $\Sigma$ \cite[Theorem~1.4]{ApisaWrightMarked}, which lie over vertices as $\iota=T^{N/2}$; conversely, a fixed point of $\iota$ off $\Sigma$ is periodic, as its period relative to a zero $s$ is half the period of a path from $s$ to $\iota s$. Let $p,p'\in\Delta$ be finitely blocked. Suppose that $p$ is not a vertex, and let $x\in X$ lie over $p$, so that $x$ is neither a zero nor a periodic point. Let $x'=Tx$ if $p'=p$, and let $x'$ be any point over $p'$ otherwise. Then $x$ and $x'$ have different images in $Y$; for $p'=p$ because $Tx\notin\{x,\iota x\}$, as $T$ acts freely on the points over $p$ and $N\ge7$. As $x$ and $x'$ are finitely blocked, this contradicts \cite[Theorem~3.6]{ApisaWrightMarked}. So $p$, and likewise $p'$, is a vertex. Suppose that $p\ne p'$, and let $x$ and $x'$ be the ends of a lift to $X$ of the side from $p$ to $p'$; its interior lies over the interior of the side, so it meets no point over a vertex. As $x$ and $x'$ have different images in $Y$, they are periodic points or zeros \cite[Theorem~3.6]{ApisaWrightMarked}, so their positions are locally determined by the unmarked surface, and so are those of the points of a minimal finite set $B$ that blocks them \cite[Lemma~3.8]{ApisaWrightMarked}. Marking $B$ therefore does not raise the dimension of the orbit closure, so the points of $B$ are periodic points or zeros, and lie over vertices. The lift avoids $B$, a contradiction. So $p=p'$ is a vertex. \end{proof} \section*{Declarations}\phantomsection\label{sec:declarations} \subsection*{Use of AI} This paper and its results were produced by an AI research system that the author designed, built and directs, running on Anthropic's Claude Fable~5.2 in Claude Code and OpenAI's GPT-6.2 Astra in Codex. The author chooses the problems and prioritizes the work. Separate AI agents checked each result, and a second program confirmed the computations the proofs use, with any exceptions listed in the public deposit. The system also searched the literature and checked the citations against reliable sources. The author read the paper, reran the computations from the deposit and takes full responsibility for all of the paper's contents. \subsection*{Data availability} The programs and data used in this paper, with instructions for rerunning them, are deposited at Zenodo~\cite{Record}. \bibliographystyle{amsplain} \bibliography{refs} \end{document}