Fermat’s greatest love was for a subject that is largely useless—the theory of numbers. Fermat was driven by an obsession to understand the properties of and the relationships between numbers. This is the purest and most ancient form of mathematics, and Fermat was building on a body of knowledge that had been handed down to him from Pythagoras.