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
Legendre's three-square theorem 1 or 2 mod 4 is a sum of 3 squares, because any positive integer not divisible by 4 can be reduced to this form by subtracting 0 or 1 from it. However, proving the three-square theorem is considerably more difficult than a direct proof of the four-square theorem that does not use the three-square theorem. Indeed, the four-square theorem was proved earlier, in 1770. Legendre's three-square theorem In mathematics, Legendre's three-square theorem states that a natural number can be represented as the sum of three squares of integers if and only if is not of the form formula_2 for