Number theory Diophantine equations Theorem
Fermat's theorem on sums of two squares
Builds on Prime number−1 is a square modulo p if and only if p is not 3 modulo 4
Statement
Let be an odd prime number. Then there are integers and with if and only if .
Remarks
The prime is also a sum of two squares. So a prime is a sum of two squares if and only if . For example, , and . For , the representation is unique up to order and signs. The "only if" part is easy: a square is or modulo , so . One proof of the other part starts from a square root of modulo and uses Gaussian integers or Minkowski's theorem.
History
Albert Girard stated the result in a book published in 1625. Fermat stated it in a letter to Mersenne of 25 December 1640, so it is also called Fermat's Christmas theorem. Euler gave the first proof, by infinite descent, in 1749.
Reading path
To understand this page from the ground up, read these 10 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Divisibility definition
- Congruence modulo n definition
- Prime number definition
- Quadratic residue definition
- Fermat's little theorem statement
- Legendre symbol definition
- Euler's criterion statement
- First supplement to quadratic reciprocity statement
- −1 is a square modulo p if and only if p is not 3 modulo 4 statement
- Fermat's theorem on sums of two squares statement
Where this leads
2 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares, History
- Web https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares, Euler's proof by infinite descent
About this page
| Tag | 043B3ENSTY |
|---|---|
| URI | m2://043B3ENSTY |
| Aliases | fermat-christmas-theorem |
| Kind | statement, theorem |
| Writing | W1 stated |
| MSC | 11E25 |
| Status | This copy of the site has no build data. Run m2 status 043B3ENSTY. |
| Uses | Prime number, −1 is a square modulo p if and only if p is not 3 modulo 4 |
| Same as |
Markdown · JSON · Edit on GitHub
What this page needs for W2
- edge about out: the concepts that the statement is about (0 of 1)
- edge proves in: at least one proof node (0 of 1)
- edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
- explanation L2 (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.