Source: https://happymaths.pagesperso-orange.fr/fic5g/5_G1_exercices1.pdf