Pythagoras triangle the square of the hypotenuse is equal [to the sum of] the squares of the two other sides"—that is, formula_1. According to a popular legend, after he discovered this theorem, Pythagoras sacrificed an ox, or possibly even a whole "hecatomb", to the gods. Cicero rejected this story as spurious because of the much more widely held belief that Pythagoras forbade blood sacrifices. Porphyry attempted to explain the story by asserting that the ox was actually made of dough. The Pythagorean theorem was known and used by the Babylonians and Indians centuries before Pythagoras, but it is possible that he
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