Jump to content

Sum of two squares theorem

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by ArnoldReinhold (talk | contribs) at 22:15, 1 July 2020 (Changing short description from "Relates the prime decomposition of an integer > 0 to whether it is the sum of 2 squares" to "Relates the prime decomposition of an integer > 1 to whether it is the sum of 2 squares" (Shortdesc helper)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In number theory, the sum of two squares theorem relates the prime decomposition of any integer n > 1 to whether it can be written as a sum of two squares, such that n = a2 + b2 for some integers a, b.

An integer greater than one can be written as a sum of two squares if and only if its prime decomposition contains no prime congruent to modulo raised to an odd power.[1]

This theorem supplements Fermat's theorem on sums of two squares which says when a prime number can be written as a sum of two squares, in that it also covers the case for composite numbers.

Examples

The prime decomposition of the number 2450 is given by 2450 = 2 · 52 · 72. Of the primes occurring in this decomposition, 2, 5, and 7, only 7 is congruent to 3 modulo 4. Its exponent in the decomposition, 2, is even. Therefore, the theorem states that it is expressible as the sum of two squares. Indeed, 2450 = 72 + 492.

The prime decomposition of the number 3430 is 2 ·· 73. This time, the exponent of 7 in the decomposition is 3, an odd number. So 3430 cannot be written as the sum of two squares.

See also

References

  1. ^ Dudley, Underwood (1969). "Sums of Two Squares". Elementary Number Theory. W.H. Freeman and Company. pp. 135–139.