Source: https://www.maths-france.fr/MathSpe/Problemes/Centrale/2010/Centrale_2010_MP_M2_Enonce.pdf