Source: https://www.maths-france.fr/MathSpe/Problemes/Centrale/2015/Centrale_2015_MP_M2_Enonce.pdf