I want to find out for what triples $(a,b,c) \in \mathbb{Z}^3 $ the following system of linear diophantine equations has a solution:
$$\begin{cases} 24x+\phantom{1}6z=a, \\ 24x+16y=b, \\ 32x+\phantom{1}8z=c. \end{cases}$$
I can find solutions by trying numbers, but cannot figure out how to obtain a general solution.
By computing Smith Normal Form, we get$\newcommand\bmat[1]{\begin{bmatrix}#1\end{bmatrix}}$ $$\bmat{2&0&0\\0&8&0\\0&0&0}\bmat{3&0&4\\0&1&0\\1&0&1}=\bmat{0&0&1\\1&-1&-4\\-2&3&8}\bmat{24&24&32\\0&16&0\\6&0&8}.$$ Then the image of the homomorphism \begin{align} &\Bbb Z^3\to\Bbb Z^3& &[x,y,z]\mapsto\bmat{x,y,z}\bmat{24&24&32\\0&16&0\\6&0&8} \end{align} is given by $$\bmat{a,b,c}=\bmat{x,y,z}\bmat{2&0&0\\0&8&0\\0&0&0}\bmat{3&0&4\\0&1&0\\1&0&1}=\bmat{6x,8y,8x}.$$