Source: https://www.math.univ-paris13.fr/~basdevan/MACS1_EDO/Exam-MACS1-1403.pdf