Source: https://www.unilim.fr/pages_perso/stephane.vinatier/Meef-ari/arithmetique-dm-corr.pdf