Source: https://perso.math.univ-toulouse.fr/ktanguy/files/2020/03/Exercices-STMG-Loi-Bernoulli.pdf