I'm trying to use the null space method to balance the following equation:
.
I obtained the following composition matrix:
$$\begin{bmatrix}
3 & 8 & 1 & 12 & 4 & 2 \\
1 & 0 & 0 & 1 & 0 & 0 \\
4 & 4 & 3 & 40 & 3 & 1 \\
0 & 2 & 1 & 3 & 1 & 0 \\
0 & 1 & 0 & 12 & 0 & 0
\end{bmatrix}$$
where rows are in order H P O N Mo. I take the rref of this matrix, and augment it with one row of zeroes except the last element is 1. Taking the inverse of that matrix, I get $$\begin{bmatrix}
\frac{1}{51} & \frac{4}{17} & \frac{35}{51} & -\frac{1}{51} & -\frac{56}{51} & 1\\
\end{bmatrix}.$$
After scaling the elements by 51 I would get the end result of coefficients: 1, 12, 35, 1, 56, 51 which does not at all balance the equation. A correct solution would be 1, 12, 21, 1, 21, 12.
I have used the exact same steps to balance other equations. What am I doing wrong?