Source: https://www.maths-france.fr/MathSpe/Problemes/Mines/2019/MinesPonts_2019_MP_M2_Enonce.pdf