Source: https://math.unice.fr/~walter/L1_Arith/cours1.pdf