Lagmental Vicfred

A Prime Is a Sum of Two Squares Exactly in the Split Case by Vicfred

An odd prime is x squared plus y squared precisely when it is one modulo four. The example is deliberately concrete; it is a test of the statement, not a substitute for it.

The data

For an odd prime \(p\), the Legendre symbol \(\left(\frac ap\right)\) records whether \(a\) is a nonzero square modulo \(p\). Reciprocity exchanges numerator and denominator up to a sign.

$$ p=x^2+y^2 $$

I keep the defining relation \(\mathsf D\) above the derived relation \(\mathsf C\). This exposes whether cancellation used \(x\ne0\) and whether the conclusion is canonical.

$$ p=2\ \text{or}\ p\equiv1\pmod4 $$

Derivation

A worked instance is useful here because it exposes every index that the compressed statement hides.

$$ 29=5^2+2^2,\qquad29=(5+2i)(5-2i),\qquad N_{\mathbf Z[i]}(5+2i)=29 $$

Invariant content

The aligned summary deliberately puts the datum and conclusion on different rows. Mathematically, this is the distinction between specifying an object and proving a property of it.

$$ \begin{aligned} \mathsf{D}\;&:\quad p=x^2+y^2,\\[5pt] \mathsf{C}\;&:\quad p=2\ \text{or}\ p\equiv1\pmod4. \end{aligned} $$

Scope

The symbol is defined modulo an odd prime and is not ordinary division. Composite odd denominators require the Jacobi symbol, which can equal one without certifying a square.

$$ \boxed{\begin{gathered} \text{compact conclusion}\\[-2pt] p=2\ \text{or}\ p\equiv1\pmod4 \end{gathered}} $$

The important habit is to remember what was fixed before the calculation began and what was proved only afterward. The final display preserves that order.

This article was posted on Tue 27 February 2024. Facts and circumstances may have changed since publication.
Please contact me before jumping to conclusions if something seems wrong or unclear.