The matrix $A$ is given by $$
A=\begin{pmatrix}
6&-8&7\\
7&-9&7\\
6&-6&5
\end{pmatrix}.
$$
(i) Given that $\begin{pmatrix}1\\1\\0\end{pmatrix}$ is an eigenvector of $A$, find the corresponding eigenvalue. [2]
(ii) Given also that $-1$ is an eigenvalue of $A$, find a corresponding eigenvector. [2]
(iii) It is given that the determinant of $A$ is equal to the product of the eigenvalues of $A$. Use this result to find the third eigenvalue of $A$, and find also a corresponding eigenvector. [3]
(iv) Write down matrices $P$ and $D$ such that $P^{-1}AP=D$, where $D$ is a diagonal matrix, and hence find the matrix $A^n$ in terms of $n$, where $n$ is a positive integer. [6]