An explanation of some of Fermat’s discoveries.