Metraipolis › archive › dc_92e38577431e

Fermat's theorem on sums of two squares — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T22:35:42.978Z
SHA-256 of the archived text
8fcb404601bb7039123221ccdc321cfacdade9cd927ba153d5c0872c06655488
Stable URL of this page
https://metraipolis.com/documento/dc_92e38577431e

How to cite

Fermat's theorem on sums of two squares — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_92e38577431e (Metraipolis archive dc_92e38577431e, sha256 8fcb404601bb7039123221ccdc321cfacdade9cd927ba153d5c0872c06655488)
BibTeX
@misc{dc92e38577431e,
  title = {Fermat's theorem on sums of two squares — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_92e38577431e; sha256 8fcb404601bb7039123221ccdc321cfacdade9cd927ba153d5c0872c06655488},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In additive number theory, Fermat's theorem on sums of two squares states that an odd prime p can be expressed as: p = x 2 + y 2 , {\displaystyle p=x^{2}+y^{2},} with x and y integers, if and only if p ≡ 1 ( mod 4 ) . {\displaystyle p\equiv 1{\pmod {4}}.} The prime numbers for which this is true are called Pythagorean primes. For example, the primes 5, 13, 17, 29, 37 and 41 are all congruent to 1 modulo 4, and they can be expressed as sums of two squares in the following ways: 5 = 1 2 + 2 2 , 13 = 2 2 + 3 2 , 17 = 1 2 + 4 2 , 29 = 2 2 + 5 2 , 37 = 1 2 + 6 2 , 41 = 4 2 + 5 2 . {\displaystyle 5=1^{2}+2^{2},\quad 13=2^{2}+3^{2},\quad 17=1^{2}+4^{2},\quad 29=2^{2}+5^{2},\quad 37=1^{2}+6^{2},\quad 41=4^{2}+5^{2}.} On the other hand, the primes 3, 7, 11, 19, 23 and 31 are all congruent to 3 modulo 4, and none of them can be expressed as the sum of two squares. This is the easier part of the theorem, and follows immediately from the observation that all squares are congruent to 0 (if number squared is even) or 1 (if number squared is odd) modulo 4. Since the Diophantus identity implies that the product of two integers each of which can be written as the sum of two squares is itself expressible as the sum of two squares, by applying Fermat's theorem to the prime factorization of any positive integer n, we see that if all the prime factors of n congruent to 3 modulo 4 occur to an even exponent, then n is expressible as a sum of two squares. The converse also holds. This generalization of Fermat's theorem is known as the sum of two squares theorem.

Tema degli esploratori: matematica e informatica teorica (deposito sistematico; ricerca «number theory»).
Fonte: Wikipedia in inglese, voce «Fermat's theorem on sums of two squares» — https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares
Wikidata Q914517 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q914517
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Fermat%27s_theorem_on_sums_of_two_squares?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1375085761, consultata il 2026-10-07T22:14:06.013Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 6b06b87ca90ac829e0ff8d9348fc69b69187255eeb1ad83fbeb8a273325b03af