Every prime satisfies is a hypotenuse of a right angle triangle with three sides of integer values.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
First prove that every prime has the form p ≡ 1 ( m o d 4 ) can be expressed as the sum of squares:
Relevant Wiki: Legendre Symbol
Because of Legendre Symbol: ( − 1 / p ) = 1 , if p ≡ 1 ( m o d 4 ) , we can find an integer a which is coprime to p , satisfies a 2 ≡ − 1 ( m o d p ) .
Let's first look at this case: a x ≡ y ( m o d p ) , there is at least a solution x 0 , y 0 which a x 0 ≡ y 0 ( m o d p ) , satisfies 0 < ∣ x 0 ∣ < p , 0 < ∣ y 0 ∣ < p (see the proof below). Squaring both side gives x 2 + y 2 ≡ 0 ( m o d p ) , but 0 < x 0 2 + y 0 2 < 2 p forced x 2 + y 2 = p .
Next step, by letting q = 2 x y , r = x 2 − y 2 (WLOG, let x > y ), we can yields a triplet of q , r , p which are three sides of a right angle triangle with, integer values of side lengths.
The proof:
Consider the set S = { a x − y ∣ 0 ≤ x < p , 0 ≤ y < p } , there are exactly ( ⌊ p ⌋ + 1 ) 2 > p 2 = p elements inside that, by Pigeonhole Theorem, at least a pair of integers in the set are congruent modulo p , says ( x 1 , y 1 ) , ( x 2 , y 2 ) , so a x 1 − y 1 a ( x 1 − x 2 ) ≡ a x 2 − y 2 ( m o d p ) ≡ y 1 − y 2 ( m o d p ) By letting x 0 = x 1 − x 2 , y 0 = y 1 − y 2 , we conclude that this is the same as a x 0 ≡ y 0 ( m o d p ) , but if x 0 = 0 will cause y 0 = 0 , this says x 1 = x 2 , y 1 = y 2 , exactly the same element in the set S , contradict the assumption, this completes the proof.