Right triangle then with equality only in the isosceles case. If segments of lengths "p" and "q" emanating from vertex "C" trisect the hypotenuse into segments of length "c"/3, then The right triangle is the only triangle having two, rather than one or three, distinct inscribed squares. Let "h" and "k" ("h" > "k") be the sides of the two inscribed squares in a right triangle with hypotenuse "c". Then These sides and the incircle radius "r" are related by a similar formula: The perimeter of a right triangle equals the sum of the radii of the incircle and the three excircles:
Fermat's right triangle theorem congruum is equivalent to the existence of a Pythagorean triangle with a square area. It is this variant of the problem that Fermat's proof concerns: he shows that there is no such triangle. In considering this problem, Fermat was inspired not by Fibonacci but by an edition of Diophantus published by Claude Gaspard Bachet de Méziriac. This book described various special right triangles whose areas had forms related to squares, but did not consider the case of areas that were themselves square. By rearranging the equations for the two Pythagorean triangles above, and then multiplying them together, one obtains the