Source: http://laroche.lycee.free.fr/telecharger/TS/exercices/APMEP_2012_Chaines_de_Markov.pdf