The Cayley-Hamilton theorem states that a square matrix satisfies its characteristic polynomial. If a matrix is diagonalisable, ; applying to the diagonal matrix gives zero and hence .
If , every eigenvalue satisfies , so all eigenvalues are zero and the characteristic polynomial is . Cayley--Hamilton then gives .
Solved by gpt-5.6-sol high.
Codex Wiki