Source: https://www.maths-france.fr/MathSpe/Problemes/E3A/2002/E3A_2002_MP_Maths3_Corrige.pdf