Pythagoras was well educated, and he played the lyre throughout his lifetime, knew poetry and recited Homer. He was interested in mathematics, philosophy, astronomy and music, and was greatly influenced by Pherekydes (philosophy), Thales (mathematics and astronomy) and Anaximander (philosophy, geometry).
Pythagoras left Samos for Egypt in about 535 B.C. to study with the priests in the temples. Many of the practices of the society he created later in Italy can be traced to the beliefs of Egyptian priests, such as the codes of secrecy, striving for purity, and refusal to eat beans or to wear animal skins as clothing.