Source: https://www2.ac-lyon.fr/lyc01/cotiere/IMG/pdf/Correction_du_devoir_surveillA_c_trigo.pdf