Pythagorean prime

From testwiki
Jump to navigation Jump to search

Template:Redirect

The Pythagorean prime 5 and its square root are both hypotenuses of right triangles with integer legs. The formulas show how to transform any right triangle with integer legs into another right triangle with integer legs whose hypotenuse is the square of the first triangle's hypotenuse.

A Pythagorean prime is a prime number of the Template:Nowrap Pythagorean primes are exactly the odd prime numbers that are the sum of two squares; this characterization is Fermat's theorem on sums of two squares.

Equivalently, by the Pythagorean theorem, they are the odd prime numbers p for which p is the length of the hypotenuse of a right triangle with integer legs, and they are also the prime numbers p for which p itself is the hypotenuse of a primitive Pythagorean triangle. For instance, the number 5 is a Pythagorean prime; 5 is the hypotenuse of a right triangle with legs 1 and 2, and 5 itself is the hypotenuse of a right triangle with legs 3 and 4.

Values and density

The first few Pythagorean primes are Template:Bi By Dirichlet's theorem on arithmetic progressions, this sequence is infinite. More strongly, for each n, the numbers of Pythagorean and non-Pythagorean primes up to n are approximately equal. However, the number of Pythagorean primes up to n is frequently somewhat smaller than the number of non-Pythagorean primes; this phenomenon is known as Template:Nowrap For example, the only values of n up to 600000 for which there are more Pythagorean than non-Pythagorean odd primes less than or equal to n are 26861 Template:Nowrap

Representation as a sum of two squares

The sum of one odd square and one even square is congruent to 1 mod 4, but there exist composite numbers such as 21 that are Template:Nowrap and yet cannot be represented as sums of two squares. Fermat's theorem on sums of two squares states that the prime numbers that can be represented as sums of two squares are exactly 2 and the odd primes congruent to Template:Nowrap The representation of each such number is unique, up to the ordering of the two squares.Template:R

By using the Pythagorean theorem, this representation can be interpreted geometrically: the Pythagorean primes are exactly the odd prime numbers p such that there exists a right triangle, with integer legs, whose hypotenuse has Template:Nowrap They are also exactly the prime numbers p such that there exists a right triangle with integer sides whose hypotenuse has Template:Nowrap For, if the triangle with legs x and y has hypotenuse length p (with x>y), then the triangle with legs x2y2 and 2xy has hypotenuse Template:Nowrap

Another way to understand this representation as a sum of two squares involves Gaussian integers, the complex numbers whose real part and imaginary part are both Template:Nowrap The norm of a Gaussian integer x+iy is the Template:Nowrap Thus, the Pythagorean primes (and 2) occur as norms of Gaussian integers, while other primes do not. Within the Gaussian integers, the Pythagorean primes are not considered to be prime numbers, because they can be factored as p=(x+iy)(xiy). Similarly, their squares can be factored in a different way than their integer factorization, as p2=(x+iy)2(xiy)2=(x2y2+2ixy)(x2y22ixy). The real and imaginary parts of the factors in these factorizations are the leg lengths of the right triangles having the given hypotenuses.

Quadratic residues

The law of quadratic reciprocity says that if p and q are distinct odd primes, at least one of which is Pythagorean, then p is a quadratic residue Template:Nowrap if and only if q is a quadratic residue Template:Nowrap by contrast, if neither p nor q is Pythagorean, then p is a quadratic residue Template:Nowrap if and only if q is not a quadratic residue Template:Nowrap

In the finite field /p with p a Pythagorean prime, the polynomial equation x2=1 has two solutions. This may be expressed by saying that 1 is a quadratic residue Template:Nowrap In contrast, this equation has no solution in the finite fields /p where p is an odd prime but is not Template:Nowrap

The Paley graph with 13 vertices

For every Pythagorean prime p, there exists a Paley graph with p vertices, representing the numbers Template:Nowrap with two numbers adjacent in the graph if and only if their difference is a quadratic residue. This definition produces the same adjacency relation regardless of the order in which the two numbers are subtracted to compute their difference, because of the property of Pythagorean primes that 1 is a quadratic Template:Nowrap

References

Template:Reflist

Template:Prime number classes