Source: https://www.ac-orleans-tours.fr/fileadmin/user_upload/maths/Faire_des_maths/olympiades/Enonces/Olympiades_2013_sujet.pdf