Source: https://www.math.univ-toulouse.fr/~slamy/teaching/L3anneaux/exam_partiel_corrige.pdf