[step:Attach the Frey curve to a primitive prime exponent solution]Assume that $p\geq 5$ is prime and that non-zero pairwise coprime integers $A,B,C$ satisfy
\begin{align*}
A^p+B^p=C^p.
\end{align*}
Let $\mathbb{Q}$ denote the field of rational numbers, let $\overline{\mathbb{Q}}$ denote a fixed [algebraic closure](/page/Algebraic%20Closure) of $\mathbb{Q}$, let $\mathbb{F}_p$ denote the finite field with $p$ elements, let $G_{\mathbb{Q}}:=\operatorname{Gal}(\overline{\mathbb{Q}}/\mathbb{Q})$ denote the absolute [Galois group](/page/Galois%20Group) of $\mathbb{Q}$, and let $GL_2(\mathbb{F}_p)$ denote the group of invertible $2\times 2$ matrices with entries in $\mathbb{F}_p$.
Define the Frey elliptic curve $E_{A,B,p}$ over $\mathbb{Q}$ by the affine Weierstrass equation
\begin{align*}
E_{A,B,p}: y^2=x(x-A^p)(x+B^p).
\end{align*}
Let
\begin{align*}
\rho_{E_{A,B,p},p}: G_{\mathbb{Q}} \to GL_2(\mathbb{F}_p)
\end{align*}
denote the mod-$p$ Galois representation induced by the action of $G_{\mathbb{Q}}$ on the $p$-torsion subgroup $E_{A,B,p}[p]$.
By the Frey curve theorem for primitive Fermat solutions, the displayed primitive Fermat relation implies the following concrete properties: $E_{A,B,p}$ is semistable over $\mathbb{Q}$; the residual representation $\rho_{E_{A,B,p},p}$ is irreducible; the prime-to-$p$ conductor of $E_{A,B,p}$ is supported only at $2$ and at the primes dividing $ABC$; and after removing, by level lowering, the primes dividing $ABC$, the residual conductor of $\rho_{E_{A,B,p},p}$ is exactly $2$. The hypotheses of this cited Frey theorem are precisely the pairwise coprimality of $A,B,C$, the primality condition $p\geq 5$, the non-vanishing condition $ABC\neq 0$, and the equation $A^p+B^p=C^p$, all of which are in force.[/step]