Solve the linear congruence $18x \equiv 30 ~(mod ~42)$.
Example: Solve the linear congruence $18x \equiv 30 ~(mod ~42)$. Answer: Since $gcd(18, 42) = 6$ and $6$ divides $30$, by Theorem , given linear congruence $18x \equiv 30 ~(mod ~42)$ has $6$ mutually incongruent solutions modulo $42$. We will find first solution by trial and error method. We will consider simple values of $x$ as $1, ~-1,~ 2,~ -2,~ \cdots $ and check which value satisfy given linear congruence $18x \equiv 30 ~(mod ~42)$. When we take $x = 1, ~-1,~ 2,~ -2,~3, ~ -3$, we observe that $x =1, ~-1,~ 2,~ -2,~3$ are not a solution of $18x \equiv 30 ~(mod ~42)$. Now, we take $x = -3$, we observe that $x = -3$ is a solution of $18x \equiv 30 ~(mod ~42)$. But $-3 \equiv 39 ~ (mod~ 42)$, So $x_{0} = 39$ is a solution of a given linear congruence $18x \equiv 30 ~(mod ~42)$. By Theorem , other solutions of given linear congruence $18x \equiv 30 ~(mod ~42)$ are given by $x_{1} = 39 + \frac{42}{6} = 39 + 7 = 46 \equiv 4~ (mod ~ 42)$,...