Observe that matrix \( A \) is almost diagonal, and \( A = D + N \), where \( D \) is a diagonal matrix and \( N \) is nilpotent. Alternatively, directly compute or note that all diagonal elements are 5 and \( A \) is upper triangular.
\[ A^3 = \left[ \begin{array}{ccc} 5 & 0 & 0 \\ 3 & 0 & 5 \\ 0 & 0 & 5 \end{array} \right]^3 \] Because the eigenvalues on the diagonal repeat under powers and rest vanish for off-diagonal terms, the cube of this matrix has 125 on the diagonal and 0 elsewhere.