Let
$$ A= \begin{pmatrix} 0 & 1 & 2 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \\ \end{pmatrix} $$
For how many $n$ is there a matrix $X$ such that $X^n=A$?
Let
$$ A= \begin{pmatrix} 0 & 1 & 2 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \\ \end{pmatrix} $$
For how many $n$ is there a matrix $X$ such that $X^n=A$?
Hint: what could be the minimal polynomial of such an $X$?