Source: https://www.meilleurenmaths.com/images/misyl/terminaleS/ProgrammeOfficiel/specialite/theoreme-fermat-cours.pdf