Source: http://opmaths.fr/sites/default/files/ExercicesProbasArbres1819_1.pdf