Btw, you can check this yourself if you know a little bit about eigenvalues.
Did you know that each nxn matrix has n eigenvalues?
And that the determinant is the product of the eigenvalues?
And that the trace is the sum of the eigenvalues?
And the the trace of A^k is the sum of each eigenvalue^k?