We are given a matrix $M$ of $\mathrm{GL}_n(\mathbb{R})$ whose coefficients are all natural integers and such that the set formed by all coefficients of all successive powers of $M$ is finite.
Prove that $M^{-1}$ has coefficients in $\mathbb{N}$ and deduce that $M$ is a permutation matrix. What can be said of the converse?