Source: http://mathematiques.daval.free.fr/IMG/pdf/5_ch4_Ecriture_fractionnaire.pdf