Suppose that \(A\) is an \(n \times n\) matrix with characteristic polynomial
\[ (x-1)^n \]
Prove that if \(A^d=A^e\) for any pair \(d\ne e\) of integers, then \(A=I_n\). And no, you cannot just quote the theorem that a matrix of finite order is diagonalizable. We want you to demonstrate that you know why it is true.