Source: https://www.math.sciences.univ-nantes.fr/~lavancie/enseignement/Formation_secondaire/poly-exercices.pdf