fbpx
Wikipedia

Sum of two squares theorem

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.[1]

Integers satisfying the sum of two squares theorem are squares of possible distances between integer lattice points; values up to 100 are shown, with
Squares (and thus integer distances) in red, and
Non-unique representations (up to rotation and reflection) bolded

An integer greater than one can be written as a sum of two squares if and only if its prime decomposition contains no factor pk, where prime and k is odd.

In writing a number as a sum of two squares, it is allowed for one of the squares to be zero, or for both of them to be equal to each other, so all squares and all doubles of squares are included in the numbers that can be represented in this way. 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.

A number may have multiple representations as a sum of two squares, counted by the sum of squares function; for instance, every Pythagorean triple gives a second representation for beyond the trivial representation .

Examples edit

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.

Representable numbers edit

The numbers that can be represented as the sums of two squares form the integer sequence[2]

0, 1, 2, 4, 5, 8, 9, 10, 13, 16, 17, 18, 20, 25, 26, 29, 32, ...

They form the set of all norms of Gaussian integers;[2] their square roots form the set of all lengths of line segments between pairs of points in the two-dimensional integer lattice.

The number of representable numbers in the range from 0 to any number   is proportional to  , with a limiting constant of proportionality given by the Landau–Ramanujan constant, approximately 0.764.[3]

The product of any two representable numbers is another representable number. Its representation can be derived from representations of its two factors, using the Brahmagupta–Fibonacci identity.

Jacobi's two-square theorem edit

Jacobi's two-square theorem states

The number of representations of n as a sum of two squares is four times the difference between the number of divisors of n congruent to 1 modulo 4 and the number of divisors of n congruent to 3 modulo 4.

Hirschhorn gives a short proof derived from the Jacobi triple product.[4]

See also edit

References edit

  1. ^ Dudley, Underwood (1969). "Sums of Two Squares". Elementary Number Theory. W.H. Freeman and Company. pp. 135–139.[dead link]
  2. ^ a b Sloane, N. J. A. (ed.). "Sequence A001481 (Numbers that are the sum of 2 squares)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  3. ^ Rebák, Örs (2020). "Generalization of a Ramanujan identity". The American Mathematical Monthly. 127 (1): 80–83. arXiv:1612.08307. doi:10.1080/00029890.2020.1668716. MR 4043992.
  4. ^ Hirschhorn, Michael (1985). "A simple proof of Jacobi's two-square theorem" (PDF). Amer. Math. Monthly. 92: 579–580.

squares, theorem, number, theory, squares, theorem, relates, prime, decomposition, integer, whether, written, squares, such, that, some, integers, integers, satisfying, squares, theorem, squares, possible, distances, between, integer, lattice, points, values, . In number theory the sum of two squares theorem relates the prime decomposition of any integer n gt 1 to whether it can be written as a sum of two squares such that n a2 b2 for some integers a b 1 Integers satisfying the sum of two squares theorem are squares of possible distances between integer lattice points values up to 100 are shown with Squares and thus integer distances in red and Non unique representations up to rotation and reflection bolded An integer greater than one can be written as a sum of two squares if and only if its prime decomposition contains no factor pk where prime p 3 mod 4 displaystyle p equiv 3 pmod 4 and k is odd In writing a number as a sum of two squares it is allowed for one of the squares to be zero or for both of them to be equal to each other so all squares and all doubles of squares are included in the numbers that can be represented in this way 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 A number may have multiple representations as a sum of two squares counted by the sum of squares function for instance every Pythagorean triple a 2 b 2 c 2 displaystyle a 2 b 2 c 2 gives a second representation for c 2 displaystyle c 2 beyond the trivial representation c 2 0 2 displaystyle c 2 0 2 Contents 1 Examples 2 Representable numbers 3 Jacobi s two square theorem 4 See also 5 ReferencesExamples editThe 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 5 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 Representable numbers editThe numbers that can be represented as the sums of two squares form the integer sequence 2 0 1 2 4 5 8 9 10 13 16 17 18 20 25 26 29 32 They form the set of all norms of Gaussian integers 2 their square roots form the set of all lengths of line segments between pairs of points in the two dimensional integer lattice The number of representable numbers in the range from 0 to any number n displaystyle n nbsp is proportional to n log n displaystyle frac n sqrt log n nbsp with a limiting constant of proportionality given by the Landau Ramanujan constant approximately 0 764 3 The product of any two representable numbers is another representable number Its representation can be derived from representations of its two factors using the Brahmagupta Fibonacci identity Jacobi s two square theorem editJacobi s two square theorem statesThe number of representations of n as a sum of two squares is four times the difference between the number of divisors of n congruent to 1 modulo 4 and the number of divisors of n congruent to 3 modulo 4 Hirschhorn gives a short proof derived from the Jacobi triple product 4 See also editLegendre s three square theorem Lagrange s four square theorem Sum of squares function Brahmagupta Fibonacci identityReferences edit Dudley Underwood 1969 Sums of Two Squares Elementary Number Theory W H Freeman and Company pp 135 139 dead link a b Sloane N J A ed Sequence A001481 Numbers that are the sum of 2 squares The On Line Encyclopedia of Integer Sequences OEIS Foundation Rebak Ors 2020 Generalization of a Ramanujan identity The American Mathematical Monthly 127 1 80 83 arXiv 1612 08307 doi 10 1080 00029890 2020 1668716 MR 4043992 Hirschhorn Michael 1985 A simple proof of Jacobi s two square theorem PDF Amer Math Monthly 92 579 580 Retrieved from https en wikipedia org w index php title Sum of two squares theorem amp oldid 1206930207, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.