I have an exercise of finding a number that satisfies two congruences.
$$ \left\{ \begin{array}{cc} x &\equiv 10 \mod 30 \\ x &\equiv 5 \mod 101 \end{array} \right. $$
The exercise suggests 4 steps to solve:
Step 1: find integers $s$ and $t$ such as $30s + 101t = 1$
Step 2: use s and t to find a number satisfying:
$$ \left\{ \begin{array}{cc} a &\equiv 10 \mod 30 \\ a &\equiv 0 \mod 101 \end{array} \right. $$
Step 3: use s and t to find a number satisfying:
$$ \left\{ \begin{array}{ccc} b &\equiv& 0 \mod 30 \\ b &\equiv& 5 \mod 101 \end{array} \right. $$
Step 4: use the result from step 2 or 3 to find x. ($x \equiv 10 \mod 30 $,$x \equiv 5 \mod 101$)
I went through the first 3 steps without problems, but I dont't know how to do step 4 since I could also use s and t to find x (without going to step 2 or 3).
Thank you
writing $$x=10+30m$$ and $$x=5+101n$$ where $m,n$ are integers. From here we get $$5=101n-30m$$ this is an linear Diophantine equation in $m,n$.Solving this equation we get $$n=84+101C,n=25+30C$$ where $C$ is an integer