Source: http://maths-olympiques.fr/wp-content/uploads/2017/09/stage_junior_2012.pdf