[step:Construct a finite field with $n$ elements]
By the theorem statement, there exist a prime number $p$ and an integer $r \ge 1$ such that $n=p^r$.
[claim:There exists a field with exactly $p^r$ elements]
[/claim]
[proof]
Let $\mathbb{F}_p$ denote the field with $p$ elements, and define the polynomial $f \in \mathbb{F}_p[X]$ by
\begin{align*}
f(X):=X^{p^r}-X.
\end{align*} We first construct a [splitting field](/page/Splitting%20Field) for $f$ over $\mathbb{F}_p$. Starting from $E_0:=\mathbb{F}_p$, repeatedly choose an irreducible factor $h \in E_j[X]$ of the part of $f$ that has not yet split over $E_j$, and set $E_{j+1}:=E_j[T]/(h)$; the residue class of $T$ is a root of $h$ in $E_{j+1}$. Since the degree of the remaining unsplit part strictly decreases at each adjoining step, this process terminates after finitely many steps. Let $K$ denote the resulting [field extension](/page/Field%20Extension) of $\mathbb{F}_p$ over which $f$ splits into linear factors, and define
\begin{align*}
F := \{\alpha \in K : \alpha^{p^r}=\alpha\}.
\end{align*}
The derivative of $f$ is
\begin{align*}
f'(X)=p^r X^{p^r-1}-1=-1
\end{align*}
in characteristic $p$, since $r \ge 1$ implies that the integer coefficient $p^r$ is zero in $\mathbb{F}_p$. Hence $f$ has no repeated roots in $K$. Therefore $F$ contains exactly $\deg f=p^r$ elements.
It remains to check that $F$ is a field under the operations inherited from $K$. Let $\alpha,\beta \in F$. Since $K$ has characteristic $p$, the [Frobenius endomorphism](/page/Frobenius%20Endomorphism) $\varphi:K\to K$, $\gamma\mapsto \gamma^p$, is a field homomorphism. Iterating $r$ times gives an additive map $\varphi^r:K\to K$, $\gamma\mapsto \gamma^{p^r}$, and hence
\begin{align*}
(\alpha+\beta)^{p^r}=\alpha^{p^r}+\beta^{p^r}=\alpha+\beta,
\end{align*}
so $\alpha+\beta \in F$. Also
\begin{align*}
(-\alpha)^{p^r}=-\alpha^{p^r}=-\alpha,
\end{align*}
so $-\alpha \in F$, and
\begin{align*}
(\alpha\beta)^{p^r}=\alpha^{p^r}\beta^{p^r}=\alpha\beta,
\end{align*}
so $\alpha\beta \in F$. Finally, if $\alpha \ne 0$, then $\alpha^{-1} \in K$ and
\begin{align*}
(\alpha^{-1})^{p^r}=(\alpha^{p^r})^{-1}=\alpha^{-1},
\end{align*}
so $\alpha^{-1} \in F$. Thus $F$ is a subfield of $K$ with exactly $p^r=n$ elements.
[/proof]
Fix such a field $F$, and define $F^\times:=F\setminus\{0\}$, the multiplicative group of nonzero elements of $F$. We shall use $F$ itself as the symbol set for the Latin squares.
[/step]