Source: https://www.univ-irem.fr/IMG/pdf/Malika_polycop_sujet.pdf