Source: http://math.univ-lyon1.fr/irem/IMG/pdf/enonce_TD_2nde_enchainement_V2-2.pdf