I have a congruence system to solve, that I actually tried to solve. The problem is that I'm not sure that I did it right, because at the end I cannot find a proper number that will be working fine for all of the equations.
$x≡6(mod7)$
$x≡7(mod13)$
$x≡4(mod5)$
$x≡7(mod11)$
At the end I have a equation like:
$x=7k+6 = 7(13y+1)+6 = 91y+13 = 455z-806 = 455(11b+813/455) = 11b + 7$
So at the end there is this nice reduction of 455. I thought it was a good sign that I did everything properly. Neverthless, whichever $b$ I can think of, the answer is not right for all of the congruences above. I tried $n = 0, 1, 2, 3, ... 10 (x=7, 18, 19, 29, 40, 51 ...)$ and I cannot find a proper answer. How to easily deal with such tasks?
Thank you for any advices!
$$x \equiv\, 6 \mod 7 \implies x = 7a+6 \quad\color{red}{\text{ (1.)}}$$
From $ \color{red}{\text{(1.)}}$
$$x \equiv\, 7 \mod 13 \implies 7a+6\equiv 7 \mod13 \implies a = 13b+2 \quad\color{blue}{\text{ (2.)}}$$
From $ \color{blue}{\text{ (2.)}}$
$$x \equiv\, 4 \mod 5 \implies 91b+20\equiv 4 \mod5 \implies b = 5c+4 \quad\color{green}{\text{ (3.)}}$$
From $ \color{green}{\text{ (3.)}}$
$$x \equiv\, 7 \mod 11 \implies 455c+384\equiv 7 \mod11 \implies c = 11d+2 \quad\color{orange}{\text{ (4.)}}$$
Using all the congruence , we arrive at :
$$\begin{align}x & = 7a+6 = 7(13\,b+2)+6 = 7(13(5\,c +4) +2)+6 = 7(13(5(11\,d+2)+4)+2)+6\\ x & = \color{navy} {\boxed{5005\,d +1294}} \end{align}$$