Source: http://math.univ-lille1.fr/~fricain/M1-ARITHMETIQUE/feuille-exo1.pdf