Source: https://www.meilleurenmaths.com/images/misyl/maths-expertes/arithmetique-theoreme-fermat-cours-5.pdf