(a) Find the values of $k$ for which the system of equations $$
\begin{aligned}
x-y+2kz&=1,\\
kx+y+2z&=2,\\
2x-y+z&=3
\end{aligned}
$$ does not have a unique solution. [3]
(b) Given that $k=-\frac12$, show that the system in part (a) is inconsistent. Interpret this situation geometrically. [3]
(c) Given instead that $k=-1$, show that the system in part (a) is also inconsistent. Interpret this situation geometrically. [4]
The matrix $A$ is given by $$
A=\begin{pmatrix}
1&-1&-2\\
-1&1&2\\
2&-1&1
\end{pmatrix}.
$$
(d) Use the characteristic equation of $A$ to show that $$A^4=pA^2+qA,$$ where $p$ and $q$ are integers to be determined. [5]