Solve the system of congruences \begin{cases} x \equiv 1\ (\textrm{mod}\ 3) \\ x \equiv 4\ (\textrm{mod}\ 5) \\ x \equiv 6\ (\textrm{mod}\ 7)\end{cases}
I'm trying to learn about the Chinese Remainder Theorem and tried some problems as this.
I started with $x \equiv 6\ (\textrm{mod}\ 7)$ implying that $x=7k+6$ for some $k$. Then substituting this for $x \equiv 4\ (\textrm{mod}\ 5)$ I would get $7k+6 \equiv 4\ (\textrm{mod}\ 5)$. However here I got stuck, the proposed solution stated that I would have to solve
$$7k+6 \equiv 4\ (\textrm{mod}\ 5)$$
for $k$ and that it would result in $k\equiv 4\ (\textrm{mod}\ 5).$ I don't see how this would be possible. Solving $7k+6 \equiv 4\ (\textrm{mod}\ 5)$ for $k$ would result in $k\equiv \frac{-2}{7}\ (\textrm{mod}\ 5)$?
Yes it results , and $\ k\equiv \frac{-2}{7}\ \equiv \frac{-2}{7-5}\ =-1 \equiv 4\ (\textrm{mod}\ 5)$
So, $$x \equiv 34\ (\textrm{mod}\ 35)$$
Also, $$x \equiv 1\ \equiv 34\ (\textrm{mod}\ 3)$$
Hence, $$x \equiv 34\ (\textrm{mod}\ 105)$$