Source: https://perso.univ-rennes1.fr/matthieu.romagny/M1ALGB1213/exos_chap1_corrige.pdf