If $p(t)$ is the characteristic polynomial for an $n\times n$ matrix $A$, then the matrix $p(A)$ is the $n \times n$ zero matrix.

Solution.

We use the Cayley-Hamilton theorem.

The Cayley-Hamilton Theorem.
If $p(t)$ is the characteristic polynomial for an $n\times n$ matrix $A$, then the matrix $p(A)$ is the $n \times n$ zero matrix.

To obtain the characteristic polynomial for $T$, we note that the matrix $T$ is upper triangular. Thus $T-tI$ is also upper triangular and recall that the determinant of an upper triangular matrix is the product of the diagonal entries. Thus the characteristic polynomial $p_T(t)$ for $T$ is
\[p_T(t)=\det(T-tI)=(1-t)(1-t)(2-t)=-t^3+4t^2-5t+2.\]

By the Cayley-Hamilton theorem, we have
\[p_T(T)=-T^3+4T^2-5T+2I=O.\]
(Don’t forget $I$.)
Here $O$ is the $3 \times 3$ zero matrix.

This problem is actually one of the final exam problems in the linear algebra class I taught.
Of course, you may calculate them directly but most students who computed directly made calculation mistakes (unfortunately).

The second common mistake is that students jumped to conclusion that the expression $-T^3+4T^2+5T-2I$ is the zero matrix after finding the characteristic polynomial.
Those students knew that they could use the Cayley-Hamilton theorem but were a bit careless. The given expression and the characteristic polynomial are slightly different.

Anyway, I didn’t subtract many points for the second mistake.
(And you get little points if you made a mistake for a direct calculation.)

Find Values of $a, b, c$ such that the Given Matrix is Diagonalizable
For which values of constants $a, b$ and $c$ is the matrix
\[A=\begin{bmatrix}
7 & a & b \\
0 &2 &c \\
0 & 0 & 3
\end{bmatrix}.\]
diagonalizable?
(The Ohio State University, Linear Algebra Final Exam Problem)
Solution.
Note that […]

If Eigenvalues of a Matrix $A$ are Less than $1$, then Determinant of $I-A$ is Positive
Let $A$ be an $n \times n$ matrix. Suppose that all the eigenvalues $\lambda$ of $A$ are real and satisfy $\lambda<1$.
Then show that the determinant \[ |I-A|>0,\]
where $I$ is the $n \times n$ identity matrix.
We give two solutions.
Solution 1.
Let $p(t)$ be […]

Find the Nullity of the Matrix $A+I$ if Eigenvalues are $1, 2, 3, 4, 5$
Let $A$ be an $n\times n$ matrix. Its only eigenvalues are $1, 2, 3, 4, 5$, possibly with multiplicities.
What is the nullity of the matrix $A+I_n$, where $I_n$ is the $n\times n$ identity matrix?
(The Ohio State University, Linear Algebra Final Exam […]

Given the Characteristic Polynomial, Find the Rank of the Matrix
Let $A$ be a square matrix and its characteristic polynomial is give by
\[p(t)=(t-1)^3(t-2)^2(t-3)^4(t-4).\]
Find the rank of $A$.
(The Ohio State University, Linear Algebra Final Exam Problem)
Solution.
Note that the degree of the characteristic polynomial […]

Maximize the Dimension of the Null Space of $A-aI$
Let
\[ A=\begin{bmatrix}
5 & 2 & -1 \\
2 &2 &2 \\
-1 & 2 & 5
\end{bmatrix}.\]
Pick your favorite number $a$. Find the dimension of the null space of the matrix $A-aI$, where $I$ is the $3\times 3$ identity matrix.
Your score of this problem is equal to that […]

Use the Cayley-Hamilton Theorem to Compute the Power $A^{100}$
Let $A$ be a $3\times 3$ real orthogonal matrix with $\det(A)=1$.
(a) If $\frac{-1+\sqrt{3}i}{2}$ is one of the eigenvalues of $A$, then find the all the eigenvalues of $A$.
(b) Let
\[A^{100}=aA^2+bA+cI,\]
where $I$ is the $3\times 3$ identity matrix.
Using the […]

Find the Eigenvalues and Eigenvectors of the Matrix $A^4-3A^3+3A^2-2A+8E$.
Let
\[A=\begin{bmatrix}
1 & -1\\
2& 3
\end{bmatrix}.\]
Find the eigenvalues and the eigenvectors of the matrix
\[B=A^4-3A^3+3A^2-2A+8E.\]
(Nagoya University Linear Algebra Exam Problem)
Hint.
Apply the Cayley-Hamilton theorem.
That is if $p_A(t)$ is the […]