Source: http://mathsece.free.fr/sujetsentiers/ECRICOME_2011_E-c.pdf