Triangle inequality is an exterior angle of a right triangle and therefore larger than , meaning the other base angle of the isosceles triangle also is greater than and their sum exceeds in violation of the triangle postulate). This theorem establishing inequalities is sharpened by Pythagoras' theorem to the equality that the square of the length of the hypotenuse equals the sum of the squares of the other two sides. Consider a triangle whose sides are in an arithmetic progression and let the sides be , , . Then the triangle inequality requires that The first of these quadratic inequalities requires to
Fermat's theorem on sums of two squares 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 or 1 modulo 4. Albert Girard was the first to make the observation, describing all positive integral numbers (not necessarily primes) expressible as the sum of two squares of positive integers; this was published in 1625. The statement that every prime "p" of the form "4n+1" is the sum of two squares is sometimes called "Girard's theorem". For his part, Fermat wrote an elaborate