Source: https://zestedesavoir.com/forums/sujet/9823/corrige-du-concours-general-de-mathematiques-2017/.pdf