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
Euclidean geometry knowledge of geometry. Its improvement over earlier treatments was rapidly recognized, with the result that there was little interest in preserving the earlier ones, and they are now nearly all lost. There are 13 books in the "Elements": Books I–IV and VI discuss plane geometry. Many results about plane figures are proved, for example "In any triangle two angles taken together in any manner are less than two right angles." (Book 1 proposition 17 ) and the Pythagorean theorem "In right angled triangles the square on the side subtending the right angle is equal to the squares on the sides