Source: http://perso.math.univ-toulouse.fr/ktanguy/files/2020/03/Chapitre-2-Divisibilite%CC%81-et-congruences.pdf