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