Source: https://happymaths.pagesperso-orange.fr/fic6g/6_G3_exercices3.pdf