Source: https://www.math.univ-paris13.fr/~vallette/Cours/Cours L2MASS/Examen Final (décembre 2012) - CORRECTION.pdf