Source: http://depmath-nancy.univ-lorraine.fr/club/docs/1718/171011moyennes.pdf