Source: https://renerollin.pagesperso-orange.fr/renerollin/math2/rallye/demi_finale_2008/livret.pdf