Source: https://www.imj-prg.fr/~mathieu.mansuy/pdf/MM0804-capes-correction.pdf