So I have a list of equations and have made it into REF which gives me
$$\left[\begin{matrix}1 & -1 & 1 \\ 0 & 1 & -1 \\ 0 & 0 & 0\end{matrix}\middle|\begin{matrix}1 \\ 2k-k^{2} \\ -2k^{2}+k-3\end{matrix}\right]$$
How do I tell what values this is consistent for? I think it's $k=1$, $k=3/2$ and $k=2$ however, when I put $k=1$ into the system I get the following:
$x-y+z=1$, $y-z=1$ and $0=-4$ the last part of which obviously doesn't make much sense? Some help please!
EDIT: the original matrix was:
$$\left[\begin{matrix}1 & -1 & 1 \\ 1 & -2 & 2 \\ 2 & -1 & 1\end{matrix}\middle|\begin{matrix}1 \\ (k-1)^{2} \\ -k^{2}+3k-1\end{matrix}\right]$$
The system is consistent if $-2k^2 + k - 3 = 0 \iff 2k^2 - k + 3 = 0$, but this equation has no real solution since $\triangle = (-1)^2 - 4\cdot 2\cdot 3 = -23 < 0$, which means it is inconsistent.