Source: http://gchagny.perso.math.cnrs.fr/FractionsRationnellesDES.pdf