Source: http://www.fatouxmatheux.com/5emes/Sequences/5ALG_10NC_NOMBRES_RATIONNELS.pdf