The matrix $\mathbf{A}$ is given by
$$
\mathbf{A}=\begin{pmatrix}k&1&0\\6&5&2\\-1&3&-k\end{pmatrix},
$$
where $k$ is a real constant.
a. Show that $\mathbf{A}$ is non-singular. [3]
b. Given that
$$
\mathbf{A}^{-1}=\begin{pmatrix}3&0&-1\\1&0&0\\-\frac{23}{2}&\frac12&3\end{pmatrix},
$$
find the value of $k$. [2]