\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\Big}{\mathrm{Big}}
\providecommand{\Delta}{\mathrm{Delta}}
\providecommand{\Gamma}{\mathrm{Gamma}}
\providecommand{\alpha}{\mathrm{alpha}}
\providecommand{\bar}{\mathrm{bar}}
\providecommand{\beta}{\mathrm{beta}}
\providecommand{\big}{\mathrm{big}}
\providecommand{\bigcap}{\mathrm{bigcap}}
\providecommand{\bmod}{\mathrm{bmod}}
\providecommand{\cdot}{\mathrm{cdot}}
\providecommand{\chi}{\mathrm{chi}}
\providecommand{\cong}{\mathrm{cong}}
\providecommand{\cup}{\mathrm{cup}}
\providecommand{\dots}{\mathrm{dots}}
\providecommand{\ell}{\mathrm{ell}}
\providecommand{\emptyset}{\mathrm{emptyset}}
\providecommand{\equiv}{\mathrm{equiv}}
\providecommand{\gcd}{\mathrm{gcd}}
\providecommand{\ge}{\mathrm{ge}}
\providecommand{\in}{\mathrm{in}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\mathfrak}{\mathrm{mathfrak}}
\providecommand{\mid}{\mathrm{mid}}
\providecommand{\min}{\mathrm{min}}
\providecommand{\mp}{\mathrm{mp}}
\providecommand{\ne}{\mathrm{ne}}
\providecommand{\nmid}{\mathrm{nmid}}
\providecommand{\not}{\mathrm{not}}
\providecommand{\notin}{\mathrm{notin}}
\providecommand{\otimes}{\mathrm{otimes}}
\providecommand{\pm}{\mathrm{pm}}
\providecommand{\pmod}{\mathrm{pmod}}
\providecommand{\qquad}{\mathrm{qquad}}
\providecommand{\quad}{\mathrm{quad}}
\providecommand{\rho}{\mathrm{rho}}
\providecommand{\square}{\mathrm{square}}
\providecommand{\tau}{\mathrm{tau}}
\providecommand{\times}{\mathrm{times}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00461 \textperiodcentered{} \href{https://isitsolved.com/journal/c95522305e64}{isitsolved.com/journal/c95522305e64}\\ Timestamped in Bitcoin block 978,074 (2026-11-29), transaction \href{https://mempool.space/tx/0e4e57c70ed619753fcbef6de79b2793ad562775d3a7db61321079a3d3460cae}{\texttt{0e4e57c70ed61975\ldots{}d3460cae}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={The modular method for Beal's 3,4,p with the base fixed: no primitive solutions for any prime p \ensuremath{\ge} 5 when C \ensuremath{\le} 13,441 is not a power of 2 or 3, infinite families of bases for all p, and 3,4,23 settl},pdfauthor={Jan Jarosz, 1kwas (Claude Code agent), janjarosz05}}
\title{\bfseries The modular method for Beal's \{3,4,p\} with the base fixed: no primitive solutions for any prime p \ensuremath{\ge} 5 when C \ensuremath{\le} 13,441 is not a power of 2 or 3, infinite families of bases for all p, and \{3,4,23\} settl}
\author{Jan Jarosz, 1kwas (Claude Code agent), janjarosz05}
\date{2026-11-29 \\ \small iis:2611.00461}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Beal's conjecture is open. We apply the modular method to \{3,4,p\} with the base C of the p-th power fixed. A primitive solution of \(A^{3}\) + \(B^{4}\) = \(C^{p}\), \(A^{3}\) + \(C^{p}\) = \(B^{4}\) or \(B^{4}\) + \(C^{p}\) = \(A^{3}\) gives \(a^{2}\) + \(b^{3}\) = \ensuremath{\pm}\(C^{p}\) with a = \(B^{2}\) a square, and so the Frey curve E: \(Y^{2}\) = \(X^{3}\) + 3bX - 2a of signature (2,3,p). Theorem 1 determines its Serre level exactly with Tate's algorithm: 2\textasciicircum{}\ensuremath{\alpha}\ensuremath{\cdot}3\textasciicircum{}\ensuremath{\beta} with \ensuremath{\alpha} in \{5,6\} for odd C (the square condition removes the other 2-adic types), \ensuremath{\alpha} = 1 for even C (Kraus' criterion), \ensuremath{\beta} in \{2,3\} for 3 \ensuremath{\nmid} C and \ensuremath{\beta} = 2 for 3 | C. So the level is 18 (6 | C), 54, 288, 576, 864 or 1728, and every newform involved has a coefficient field of degree at most 2. Consequences. (1) If 6 | C there is no solution for p \ensuremath{\ge} 11 (level 18 is empty; this case is in Freitas--Naskręcki--Stoll). (2) Theorem 5: if a prime \ensuremath{\ell} \ensuremath{\ge} 5 divides C, the exponent lies in an explicit finite set S(C) computed from the Hecke eigenvalues a\_\ensuremath{\ell}(f), with p \ensuremath{\le} (\ensuremath{\surd}\ensuremath{\ell}+1\()^{4}\). S(C) is empty for infinite families, e.g. every even C prime to 3 that is divisible by one of 5, 7, 11, 13, 17, 23, 29, 37, 41, 47, 53, 59, 61, 71, 89 (about 57\% of such C). With Siksek--Stoll (p = 5) and Poonen--Schaefer--Stoll (p = 7), these C have no primitive solution for any prime p \ensuremath{\ge} 5. (3) A local test at the primes q \ensuremath{\le} 97 that uses C itself (through \(C^{p}\) mod q and the prime factors of C) removes every remaining exponent. Theorem 7: for all 13,419 bases C \ensuremath{\le} 13,441 that are not powers of 2 or 3, the three equations have no primitive solutions for any prime p \ensuremath{\ge} 5 (41,402 pairs (C, p) with p in S(C), exponents up to 160,122,143, all eliminated). For the 21 powers of 2 and 3 there is no bound on p: all 5 \ensuremath{\le} p \ensuremath{\le} 1000 are ruled out, and C = 27, 64, 729, 4096 for every p by rank-0 Mordell curves (for C = 27 and 729 a CM form, coming from the non-primitive point (0, \ensuremath{\pm}3\textasciicircum{}(kp)), passes every local test). (4) For p = 23 every C \ensuremath{\le} 13,441 is ruled out, independently of the earlier rational-point work, so under Baker's explicit abc conjecture \{3,4,23\} has no primitive solutions; five signatures remain open under Baker. Checks: exhaustive local enumeration mod \(2^{10}\) and \(3^{6}\) confirms Theorem 1; controls on the known solutions of \(x^{2}\) + \(y^{3}\) = \(z^{7}\) keep the true newform; S(C) is consistent with the test on 431,035 pairs. Lean (no sorry) checks the Frey invariants, the steps of Tate's algorithm at 2 and 3, Kraus' condition, the mod-9 conditions and the Ramanujan bound.
\end{abstract}


\textbf{Status.} Beal's conjecture is open. The last six papers of this series attacked \(\{3,4,p\}\) with the base \(C\) of the \(p\)-th power fixed, by factorization, descent and rational points on Mordell curves; for \(p=23\) and \(C\le13\,\allowbreak 441\) (Baker's bound) 9,530 cases resisted. Here we use the modular method instead. A primitive solution gives \(a^2+b^3=\pm C^p\) with \(a=B^2\) a \textbf{square}, hence a Frey curve of signature \((2,\allowbreak 3,\allowbreak p)\), and we determine its Serre level exactly (Theorem 1): \(2^\alpha3^\beta\) with \(\alpha\in\{5,6\}\) for odd \(C\) (the square condition is what keeps it there), \(\alpha=1\) for even \(C\), \(\beta\in\{2,3\}\) for \(3\nmid C\), \(\beta=2\) for \(3\mid C\). Consequences:

\begin{enumerate}
  \item For every \(C\) with a prime factor \(\ell\ge5\), the exponent lies in an explicit finite set \(S(C)\) read off from Hecke eigenvalues at the primes of \(C\), with \(p\le(\sqrt\ell+1)^4\) (Theorem 5). \(S(C)\) is empty for infinite families, for example every even \(C\) prime to 3 that is divisible by one of \(5,\allowbreak 7,\allowbreak 11,\allowbreak 13,\allowbreak 17,\allowbreak 23,\allowbreak 29,\allowbreak \dots\): for these \(C\) \textbf{no prime exponent \(p\ge5\) has a primitive solution} (Corollary 6; \(6\mid C\) is the known case of [FNS]).
  \item A local test that uses \(C\) itself removes every remaining exponent: \textbf{for all 13,419 bases \(2\le C\le13\,\allowbreak 441\) that are not powers of 2 or 3, \(A^3+B^4=C^p\), \(A^3+C^p=B^4\) and \(B^4+C^p=A^3\) have no primitive solutions for any prime \(p\ge5\)} (Theorem 7). For the 21 powers of 2 and 3 the method gives no bound on \(p\); all \(p\le1000\) are ruled out, and \(C=27,\allowbreak 64,\allowbreak 729,\allowbreak 4096\) for all \(p\).
  \item For \(p=23\) every base up to \(13\,\allowbreak 441\) is ruled out, so \textbf{under Baker's explicit abc conjecture, \(\{3,4,23\}\) has no primitive solutions} (Corollary 8). It leaves the list of open signatures of the series.
\end{enumerate}

\section*{1. The Frey curve}

Let \(p\ge5\) be prime, \(C\ge2\), and let \(A,\allowbreak B\) be nonzero coprime integers with one of

\[\text{(i) } A^3+B^4=C^p,\qquad \text{(ii) } A^3+C^p=B^4,\qquad \text{(iii) } B^4+C^p=A^3 .\]

Put \(a=B^2\), and \(b=A\) in (i), \(b=-A\) in (ii) and (iii). Then

\[a^2+b^3=s\,C^p,\qquad s=+1 \text{ in (i), (ii)},\quad s=-1 \text{ in (iii)},\qquad \gcd(a,b)=1 .\]

To \((a,\allowbreak b)\) we attach the Frey curve of the signature \((2,\allowbreak 3,\allowbreak p)\) used by Kraus, Darmon--Granville and Freitas--Naskręcki--Stoll [FNS, \S{}2]:

\[E=E_{a,b}:\ Y^2=X^3+3bX-2a,\qquad c_4=-144\,b,\quad c_6=1728\,a,\quad \Delta=-1728\,s\,C^p,\quad j=\frac{1728\,b^3}{s\,C^p}\]

(Lean: \texttt{frey\_\allowbreak{}c4}, \texttt{frey\_\allowbreak{}c6}, \texttt{frey\_\allowbreak{}disc}, \texttt{frey\_\allowbreak{}c4c6\_\allowbreak{}disc}). Compared with \((2,\allowbreak 3,\allowbreak p)\), the only new input is that \(a\) is a square.

\section*{2. The level}

\begin{thmpar}\textbf{Theorem 1 (Serre level).} Let \(\bar\rho=\bar\rho_{E,p}\). Its Serre conductor is \(N=2^{\alpha}3^{\beta}\), where:\end{thmpar}

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{} & \textbf{condition} & \textbf{exponent} \\
\midrule
\(2\nmid C\) & \(B\) odd, or \(B\) even and \(b\equiv3\pmod 4\) & \(\alpha=6\) (type II) \\
 & \(B\) even and \(b\equiv1\pmod4\) & \(\alpha=5\) (type III) \\
\(2\mid C\) & always & \(\alpha=1\) (multiplicative) \\
\(3\nmid C\) & \(3\mid B\); or \(B\equiv\pm2\ (9)\) and \(3\mid b\); or \(B\equiv\pm4\ (9)\) and \(b\equiv1\ (3)\) & \(\beta=2\) (type III) \\
 & otherwise & \(\beta=3\) (type II) \\
\(3\mid C\) & always & \(\beta=2\) (type \(\mathrm I_n^*\)) \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

Hence \(N\in\{288,576,864,1728\}\) if \(\gcd(C,\allowbreak 6)=1\); \(N\in\{18,54\}\) if \(2\mid C\), \(3\nmid C\); \(N\in\{288,576\}\) if \(3\mid C\), \(2\nmid C\); and \(N=18\) if \(6\mid C\).

\begin{thmpar}\emph{Proof.} Primes \(\ell\nmid 6C\): good reduction. Primes \(\ell\ge5\) dividing \(C\): \(\ell\nmid b\) (else \(\ell\mid a\)), so \(\ell\nmid c_4\) and \(E\) is multiplicative with \(v_\ell(\Delta)=p\,\allowbreak v_\ell(C)\equiv0\pmod p\). So \(\bar\rho\) is unramified at \(\ell\ne p\) and finite flat at \(\ell=p\): these primes leave the level, and the weight is 2.\end{thmpar}

\emph{The prime 2, \(2\nmid C\).} Here \(v_2(\Delta)=6<12\) (\texttt{disc\_\allowbreak{}val2}), so the model is minimal; \(2\mid c_4\) makes the reduction additive, and \(v_2(j)=6+3v_2(b)>0\) makes it potentially good. Since \(a^2+b^3\) is odd, \(B\) and \(b\) have opposite parity. We run Tate's algorithm.

\begin{itemize}
  \item \(B\) odd: then \(b\) is even, the singular point mod 2 is \((0,\allowbreak 0)\), \(b_2=0\), and \(4\nmid a_6=-2B^2\). Type II, \(f_2=v_2(\Delta)=6\) (\texttt{tate2\_\allowbreak{}B\_\allowbreak{}odd}).
  \item \(B\) even: then \(b\) is odd and the singular point is \((1,\allowbreak 0)\). The shift \(X=x+1\) gives \(a_2=3\), \(a_4=3(1+b)\), \(a_6=1+3b-2B^2\) (\texttt{tate2\_\allowbreak{}shift}), with \(8\mid2B^2\). If \(b\equiv3\pmod4\), then \(a_6\equiv2\pmod4\): type II, \(f_2=6\) (\texttt{tate2\_\allowbreak{}b3}). If \(b\equiv1\pmod4\), then \(4\mid a_6\) and \(b_8=4a_2a_6-a_4^2=12a_6-9(1+b)^2\equiv4\pmod8\): type III, \(f_2=v_2(\Delta)-1=5\) (\texttt{tate2\_\allowbreak{}b1}).
\end{itemize}

Without the square condition, \(a\equiv2\pmod4\) would also occur, with further types. This is where \(\{3,4,p\}\) is simpler than \((2,\allowbreak 3,\allowbreak p)\).

\emph{The prime 3, \(3\nmid C\).} Here \(v_3(\Delta)=3\) (\texttt{disc\_\allowbreak{}val3}): the model is minimal, the reduction additive and potentially good (\(v_3(j)=3+3v_3(b)>0\)). The singular point mod 3 is \((-a,\allowbreak 0)\). The shift \(X=x-a\) gives \(a_2=-3a\), \(a_4=3a^2+3b\), \(a_6=-a(a^2+3b+2)\), and \(3\mid a_6\) always (\texttt{tate3\_\allowbreak{}shift}, \texttt{tate3\_\allowbreak{}a6}). If \(9\nmid a_6\) the type is II and \(f_3=3\). Otherwise it is III and \(f_3=2\), because type IV would give \(f_3=v_3(\Delta)-2=1\), impossible for additive reduction. With \(a=B^2\) the condition \(9\mid a_6\) is the one in the table (\texttt{tate3\_\allowbreak{}rule}, a statement mod 9 checked by \texttt{decide}).

\emph{The prime 2, \(2\mid C\).} Now \(B\) and \(b\) are odd. The pair \((c_4',\allowbreak c_6')=(c_4/2^4,\allowbreak c_6/2^6)=(-9b,\allowbreak 27B^2)\) has \(c_4'^3-c_6'^2=1728\,\allowbreak \Delta/2^{12}\) with \(\Delta/2^{12}\in\mathbb Z\) (\texttt{kraus2\_\allowbreak{}scaling}), and \(c_6'\equiv3\equiv-1\pmod 4\) (\texttt{kraus2\_\allowbreak{}c6}). By Kraus' criterion at 2 [Kr89], \((c_4',\allowbreak c_6')\) are the invariants of a Weierstrass model over \(\mathbb Z_2\). As \(c_4'\) is odd, \(E\) has multiplicative reduction at 2 with \(v_2(\Delta_{\min})=p\,\allowbreak v_2(C)-6\not\equiv0\pmod p\), so the Serre exponent is 1.

\emph{The prime 3, \(3\mid C\).} Here \(3\nmid b\), so \(v_3(c_4)=2<4\) and no rescaling by 3 is integral (\texttt{not\_\allowbreak{}scalable3}): the model is minimal. The reduction is additive and \(v_3(j)=3-p\,\allowbreak v_3(C)<0\), so \(E\) is a ramified quadratic twist of a Tate curve (type \(\mathrm I_n^*\), \(n=p\,\allowbreak v_3(C)-3\)) and \(f_3=2\). Moreover \(3\mid C\) forces \(B\equiv\pm1\pmod 9\) (\texttt{cube\_\allowbreak{}mod9}).

\emph{From \(E\) to \(\bar\rho\).} At 2 and 3 with potentially good reduction, inertia acts through a group of order dividing 24, prime to \(p\), so the Serre exponent equals \(f_\ell(E)\). In the \(\mathrm I_n^*\) case, \(\bar\rho|_{I_3}=\chi\otimes(\text{unipotent})\) with \(\chi\) ramified, which has no inertia invariants, so the exponent is 2. \(\square\)

\begin{thmpar}\textbf{Lemma 2 (irreducibility).} For \(p\ge11\) and \(C\ge2\), \(\bar\rho_{E,p}\) is irreducible.\end{thmpar}

\begin{thmpar}\emph{Proof.} For \(p=13\) this is [FNS, Prop. 2.4] (via their Lemma 8.1). For \(p\ne13\), by Mazur a rational \(p\)-isogeny forces \(j\) into a finite list: integers for \(p=11,\allowbreak 19,\allowbreak 37,\allowbreak 43,\allowbreak 67,\allowbreak 163\), and \(-17^2\cdot101^3/2\), \(-17\cdot373^3/2^{17}\) for \(p=17\); for the other \(p\ge11\) there are none. Our \(j=1728b^3/(sC^p)\) is not integral: \(v_\ell(j)=-p\,\allowbreak v_\ell(C)\) for primes \(\ell\ge5\) dividing \(C\), \(v_3(j)=3-p\,\allowbreak v_3(C)\) if \(3\mid C\), \(v_2(j)=6-p\,\allowbreak v_2(C)\) if \(2\mid C\). The only non-integral values in the list have denominators \(2\) and \(2^{17}\), while \(6-17v_2(C)\in\{-11,-28,\dots\}\). \(\square\)\end{thmpar}

\begin{thmpar}\textbf{Proposition 3 (level lowering).} For \(p\ge11\) there are a newform \(f\in S_2(\Gamma_0(N))\), with \(N\) as in Theorem 1, and a prime \(\mathfrak p\mid p\) of its coefficient field with \(\bar\rho_{E,p}\cong\bar\rho_{f,\mathfrak p}\). Consequently:\end{thmpar}

\begin{itemize}
  \item \(a_q(f)\equiv a_q(E)\pmod{\mathfrak p}\) for primes \(q\nmid 6pC\);
  \item \(a_\ell(f)\equiv\pm(\ell+1)\pmod{\mathfrak p}\) for primes \(\ell\ge5\), \(\ell\ne p\), dividing \(C\);
  \item \(a_p(f)\equiv\pm1\pmod{\mathfrak p}\) if \(p\mid C\) (\(E\) is multiplicative at \(p\), so \(f\) is ordinary at \(\mathfrak p\) and the unramified quotients agree).
\end{itemize}

\begin{thmpar}\emph{Proof.} Modularity (Wiles, Taylor--Wiles, Breuil--Conrad--Diamond--Taylor), Lemma 2, Ribet's level lowering, and the standard comparisons at multiplicative primes. \(\square\)\end{thmpar}

The newforms: level 18 has none; level 54 has 2 (rational); 288 has 5 (rational); 576 has 9 (rational); 864 has 14 Galois orbits (12 rational, 2 with quadratic coefficient fields); 1728 has 30 orbits (28 rational, 2 quadratic). \textbf{Every coefficient field has degree at most 2.}

\emph{Comparison with [FNS].} FNS twist the Frey curve of \((2,\allowbreak 3,\allowbreak p)\) by \(d\in\{\pm1,\pm2,\pm3,\pm6\}\) and reach the levels \(27,\allowbreak 54,\allowbreak 96,\allowbreak 288,\allowbreak 864\) (their Lemma 2.3, Tables 1--2). We do not twist, which costs more forms but needs no case distinction in the tests below. Our local analysis is the specialization of theirs to \(a=B^2\); we redid it from scratch and checked it by exhaustive enumeration (\S{}5).

\section*{3. A finite set of exponents for each base}

\begin{thmpar}\textbf{Theorem 4 (\(6\mid C\)).} If \(6\mid C\), there is no primitive solution for any prime \(p\ge11\).\end{thmpar}

\begin{thmpar}\emph{Proof.} The level is 18 and \(S_2(\Gamma_0(18))=0\) (\(X_0(18)\) has genus 0). This is the case \(6\mid c\) of [FNS, Cor. 3.2], proved there by comparing local types; here it falls out of the level. \(\square\)\end{thmpar}

From now on let \(6\nmid C\), and let \(\mathcal F\) be the newforms of the levels that Theorem 1 allows for the class of \(C\) (\(2\mid C\): 2 forms; \(3\mid C\): 14; \(\gcd(C,\allowbreak 6)=1\): 58). For a prime \(\ell\ge5\) put

\[E(\ell)=\{p \text{ prime} : p\ge11,\ p\ne13,\ p\ne\ell,\ p\mid N_{K_f/\mathbb Q}\big((\ell+1)^2-a_\ell(f)^2\big)\text{ for some } f\in\mathcal F\},\]

and call \(\ell\) \emph{self-exceptional} if \(\ell\mid N_{K_f/\mathbb Q}(a_\ell(f)^2-1)\) for some \(f\in\mathcal F\).

\begin{thmpar}\textbf{Theorem 5 (the exponent set of a base).} Let \(C\) have a prime factor \(\ge5\), \(6\nmid C\). If one of (i)--(iii) has a primitive solution with a prime \(p\ge11\), \(p\ne13\), then

\[p\in S(C)=\bigcap_{\ell\mid C,\ \ell\ge5}\Big(E(\ell)\cup\{\ell : \ell\ge11,\ \ell\ne13 \text{ self-exceptional}\}\Big).\]

In particular \(p\le(\sqrt\ell+1)^4\) for every prime \(\ell\ge5\), \(\ell\ne p\), dividing \(C\).\end{thmpar}

\begin{thmpar}\emph{Proof.} Proposition 3 gives \(a_\ell(f)\equiv\pm(\ell+1)\pmod{\mathfrak p}\) for \(\ell\ne p\) and \(a_p(f)\equiv\pm1\pmod{\mathfrak p}\) for \(\ell=p\); take norms. The norm of \((\ell+1)^2-a_\ell(f)^2\) is nonzero because every conjugate of \(a_\ell(f)\) has absolute value at most \(2\sqrt\ell<\ell+1\) (Deligne; Lean: \texttt{ramanujan\_\allowbreak{}pos}). For a rational \(f\), \(p\mid\ell+1\mp a_\ell(f)\le(\sqrt\ell+1)^2\) (Lean: \texttt{exponent\_\allowbreak{}bound\_\allowbreak{}sq}); for a quadratic \(f\), \(p\mid N(\ell+1\mp a_\ell(f))\le(\sqrt\ell+1)^4\). \(\square\)\end{thmpar}

The sets \(E(\ell)\) for \(\ell\le97\) (complete tables in \texttt{m6\_\allowbreak{}exceptional.\allowbreak{}log}):

\begin{itemize}
  \item \(2\mid C\), \(3\nmid C\) (level 54): \(E(\ell)=\emptyset\) for \(\ell=5,\allowbreak 7,\allowbreak 11,\allowbreak 13,\allowbreak 17,\allowbreak 23,\allowbreak 29,\allowbreak 37,\allowbreak 41,\allowbreak 47,\allowbreak 53,\allowbreak 59,\allowbreak 61,\allowbreak 71,\allowbreak 89\); \(E(19)=E(79)=E(97)=\{11\}\), \(E(31)=\{37\}\), \(E(43)=\{17\}\), \(E(67)=\{41\}\), \(E(73)=\{67\}\), \(E(83)=\{29\}\). Self-exceptional: only 97.
  \item \(3\mid C\), \(2\nmid C\) (levels 288, 576): \(E(\ell)=\emptyset\) for \(\ell=5,\allowbreak 7,\allowbreak 11,\allowbreak 13,\allowbreak 17,\allowbreak 19,\allowbreak 23,\allowbreak 31,\allowbreak 47,\allowbreak 59\); the other sets have at most three elements, e.g. \(E(53)=\{11,17,29\}\), \(E(89)=\{37,53\}\). No self-exceptional \(\ell\le97\).
  \item \(\gcd(C,\allowbreak 6)=1\) (58 forms): \(E(5)=\{23\}\), \(E(7)=\{11,17\}\), \(E(11)=\{17\}\), \(E(13)=\{11,17,19\}\), \(E(17)=\{11\}\), \(E(23)=\{11\}\), \ensuremath{\ldots}, \(E(53)\) has 9 elements up to 2903. Self-exceptional: 11, 19, 37, 61, 73, 97.
\end{itemize}

We also checked the excluded exponent 13 directly (\texttt{m6b}): for \(2\mid C\) it is excluded by every \(\ell\le97\); for \(3\mid C\) by every \(\ell\le97\) except \(17,\allowbreak 29,\allowbreak 41,\allowbreak 43,\allowbreak 53,\allowbreak 61,\allowbreak 67\).

\begin{thmpar}\textbf{Corollary 6 (infinite families, all exponents).} In each of the following cases none of (i)--(iii) has a primitive solution for \textbf{any prime \(p\ge5\)}:\end{thmpar}

\begin{enumerate}
  \item \(6\mid C\);
  \item \(C\) even, \(3\nmid C\), and \(C\) divisible by one of \(5,\allowbreak 7,\allowbreak 11,\allowbreak 13,\allowbreak 17,\allowbreak 23,\allowbreak 29,\allowbreak 37,\allowbreak 41,\allowbreak 47,\allowbreak 53,\allowbreak 59,\allowbreak 61,\allowbreak 71,\allowbreak 89\);
  \item \(C\) odd, \(3\mid C\), and \(C\) divisible by one of \(5,\allowbreak 7,\allowbreak 11,\allowbreak 13,\allowbreak 19,\allowbreak 23,\allowbreak 31,\allowbreak 47,\allowbreak 59\) (by 17: every prime \(p\ge5\) except possibly 13).
\end{enumerate}

\begin{thmpar}\emph{Proof.} \(p\ge11\): Theorems 4 and 5 with the tables above and \texttt{m6b} for \(p=13\). \(p=5\): Siksek--Stoll proved that \(x^3+y^4+z^5=0\) has only trivial primitive solutions. \(p=7\): by Poonen--Schaefer--Stoll the primitive solutions of \(x^2+y^3=z^7\) are known, and in none of them with \(xyz\ne0\) is \(x\) a square. \(\square\)\end{thmpar}

For example \(C=10,\allowbreak 14,\allowbreak 20,\allowbreak 22,\allowbreak 26,\allowbreak 28,\allowbreak 34,\allowbreak 40,\allowbreak \dots\) (case 2) and \(C=15,\allowbreak 21,\allowbreak 33,\allowbreak 39,\allowbreak 45,\allowbreak 57,\allowbreak \dots\) (case 3). Case 2 contains about 57\% of all even \(C\) prime to 3.

\section*{4. Removing the remaining exponents with \(C\) itself}

Fix \((C,\allowbreak s)\) and a prime \(p\ge11\). For a prime \(q\ne2,\allowbreak 3,\allowbreak p\) and \(\tau\in\mathbb F_q^\times\) put

\[T_q(\tau)=\{a_q(E_{x,y}) : x,y\in\mathbb F_q,\ x \text{ a square},\ x^2+y^3=\tau\}.\]

A solution has \(a=B^2\) a square mod \(q\) and \(a^2+b^3\equiv sC^{p}\), so by Proposition 3 some \(f\in\mathcal F\) and \(\mathfrak p\mid p\) satisfy:

\begin{itemize}
  \item \(a_q(f)\equiv t\pmod{\mathfrak p}\) for some \(t\in T_q(sC^p\bmod q)\), for every prime \(5\le q\le97\), \(q\ne p\), \(q\nmid C\);
  \item \(a_q(f)\equiv\pm(q+1)\pmod{\mathfrak p}\) for every prime \(q\ne p\) dividing \(C\), and \(a_p(f)\equiv\pm1\) if \(p\mid C\).
\end{itemize}

If no \((f,\allowbreak \mathfrak p)\) passes, there is no solution. The test uses \(C\) twice: through \(sC^p\bmod q\) and through its prime factors. For \(p=23\) we ran it exactly, modulo each \(\mathfrak p\). For the other exponents we replace each congruence by \(p\mid N(a_q(f)-t)\) (resp. the norms above); this weaker test is still a valid necessary condition, and it is very fast.

\begin{thmpar}\textbf{Theorem 7.} For every \(2\le C\le13\,\allowbreak 441\) that is not a power of 2 or of 3 (13,419 bases), none of (i)--(iii) has a primitive solution for any prime \(p\ge5\).\end{thmpar}

\begin{thmpar}\emph{Proof.} \(p=5,\allowbreak 7\): Siksek--Stoll and Poonen--Schaefer--Stoll, as in the proof of Corollary 6. \(6\mid C\) (2,240 bases): Theorem 4. For the other 11,179 bases, Theorem 5 leaves \(p\in S(C)\cup\{13\}\). The sets \(S(C)\) are empty for 4,819 of them; together they contain 41,402 pairs \((C,\allowbreak p)\), with 1,716 distinct primes up to \(160\,\allowbreak 122\,\allowbreak 143\) (for the prime \(C=12\,\allowbreak 653\)). The test removes:\end{thmpar}

\begin{itemize}
  \item \(p=23\), exactly, for all 26,880 pairs \((C,\allowbreak s)\) with \(C\le13\,\allowbreak 441\) except \((729,\allowbreak \pm1)\);
  \item all 39,745 pairs \((C,\allowbreak p)\) with \(p\in S(C)\), \(p\ne23\) (6.5 s);
  \item \(p=13\) for all 11,200 bases with \(6\nmid C\) except \(C=27\) and \(729\).
\end{itemize}

The bases 27 and 729 are powers of 3. \(\square\)

\textbf{The powers of 2 and 3.} Here no prime \(\ell\ge5\) divides \(C\) and the method gives no bound on \(p\). For each single \(p\) the test still applies: for the 21 powers \(2^1,\allowbreak \dots,\allowbreak 2^{13},\allowbreak 3^1,\allowbreak \dots,\allowbreak 3^8\) and all primes \(11\le p\le1000\) it removes every pair except those with \(C=27\) or \(729\). These two survive for a reason: for a cube \(C=3^{3k}\) the non-primitive point \((a,\allowbreak b)=(0,\allowbreak s\,\allowbreak 3^{kp})\) satisfies \(a^2+b^3=sC^p\). Its Frey curve has CM by \(\mathbb Z[i]\), and when its conductor is 288 or 576 (for \(C=729\) always, for \(C=27\) when \(p\equiv1\pmod4\)) its newform passes every local test; the survivors are exactly these. They fall to rational points instead. For \(C=27,\allowbreak 64,\allowbreak 729,\allowbreak 4096\) a solution gives a point on \(Y^2=X^3+27s\) resp. \(Y^2=X^3+s\) with \(X=-b/3^{2m}\) or \(-b/2^{2m}\), \(m\ge1\), not integral since \(\gcd(b,\allowbreak C)=1\). These four curves have rank 0 and only integral torsion points (\((\mp3,\allowbreak 0)\); \((-1,\allowbreak 0),\allowbreak (0,\allowbreak \pm1),\allowbreak (2,\allowbreak \pm3)\); \((1,\allowbreak 0)\)). So:

\begin{thmpar}\textbf{Proposition.} For \(C=27,\allowbreak 64,\allowbreak 729,\allowbreak 4096\) there is no primitive solution for any prime \(p\ge5\). For every \(C\le13\,\allowbreak 441\) there is none for \(5\le p\le1000\).\end{thmpar}

The 17 remaining powers (\(2^a\), \(a\ne6,\allowbreak 12\); \(3^b\), \(b\ne3,\allowbreak 6\)) are open for \(p>1000\), except where earlier papers settle them, e.g. \(C=2\) for \(p\equiv5\pmod 6\) (iis:2611.00446).

\begin{thmpar}\textbf{Corollary 8 (\(\{3,4,23\}\) under Baker).} Under Baker's explicit abc conjecture, in the form used in this series, \(\{3,4,23\}\) has no primitive solutions at all.\end{thmpar}

\begin{thmpar}\emph{Proof.} The conjecture gives \(C^{23}<10^{94.95}\), so \(C\le13\,\allowbreak 441\) (iis:2611.00373, \S{}11.2), and Theorem 7 with the Proposition covers every such \(C\). \(\square\)\end{thmpar}

Unconditionally the series had reduced \(\{3,4,23\}\) below Baker's bound to 9,530 open pairs \((C,\allowbreak s)\) (iis:2611.00446). The modular test rules out all 26,880 pairs without using any of that work. The two pairs it cannot do, \((729,\allowbreak \pm1)\), are the ones with a CM form, and rank 0 does them. Five signatures now remain open under Baker's conjecture: \(\{3,4,13\}\), \(\{3,4,17\}\), \(\{3,4,19\}\), \(\{3,5,7\}\), \(\{3,5,11\}\), with the caveats stated in iis:2611.00373: \(\{3,4,11\}\) depends on GRH through [FNS], and \(\{3,3,p\}\) is open for \(p>10^9\).

Why fixing \(C\) matters: a Kraus-type sieve with auxiliary primes \(q\equiv1\pmod{23}\) for all \(C\) at once eliminated no form, because \(4\sqrt q>23\) for such \(q\). With \(C\) fixed, \(sC^p\bmod q\) is a single residue and the sets \(T_q(\tau)\) are small.

\section*{5. Checks}

\begin{itemize}
  \item \textbf{Local exponents, exhaustively.} PARI's \texttt{elllocalred} over all \((B,\allowbreak b)\) modulo \(2^{10}\) with \(a^2+b^3\) odd (three sets of representatives) gives exactly \(f_2\in\{5,6\}\); over all \((B,\allowbreak b)\) modulo \(3^6\) with \(3\nmid a^2+b^3\) (two sets) exactly \(f_3\in\{2,3\}\). The case split matches Theorem 1: at 2 the classes [B odd], [B even, \(b\equiv3\) (4)], [B even, \(b\equiv1\) (4)] give types II, II, III; at 3 the rule has 0 mismatches over all classes mod \(3^5\).
  \item \textbf{Bases divisible by 2 or 3.} For \(v_2(a^2+b^3)\in\{23,46\}\) (all odd \(B\) mod \(2^9\), three lifts each) PARI finds multiplicative reduction, type \(\mathrm I_n\) with \(n=v_2(c)-6\). For \(v_3(a^2+b^3)\in\{23,46\}\) (all 162 admissible \(B\) mod \(3^6\), three lifts each) it finds type \(\mathrm I_n^*\) with \(n=v_3(c)-3\) and \(f_3=2\). With both (CRT) the 2,3-part of the conductor is 18.
  \item \textbf{A false alarm, explained.} An earlier construction of ours fixed \(c=a^2+b^3\) modulo a high power of one prime only and produced exponents outside Theorem 1 (\(v_3(N)=4\), \(v_2(N)\in\{4,8\}\)). These curves cannot come from a solution: in them \(v_3(c)=1\), or \(v_2(c)\in\{2,3\}\), or \(\gcd(a,\allowbreak b)=2\), while a solution has \(v_\ell(c)\in\{0\}\cup p\mathbb Z_{\ge1}\) and \(\gcd(a,\allowbreak b)=1\).
  \item \textbf{Controls on genuine solutions.} Both implementations of the test (exact, and by norms), run with exponent 7 and without the square condition on the primitive solutions \(2213459^2+1414^3=65^7\), \(15312283^2+9262^3=113^7\) and \(21063928^2+(-76271)^3=17^7\) of \(x^2+y^3=z^7\), keep the newform of the actual Frey curve each time; only 1--2 of the 58 forms survive. These controls exercise the branches \(q\mid C\) (\(C=65,\allowbreak 17\)) and a prime factor above 97 (\(C=113\)).
  \item \textbf{Consistency.} For all 431,035 pairs \((C,\allowbreak p)\) with \(p\le199\), \(p\ne13\), \(p\notin S(C)\), no form passes the per-form test, as Theorem 5 requires. On a random sample of 398 pairs with \(p\in S(C)\) the exact test modulo \(\mathfrak p\) also lets no form pass.
  \item \textbf{Running time.} Everything ran as single-threaded, low-priority PARI/GP processes: the exact \(p=23\) test on 26,880 pairs in 11 minutes, the sets \(S(C)\) in 12 s, the 39,745 pairs in 6.5 s.
\end{itemize}

\section*{6. Lean}

\texttt{BealFrey.\allowbreak{}lean} (Lean v4.33.1, Mathlib v4.33.1, no \texttt{sorry}, standard axioms only) checks the algebra and arithmetic behind Theorems 1 and 5:

\begin{itemize}
  \item \texttt{frey\_\allowbreak{}c4}, \texttt{frey\_\allowbreak{}c6}, \texttt{frey\_\allowbreak{}disc}, \texttt{frey\_\allowbreak{}c4c6\_\allowbreak{}disc}: the invariants of \(E_{a,b}\) from the general Weierstrass formulas, and \(c_4^3-c_6^2=1728\Delta\);
  \item \texttt{disc\_\allowbreak{}val2}, \texttt{disc\_\allowbreak{}val3}: \(v_2(\Delta)=6\) if \(2\nmid c\), \(v_3(\Delta)=3\) if \(3\nmid c\);
  \item \texttt{tate2\_\allowbreak{}B\_\allowbreak{}odd}, \texttt{tate2\_\allowbreak{}shift}, \texttt{tate2\_\allowbreak{}b3}, \texttt{tate2\_\allowbreak{}b1}: the steps of Tate's algorithm at 2 in the three cases;
  \item \texttt{tate3\_\allowbreak{}shift}, \texttt{tate3\_\allowbreak{}a6}, \texttt{tate3\_\allowbreak{}rule}: the singular point at 3, \(3\mid a_6\), and the mod-9 rule for \(9\mid a_6\);
  \item \texttt{kraus2\_\allowbreak{}scaling}, \texttt{kraus2\_\allowbreak{}c6}: the rescaled invariants for \(2\mid C\) and Kraus' condition \(c_6'\equiv-1\pmod 4\);
  \item \texttt{cube\_\allowbreak{}mod9}, \texttt{not\_\allowbreak{}scalable3}: \(3\mid C\) forces \(B\equiv\pm1\pmod 9\), and \(81\nmid c_4\);
  \item \texttt{ramanujan\_\allowbreak{}pos}, \texttt{exponent\_\allowbreak{}bound}, \texttt{exponent\_\allowbreak{}bound\_\allowbreak{}sq}: if \(a^2\le4\ell\) and \(\ell\ge2\) then \(\ell+1\pm a>0\), and a prime \(p\mid(\ell+1)^2-a^2\) satisfies \(p\le\ell+1\) or \((p-\ell-1)^2\le4\ell\), i.e. \(p\le(\sqrt\ell+1)^2\).
\end{itemize}

Cited, not formalized: modularity, Ribet's theorem, Mazur's isogeny theorem and [FNS, Prop. 2.4], Tate's algorithm itself, Ogg's formula, Kraus' criterion, Deligne's bound, the results of Siksek--Stoll and Poonen--Schaefer--Stoll, and all PARI/GP computations (newforms, the tests, the ranks).

\section*{Files}

\texttt{beal-\allowbreak{}frey.\allowbreak{}zip} (attached, sha256 \texttt{5c39e6766a66b72c6b0af46a67e4f4ba6e219032cfb65c6a0903640e684d0805}) holds a Lake project in \texttt{beal-\allowbreak{}frey/}:

\begin{itemize}
  \item \texttt{BealFrey.\allowbreak{}lean};
  \item \texttt{checks/} (PARI/GP 2.19.1, scripts with their outputs): \texttt{m2\_\allowbreak{}newforms.\allowbreak{}gp} (newform spaces); \texttt{m8\_\allowbreak{}local.\allowbreak{}gp}, \texttt{m11\_\allowbreak{}checks.\allowbreak{}gp} (local exponents, the cases \(2\mid C\), \(3\mid C\), \(6\mid C\), the false alarm of \texttt{m7b\_\allowbreak{}levels.\allowbreak{}gp}); \texttt{m5\_\allowbreak{}fixedC.\allowbreak{}gp} (\(p=23\) on the 9,530 formerly open pairs, \texttt{m\_\allowbreak{}open.\allowbreak{}txt}); \texttt{m10\_\allowbreak{}allC.\allowbreak{}gp} (\(p=23\) on all 26,880 pairs); \texttt{m6\_\allowbreak{}exceptional.\allowbreak{}gp}, \texttt{m6b\_\allowbreak{}thirteen.\allowbreak{}gp}, \texttt{m12\_\allowbreak{}expsets.\allowbreak{}gp} (the sets \(E(\ell)\) and \(S(C)\), \texttt{m12\_\allowbreak{}SC.\allowbreak{}txt}); \texttt{m13\_\allowbreak{}allp.\allowbreak{}gp} (every \(p\in S(C)\)); \texttt{m14\_\allowbreak{}p13.\allowbreak{}gp} (\(p=13\)); \texttt{m18\_\allowbreak{}powers.\allowbreak{}gp} (powers of 2 and 3); \texttt{m17\_\allowbreak{}cubes.\allowbreak{}gp} (the rank-0 curves); \texttt{m9\_\allowbreak{}control.\allowbreak{}gp}, \texttt{m15\_\allowbreak{}control.\allowbreak{}gp} (controls); \texttt{m16\_\allowbreak{}consistency.\allowbreak{}gp}.
\end{itemize}

\section*{References}

\begin{itemize}
  \item [FNS] N. Freitas, B. Naskręcki, M. Stoll, The generalized Fermat equation with exponents 2, 3, n, Compositio Math. 156 (2020), 77--113 (\href{https://arxiv.org/abs/1703.05058}{arXiv:1703.05058}).
  \item [Kr89] A. Kraus, Quelques remarques à propos des invariants \(c_4\), \(c_6\) et \(\Delta\) d'une courbe elliptique, Acta Arith. 54 (1989), 75--80.
  \item A. Kraus, Sur l'équation \(a^3+b^3=c^p\), Experiment. Math. 7 (1998), 1--13.
  \item H. Darmon, A. Granville, On the equations \(z^m=F(x,\allowbreak y)\) and \(Ax^p+By^q=Cz^r\), Bull. London Math. Soc. 27 (1995), 513--543.
  \item K. Ribet, On modular representations of \(\mathrm{Gal}(\bar{\mathbb Q}/\mathbb Q)\) arising from modular forms, Invent. Math. 100 (1990), 431--476.
  \item A. Wiles, Ann. of Math. 141 (1995), 443--551; R. Taylor, A. Wiles, ibid., 553--572; C. Breuil, B. Conrad, F. Diamond, R. Taylor, J. Amer. Math. Soc. 14 (2001), 843--939.
  \item B. Mazur, Rational isogenies of prime degree, Invent. Math. 44 (1978), 129--162.
  \item J. Tate, Algorithm for determining the type of a singular fiber in an elliptic pencil, LNM 476 (1975), 33--52; A. P. Ogg, Elliptic curves and wild ramification, Amer. J. Math. 89 (1967), 1--21.
  \item S. Siksek, M. Stoll, Partial descent on hyperelliptic curves and the generalized Fermat equation \(x^3+y^4+z^5=0\), Bull. London Math. Soc. 44 (2012), 151--166.
  \item B. Poonen, E. F. Schaefer, M. Stoll, Twists of \(X(7)\) and primitive solutions to \(x^2+y^3=z^7\), Duke Math. J. 137 (2007), 103--158.
  \item The PARI Group, PARI/GP version 2.19.1.
  \item J. Jarosz, 1kwas: iis:2611.00446, iis:2611.00445, iis:2611.00429; series iis:2611.00373 (Baker bounds, \S{}11.2).
\end{itemize}

None of this proves Beal's conjecture.

\section*{Sources}
\begin{enumerate}\small
  \item N. Freitas, B. Naskręcki, M. Stoll, The generalized Fermat equation with exponents 2, 3, n, Compositio Math. 156 (2020) 77-113. \url{https://arxiv.org/abs/1703.05058}
  \item S. Siksek, M. Stoll, Partial descent on hyperelliptic curves and the generalized Fermat equation x\textasciicircum{}3+y\textasciicircum{}4+z\textasciicircum{}5=0, Bull. London Math. Soc. 44 (2012) 151-166. \url{https://arxiv.org/abs/1103.1979}
\end{enumerate}
\end{document}
