\documentclass[12pt]{amsart} \usepackage{fullpage,url,amssymb,enumerate,colonequals} \usepackage{mathrsfs} \usepackage[section]{placeins} \usepackage{MnSymbol} \usepackage{listings} \usepackage{enumitem} % for the lists (added by Nicolas) \newcommand\litem[1]{\item{\bfseries #1.\enspace}} \usepackage{extarrows} \usepackage{lscape} \usepackage[all,cmtip]{xy} \usepackage{graphicx} % Required for inserting images \usepackage{todonotes} \usepackage[indLines=true, noEnd=false]{algpseudocodex} % https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf \usepackage[OT2,T1]{fontenc} \usepackage{color} \usepackage[ colorlinks, citecolor=darkgreen, backref, pdfauthor={Nuno Freitas and Diana Mocanu}, ]{hyperref} \usepackage{comment} \usepackage{multirow} \usepackage{mathtools} % code to use package xr \makeatletter \newcommand*{\addFileDependency}[1]{% argument=file name and extension \typeout{(#1)} \@addtofilelist{#1} \IfFileExists{#1}{}{\typeout{No file #1.}} } \makeatother \newcommand*{\myexternaldocument}[1]{% \externaldocument{#1}% \addFileDependency{#1.tex}% \addFileDependency{#1.aux}% } \newcommand{\defi}[1]{\textsf{#1}} % for defined terms \newcommand{\dashedarrow}{\dashrightarrow} % Characters \newcommand{\Aff}{\mathbb{A}} \newcommand{\complex}{\mathbb{C}} \newcommand{\F}{\mathbb{F}} \newcommand{\Fbar}{{\overline{\F}}} \newcommand{\G}{\mathbb{G}} \newcommand{\Gm}{\mathbb{G}_{\mathrm{m}}} \newcommand{\bbH}{\mathbb{H}} \newcommand{\PP}{\mathbb{P}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\R}{\mathbb{R}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Qbar}{{\overline{\Q}}} \newcommand{\Zhat}{{\hat{\Z}}} \newcommand{\Ebar}{{\overline{E}}} \newcommand{\Zbar}{{\overline{\Z}}} \newcommand{\kbar}{{\overline{k}}} \newcommand{\Kbar}{{\overline{K}}} \newcommand{\rhobar}{{\overline{\rho}}} \newcommand{\ksep}{{k^{\operatorname{sep}}}} \newcommand{\Frp}{{\mathfrak p}} \newcommand{\Adeles}{\mathbf{A}} \newcommand{\kk}{\mathbf{k}} \newcommand{\mm}{\mathfrak{m}} \newcommand{\eps}{\varepsilon} \newcommand{\uom}{\underline{\omega}} % bold characters \newcommand{\boldf}{\mathbf{f}} \newcommand{\boldl}{\ensuremath{\boldsymbol\ell}} \newcommand{\boldL}{\mathbf{L}} \newcommand{\boldr}{\mathbf{r}} \newcommand{\boldw}{\mathbf{w}} \newcommand{\boldzero}{\mathbf{0}} \newcommand{\boldomega}{\ensuremath{\boldsymbol\omega}} % mathcal characters \newcommand{\calA}{\mathcal{A}} \newcommand{\calB}{\mathcal{B}} \newcommand{\calC}{\mathcal{C}} \newcommand{\calD}{\mathcal{D}} \newcommand{\calE}{\mathcal{E}} \newcommand{\calF}{\mathcal{F}} \newcommand{\calG}{\mathcal{G}} \newcommand{\calH}{\mathcal{H}} \newcommand{\calI}{\mathcal{I}} \newcommand{\calJ}{\mathcal{J}} \newcommand{\calK}{\mathcal{K}} \newcommand{\calL}{\mathcal{L}} \newcommand{\calM}{\mathcal{M}} \newcommand{\calN}{\mathcal{N}} \newcommand{\calO}{\mathcal{O}} \newcommand{\calP}{\mathcal{P}} \newcommand{\calQ}{\mathcal{Q}} \newcommand{\calR}{\mathcal{R}} \newcommand{\calS}{\mathcal{S}} \newcommand{\calT}{\mathcal{T}} \newcommand{\calU}{\mathcal{U}} \newcommand{\calV}{\mathcal{V}} \newcommand{\calW}{\mathcal{W}} \newcommand{\calX}{\mathcal{X}} \newcommand{\calY}{\mathcal{Y}} \newcommand{\calZ}{\mathcal{Z}} %mathfrak characters \newcommand{\Fp}{\mathfrak{p}} \newcommand{\Fq}{\mathfrak{q}} \newcommand{\Ff}{\mathfrak{f}} \newcommand{\n}{\mathfrak{n}} \newcommand{\fp}{\mathfrak p} \newcommand{\fq}{\mathfrak q} \newcommand{\CC}{\mathscr{C}} \newcommand{\FF}{\mathscr{F}} \newcommand{\GG}{\mathscr{G}} \newcommand{\II}{\mathscr{I}} \newcommand{\JJ}{\mathscr{J}} \newcommand{\LL}{\mathscr{L}} \newcommand{\NN}{\mathscr{N}} \newcommand{\OO}{\mathscr{O}} \newcommand{\WW}{\mathscr{W}} \newcommand{\XX}{\mathscr{X}} \newcommand{\ZZ}{\mathscr{Z}} % Math operators \DeclareMathOperator{\Ann}{Ann} \DeclareMathOperator{\Aut}{Aut} \DeclareMathOperator{\Br}{Br} \DeclareMathOperator{\cd}{cd} \DeclareMathOperator{\Char}{char} \DeclareMathOperator{\Cl}{Cl} \DeclareMathOperator{\codim}{codim} \DeclareMathOperator{\coker}{coker} \DeclareMathOperator{\Cor}{Cor} \DeclareMathOperator{\divv}{div} \DeclareMathOperator{\Div}{Div} \DeclareMathOperator{\Det}{Det} \DeclareMathOperator{\Dic}{Dic} \DeclareMathOperator{\End}{End} \newcommand{\END}{{\EE}\!nd} \DeclareMathOperator{\Eq}{Eq} \DeclareMathOperator{\Ext}{Ext} \newcommand{\EXT}{{\E}\!xt} \DeclareMathOperator{\Fix}{\tt Fix} \DeclareMathOperator{\Frac}{Frac} \DeclareMathOperator{\Frob}{Frob} \DeclareMathOperator{\Gal}{Gal} \DeclareMathOperator{\Gr}{Gr} \DeclareMathOperator{\Hom}{Hom} \newcommand{\HOM}{{\HH}\!om} \DeclareMathOperator{\im}{im} \DeclareMathOperator{\Ind}{Ind} \DeclareMathOperator{\inv}{inv} \DeclareMathOperator{\Jac}{Jac} \DeclareMathOperator{\lcm}{lcm} \DeclareMathOperator{\Lie}{Lie} \DeclareMathOperator{\Log}{Log} \DeclareMathOperator{\MakeDecentModel}{\tt MakeDecentModel} \DeclareMathOperator{\nil}{nil} \DeclareMathOperator{\Norm}{Norm} \DeclareMathOperator{\NP}{NP} \DeclareMathOperator{\Num}{Num} \DeclareMathOperator{\odd}{odd} \DeclareMathOperator{\ord}{ord} \DeclareMathOperator{\Pic}{Pic} \DeclareMathOperator{\PIC}{\bf Pic} \DeclareMathOperator{\Prob}{\bf P} \DeclareMathOperator{\Proj}{Proj} \DeclareMathOperator{\PROJ}{\bf Proj} \DeclareMathOperator{\rank}{rank} \DeclareMathOperator{\rad}{Rad} \DeclareMathOperator{\re}{Re} \DeclareMathOperator{\reg}{reg} \DeclareMathOperator{\res}{res} \DeclareMathOperator{\Res}{Res} \DeclareMathOperator{\rk}{rk} \DeclareMathOperator{\scd}{scd} \DeclareMathOperator{\Sel}{Sel} \DeclareMathOperator{\Sp}{Sp} \DeclareMathOperator{\Spec}{Spec} \DeclareMathOperator{\SPEC}{\bf Spec} \DeclareMathOperator{\Spf}{Spf} \DeclareMathOperator{\supp}{supp} \DeclareMathOperator{\Sym}{Sym} \DeclareMathOperator{\tr}{tr} \DeclareMathOperator{\Tr}{Tr} \DeclareMathOperator{\Trace}{Trace} \DeclareMathOperator{\trdeg}{tr deg} % Categories \newcommand{\Ab}{\operatorname{\bf Ab}} \newcommand{\Groups}{\operatorname{\bf Groups}} \newcommand{\Schemes}{\operatorname{\bf Schemes}} \newcommand{\Sets}{\operatorname{\bf Sets}} % Text subscripts, superscripts \newcommand{\ab}{{\operatorname{ab}}} \newcommand{\an}{{\operatorname{an}}} \newcommand{\Az}{{\operatorname{Az}}} \newcommand{\CS}{\operatorname{\bf CS}} \newcommand{\et}{{\operatorname{et}}} \newcommand{\ET}{{\operatorname{\bf \acute{E}t}}} \newcommand{\Fl}{{\operatorname{f\textcompwordmark l}}} \newcommand{\good}{{\operatorname{good}}} \newcommand{\op}{{\operatorname{op}}} \newcommand{\perf}{{\operatorname{perf}}} \newcommand{\red}{{\operatorname{red}}} \newcommand{\regular}{{\operatorname{regular}}} \newcommand{\sing}{{\operatorname{sing}}} \newcommand{\smooth}{{\operatorname{smooth}}} \newcommand{\tH}{{\operatorname{th}}} \newcommand{\tors}{{\operatorname{tors}}} \newcommand{\nontors}{{\operatorname{non-tors}}} \newcommand{\unr}{{\operatorname{unr}}} \newcommand{\nr}{{\operatorname{nr}}} \newcommand{\Zar}{{\operatorname{Zar}}} \newcommand{\ns}{{\operatorname{ns}}} \renewcommand{\sp}{{\operatorname{sp}}} \newcommand{\vv}{\upsilon} \newcommand{\Cech}{\v{C}ech} \newcommand{\E}{{\operatorname{\bf E}}} \newcommand{\GalQ}{{\Gal}(\Qbar/\Q)} \newcommand{\GL}{\operatorname{GL}} \newcommand{\HH}{{\operatorname{H}}} \newcommand{\HHcech}{{\check{\HH}}} \newcommand{\HHat}{{\hat{\HH}}} \newcommand{\M}{\operatorname{M}} \newcommand{\PGL}{\operatorname{PGL}} \newcommand{\PSL}{\operatorname{PSL}} \newcommand{\SL}{\operatorname{SL}} \newcommand{\WD}{\operatorname{WD}} \newcommand{\del}{\partial} \newcommand{\directsum}{\oplus} % binary direct sum \newcommand{\Directsum}{\bigoplus} % direct sum of a collection \newcommand{\injects}{\hookrightarrow} \newcommand{\intersect}{\cap} % binary intersection \newcommand{\Intersection}{\bigcap} % intersection of a collection \newcommand{\isom}{\simeq} \newcommand{\notdiv}{\nmid} \newcommand{\surjects}{\twoheadrightarrow} \newcommand{\tensor}{\otimes} % binary tensor product \newcommand{\Tensor}{\bigotimes} % tensor product of a collection \newcommand{\union}{\cup} % binary union \newcommand{\Union}{\bigcup} % union of a collection \newcommand{\Algorithm}{\textbf{Algorithm}\ } \newcommand{\Subroutine}{\textbf{Subroutine}\ } \newcommand{\isomto}{\overset{\sim}{\rightarrow}} \newcommand{\isomfrom}{\overset{\sim}{\leftarrow}} \newcommand{\leftexp}[2]{{\vphantom{#2}}^{#1}{#2}} \newcommand{\rholog}{\rho \log} \newcommand{\sigmaiota}{{\leftexp{\sigma}{\iota}}} \newcommand{\sigmaphi}{{\leftexp{\sigma}{\phi}}} \newcommand{\sigmatauphi}{{\leftexp{\sigma\tau}{\phi}}} \newcommand{\tauphi}{{\leftexp{\tau}{\phi}}} \newcommand{\To}{\longrightarrow} \newcommand{\Floor}[1]{\left\lfloor #1 \right\rfloor} \numberwithin{equation}{section} \newtheorem{theorem}[equation]{Theorem} \newtheorem{lemma}[equation]{Lemma} \newtheorem{corollary}[equation]{Corollary} \newtheorem{proposition}[equation]{Proposition} \newtheorem{example}[equation]{Example} \theoremstyle{definition} \newtheorem{definition}[equation]{Definition} \newtheorem{conjecture}[equation]{Conjecture} \theoremstyle{remark} \newtheorem{remark}[equation]{Remark} \definecolor{darkgreen}{rgb}{0,0.5,0} \setlength{\parindent}{0mm} \setlength{\parskip}{1ex plus 0.5ex} \setcounter{tocdepth}{3} \DeclareRobustCommand\longtwoheadrightarrow {\relbar\joinrel\twoheadrightarrow} \DeclareMathOperator{\BC}{BC} % The following is to avoid a bug with the command \contrib \makeatletter \let\@wraptoccontribs\wraptoccontribs \makeatother \begin{document} \title{A remark on the equation $x^r + y^r = z^p$ with even $z$} \author{Nuno Freitas} \address{ Instituto de Ciencias Matem\'aticas, CSIC, Calle Nicol\'as Cabrera 13--15, 28049 Madrid, Spain} \email{nuno.freitas@icmat.es} \author{Diana Mocanu} \address{ Max Planck Institute for Mathematics, Vivatsgasse 7, 53111 Bonn, Germany} \email{d.mocanu@mpim-bonn.mpg.de} \keywords{Generalized Fermat equation, modular method, circular units, narrow class numbers} \subjclass[2020]{Primary 11D41; Secondary 11R18, 11R29} \begin{abstract} We study the asymptotic generalized Fermat equation $x^r+y^r=z^p$ with $r\geq5$ a fixed prime and $z$ even. When $2$ is a primitive root modulo $r$, we use Davis's signature formula to express the oddness of the narrow class number of the maximal real subfield of~$\Q(\zeta_r)$ in terms of a greatest common divisor of polynomials over $\F_2$. This gives a computable criterion for the nonexistence of non-trivial primitive solutions with $2\mid z$ for all sufficiently large primes $p$. We verify the criterion for exactly $3160$ primes $5\leq r\leq100000$. \end{abstract} \raggedbottom \maketitle \section{Introduction} We consider the generalized Fermat equation \begin{equation}\label{eq:fermat} x^r+y^r=z^p, \end{equation} where $r\geq5$ is a fixed prime and $p$ is a prime allowed to vary. A solution $(a,b,c)\in\Z^3$ is called \emph{non-trivial} if $abc\neq0$ and \emph{primitive} if $\gcd(a,b,c)=1$. We are interested in non-trivial primitive solutions with $2\mid c$. In Theorem~\ref{thm:mocanu} below, we recall a criterion for the nonexistence of such solutions for large enough $p$ in terms of arithmetic hypotheses on $\Q(\zeta_r+\zeta_r^{-1})$, the maximal real subfield of the $r$th cyclotomic field. We remark that Corollary~7 in the published version of~\cite{MocanuRRP} has an incorrect assumption on the congruence class of~$r$ modulo~8. We recall the corrected statement from~\cite[Corollary~7, arXiv v2]{MocanuRRP}. \begin{theorem}\label{thm:mocanu} Let $r\geq 5$ be a rational prime such that $r\equiv 3,5\pmod{8}$. Suppose that $2$ is inert in $\Q(\zeta_r+\zeta_r^{-1})$ and that its narrow class number is odd. Then there is a constant~$B_r$, depending only on $r$, such that for every rational prime $p>B_r$, the equation \[ x^r+y^r=z^p \] has no non-trivial primitive integer solutions with $2\mid z$. \end{theorem} Furthermore, by~\cite[Corollary~8, arXiv v2]{MocanuRRP}, the hypotheses of this theorem hold for $$ r \in \{5, 11, 13, 19, 37, 53, 59, 61, 67, 83, 101, 107, 131, 139, 149 \}.$$ In this note, we apply Davis's formula for the signature rank of circular units~\cite[Theorem~3.6]{Davis} in the case where $2$ is a primitive root modulo $r$. This expresses the narrow class number hypothesis of Theorem~\ref{thm:mocanu} in terms of a greatest common divisor of polynomials over $\F_2$ and allows us to determine all primes $r\leq100000$ satisfying its hypotheses. To give a precise statement of our result, we need some notation. For a prime $r\geq 5$, put \[ F_r:=\Q(\zeta_r+\zeta_r^{-1}),\qquad n:=\frac{r-1}{2}, \] where $\zeta_r$ is a primitive $r$th root of unity. Write $h(F_r)$ and $h^+(F_r)$ for its class number and narrow class number, respectively. For $a$ prime to $r$, let $[a]_r$ be its least positive residue modulo $r$. Suppose that $2$ is a primitive root modulo $r$. For $j\geq 0$, define \[ v_j:=[2^j]_r,\qquad t_j:=\begin{cases}0,&v_j\leq n,\\1,&v_j>n,\end{cases} \qquad s_j:=t_{j+1}+t_j\in\F_2, \] and also set \begin{equation}\label{appendix:eq:S} S_{r,2}(X):=\sum_{j=0}^{n-1}s_jX^j\in\F_2[X]. \end{equation} Since $2^n\equiv-1\pmod r$, we have $v_0=1$, $v_n=r-1$ and $v_{j+n}=r-v_j$. Consequently $s_{j+n}=s_j$ and $S_{r,2}(1)=1$. All the greatest common divisors below are taken in $\F_2[X]$. Our main result is the following. \begin{theorem}\label{appendix:cor:criterion} Fix $r\geq 5$ a rational prime. Assume all of the following hold: \begin{enumerate} \item $r\equiv3,5\pmod8$; \item $2$ is a primitive root modulo $r$; \item $\gcd\left(S_{r,2}(X),X^{(r-1)/2}-1\right)=1$. \end{enumerate} Then, there is a constant $B_r$ (depending only on $r$) such that for each prime $p>B_r$, the equation $x^r+y^r=z^p$ has no non-trivial, primitive, integer solutions with $2\mid z$. \end{theorem} We also derive the following Diophantine consequence. \begin{corollary}\label{appendix:cor:computed} Let $\calR$ be the set of primes $5\leq r\leq100000$ satisfying all three hypotheses of Theorem~\ref{appendix:cor:criterion}. Then $\#\calR=3160$. Moreover, for each $r\in\calR$ there exists a constant $B_r$ such that for every rational prime $p>B_r$, the equation \[ x^r+y^r=z^p \] has no non-trivial primitive integer solutions with $2\mid z$. \end{corollary} \subsection{AI disclosure} GPT 6-Astra was used to assist with the mathematical arguments, computations and preparation of this manuscript. The authors take full responsibility for its mathematical content. \section{Signatures of circular units}\label{appendix:C} We first relate the narrow class number of $F_r$ to the polynomial $S_{r,2}$ defined in~\eqref{appendix:eq:S}. \begin{lemma}\label{appendix:lem:parity} Let $r\geq 5$ be a rational prime such that $2$ is a primitive root modulo $r$. Then \[ 2\nmid h^+(F_r) \quad\Longleftrightarrow\quad \gcd\left(S_{r,2}(X),X^{(r-1)/2}-1\right)=1. \] \end{lemma} \begin{proof} Let $E:=\calO_{F_r}^{\times}$ and let $C$ be its subgroup of circular units. We use the generators \[ -1,\qquad u_a:=\frac{\zeta_r^a-\zeta_r^{-a}} {\zeta_r-\zeta_r^{-1}}, \qquad 2\leq a\leq n; \] see \cite[Section~3]{AppendixDDK}. The circular unit index formula gives \begin{equation}\label{appendix:eq:index} [E:C]=h(F_r) \end{equation} by \cite[Theorem~8.2]{Washington}. Both $E/E^2$ and $C/C^2$ have dimension $n$ over $\F_2$. For a unit $u\in E$, its signature is the vector in $\F_2^n$ recording its signs at the $n$ real embeddings, with $0$ representing a positive sign and $1$ a negative sign. The signature rank $s_E$ of~$E$ is the $\F_2$-dimension of the image of the signature map $E\longrightarrow\F_2^n$. We have the relation \begin{equation}\label{appendix:eq:narrow} h^+(F_r)=h(F_r)\,2^{n-s_E}. \end{equation} By \cite[Proposition~1]{AppendixDummit}, the narrow class number $h^+(F_r)$ is odd if and only if the circular units have full signature rank. Thus $h^+(F_r)$ is odd if and only if the signatures of $C$ span~$\F_2^n$. It remains to compute the signature rank of $C$. For every integer $a$ prime to $r$, define $u_a$ by the same formula as above, and let $\sigma_a$ be the automorphism of $\Q(\zeta_r)$ taking $\zeta_r$ to $\zeta_r^a$. These units satisfy \[ u_{ab}=u_a\sigma_a(u_b),\qquad u_{-a}=-u_a,\qquad u_1=1. \] In particular, $C$ is stable under the Galois action. Set $\tau:=\sigma_2|_{F_r}$. By induction, \begin{equation}\label{appendix:eq:telescoping} u_{2^k}=\prod_{i=0}^{k-1}\tau^i(u_2). \end{equation} For $k=n$, this product is $u_{-1}=-1$. Since the classes of $2^0,\ldots,2^{n-1}$ exhaust $(\Z/r\Z)^\times/\{\pm1\}$, for every $a$ prime to $r$ there is a $k$ such that $a\equiv\pm2^k\pmod r$. Hence $u_a=\pm u_{2^k}$, while $-1=u_{2^n}$ also belongs to the subgroup generated by the conjugates of $u_2$. Conversely, these conjugates belong to $C$, so they generate exactly $C$. Fix the embedding $\zeta_r=e^{2\pi i/r}$. The value of $u_2$ at the embedding induced by $\sigma_{2^j}$ is \[ \frac{\sin(2\pi 2^{j+1}/r)}{\sin(2\pi 2^j/r)}. \] The denominator and numerator have signs $(-1)^{t_j}$ and $(-1)^{t_{j+1}}$, respectively. Thus the quotient has sign $(-1)^{t_{j+1}-t_j}=(-1)^{t_{j+1}+t_j}$, and its negative sign bit is $s_j=t_{j+1}+t_j$ in~$\F_2$. So the signature matrix of the conjugates $\tau^i(u_2)$ has entries $s_{i+j\bmod n}$. Its rows are the cyclic shifts of the coefficient vector of $S_{r,2}$, in some order. Its rank is therefore the rank of multiplication by $S_{r,2}$ on \[ V:=\F_2[X]/(X^n-1). \] Write \[ H:=X^n-1, \quad D:=\gcd(S_{r,2},H), \quad H=DH_0 \quad \text{ and } \quad S_{r,2}=DS_0. \] Since $\gcd(H_0,S_0)=1$, for $A\in\F_2[X]$ we have \[ H\mid S_{r,2}A\quad\Longleftrightarrow\quad H_0\mid A. \] Hence the kernel of multiplication by $S_{r,2}$ on $V$ consists of the multiples of $H_0$ modulo $H$, and has dimension $\deg D$. The signature rank of $C$ is consequently \begin{equation}\label{appendix:eq:rank} n-\deg\gcd(S_{r,2},X^n-1) \end{equation} by Davis's formula~\cite[Theorem~3.6]{Davis} for the primitive root $2$. Indeed, put $T(X)=\sum_{j=0}^{n-1}t_jX^j$. Since $t_0=0$ and $t_n=1$, we have \[ XS_{r,2}(X)=(1+X)T(X)+X^n. \] As $X$ is a unit modulo $X^n-1$, the greatest common divisor in~\eqref{appendix:eq:rank} is the same as Davis's greatest common divisor of $1+(1+X)T(X)$ and $X^n+1$ over $\F_2$. The signature rank equals $n$ if and only if $D=1$. Combining this with the first part of the proof gives the result. Note that this argument does not require $X^n-1$ to be square-free and also applies for even~$n$. \end{proof} \section{The asymptotic Fermat equation} \begin{proof}[Proof of Theorem~\ref{appendix:cor:criterion}] For $r\equiv3,5\pmod8$, we have $(2/r)=-1$, so $2^n\equiv-1\pmod r$ by Euler's criterion. Putting $d=\ord_r(2)$, the order of the image of $2$ in $(\Z/r\Z)^\times/\{\pm1\}$ is $d/2$. This is the residue degree of $2$ in $F_r$. Hence $2$ is inert in $F_r$ if and only if $d=r-1$, that is, if and only if $2$ is a primitive root modulo $r$. If $2$ is a primitive root modulo $r$, then $(2/r)=-1$ and $r\equiv3,5\pmod8$. By Lemma~\ref{appendix:lem:parity}, the hypotheses of Theorems~\ref{thm:mocanu} and~\ref{appendix:cor:criterion} are equivalent. The conclusion follows from Theorem~\ref{thm:mocanu}. \end{proof} \begin{proof}[Proof of Corollary~\ref{appendix:cor:computed}] For all primes $5\leq r\leq100000$, we check the assumptions in Theorem~\ref{appendix:cor:criterion}. There are $9590$ such primes, of which $4807$ satisfy $r\equiv3,5\pmod8$. Among these, $3602$ satisfy $\ord_r(2)=r-1$. For each of the latter primes, we construct $S_{r,2}$ by \eqref{appendix:eq:S} and compute its greatest common divisor with $X^{(r-1)/2}-1$ over $\F_2$. The greatest common divisor is $1$ in exactly $3160$ cases and has positive degree in the remaining $442$ cases. Thus $\#\calR=3160$, and Theorem~\ref{appendix:cor:criterion} gives the desired conclusion. We provide the accompanying \texttt{Magma} code and the complete set $\calR$ in~\cite{codeAppendix}. \end{proof} \begin{thebibliography}{99} \small \bibitem{Davis} Daniel Lee Davis. \newblock On the distribution of the signs of the conjugates of the cyclotomic units in the maximal real subfield of the $q$th cyclotomic field, $q$ a prime. \newblock Ph.D. thesis, California Institute of Technology, 1969. \newblock \url{https://thesis.caltech.edu/9554/}. \bibitem{AppendixDummit} David~S. Dummit. \newblock A note on the equivalence of the parity of class numbers and the signature ranks of units in cyclotomic fields. \newblock \emph{Nagoya Math. J.} \textbf{238} (2020), 206--214. \bibitem{AppendixDDK} David~S. Dummit, Evan~P. Dummit, and Hershy Kisilevsky. \newblock Signature ranks of units in cyclotomic extensions of abelian number fields. \newblock \emph{Pacific J. Math.} \textbf{298} (2019), no.~2, 285--298. \bibitem{codeAppendix} Nuno Freitas and Diana Mocanu. \newblock Supporting code and prime list. \newblock GitHub repository, \href{https://github.com/dianamocanu97/Appendix/tree/944b2dbbf47b33f400f5378c7fead9d23c6469e2}{\nolinkurl{github.com/dianamocanu97/Appendix}}. \bibitem{MocanuRRP} Diana Mocanu. \newblock Asymptotic {F}ermat for signatures $(r,r,p)$ using the modular approach. \newblock \emph{Res. Number Theory} \textbf{9} (2023), no.~4, Paper No.~71. \newblock Corrected version: \href{https://arxiv.org/abs/2212.10627v2}{arXiv:2212.10627v2}, 29 September 2026. \bibitem{Washington} Lawrence~C. Washington. \newblock \emph{Introduction to cyclotomic fields}, second edition. \newblock Graduate Texts in Mathematics, vol.~83, Springer-Verlag, New York, 1997. \end{thebibliography} \end{document}