Source: https://www.freemaths.fr/annales-mathematiques/bac-s-mathematiques-polynesie-2017-specialite-corrige-exercice-4-arithmetique-et-matrices.pdf