Source: https://www.maths974.fr/IMG/pdf/402entrainement_rec_pyt.pdf