Elementary Number Theory – Solving Linear Diophantine Equations with Three Unknowns

diophantine equationselementary-number-theory

Find one integer solution to the Diophantine equation
\begin{equation*}
18x+14y+63z=5.
\end{equation*}

If this were only a linear equation over $\mathbb{Z}^2$, then I could easily solve it by using the extended Euclidean algorithm… but I have no idea how to do this with more than 2 unknowns…

Best Answer

You solve $18 u + 14 v = 2 = \gcd(18,14).$ Solve $2 w + 63 z = 1.$ Combine to get $18 x + 14 y + 63 z = 1.$ Then multiply all by $5.$