Pythagoreanism to have survived as part of, or deeply influenced, the Bacchic cults and Orphism. Pythagoras was already in ancient times well known for the mathematical achievement of the Pythagorean theorem. Although the Babylonians had used this formula for centuries, Pythagoras had discovered that "in a right-angled triangle the square of the hypotenuse is equal to the squares of the other two sides". In ancient times Pythagoras was also noted for his discovery that music had mathematical foundations. Antique sources that credit Pythagoras as the philosopher who first discovered music intervals also credit him as the inventor of the monochord, a
Proofs of Fermat's theorem on sums of two squares appears in article 182 of the Disquisitiones Arithmeticae. An (integral binary) quadratic form is an expression of the form formula_105 with formula_106 integers. A number formula_107 is said to be "represented by the form" if there exist integers formula_108 such that formula_109. Fermat's theorem on sums of two squares is then equivalent to the statement that a prime formula_82 is represented by the form formula_111 (i.e., formula_112, formula_113) exactly when formula_82 is congruent to formula_91 modulo formula_116. The discriminant of the quadratic form is defined to be formula_117. The discriminant of formula_111 is then equal to formula_119. Two forms formula_120