Source: https://www.freemaths.fr/pdf/cours-arithmetique-et-matrices-mathematiques-baccalaureat-serie-s.pdf