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
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: