(a) Find the values of $a$ for which the system of equations $$
\begin{aligned}
\frac32x+3y+8z&=1,\\
ax+3y+4z&=2,\\
ay-z&=3
\end{aligned}
$$ does not have a unique solution. [3]
The matrix $A$ is given by $$
A=\begin{pmatrix}
\frac32&3&8\\
0&3&4\\
0&0&-1
\end{pmatrix}.
$$
(b) Given that $B=A^{-1}$, use the characteristic equation of $A$ to show that $$B^2=pI+qA,$$ where $p$ and $q$ are constants to be determined. [4]
(c) Find a matrix $P$ and a diagonal matrix $D$ such that $$A^{-1}=PDP^{-1}.$$ [7]