I was reading this short book about Modular arithmetic, towards the end (Chapter 6.3) it provided a fast way to solve a linear system of congruences, instead of solving two of them at a time. Here's an example of how it works:
$x ≡ 2 (mod 3)≡ 2 (mod 4)≡ 1 (mod 5)$
then it write x as a "sum of three modular parts":
$x ≡ 4 · 5x_3 + 3 · 5x_4 + 3 · 4x_5 $
and it solves each part indipendently:
$x ≡ 4 · 5x_3 ≡ 20x_3 ≡ 2x_3 ≡ 2 (mod 3) ⇒ x_3 ≡ 1 (mod 3)$
$x ≡ 3 · 5x_4 ≡ 15x_4 ≡ −x_4 ≡ 2 (mod 4) ⇒ x_4 ≡ −2 ≡ 2 (mod 4)$
$x ≡ 3 · 4x_5 ≡ 12x_5 ≡ 2x_5 ≡ 1 ≡ 6 (mod 5) ⇒ x_5 ≡ 3 (mod 5)$
and at the end it substitute the values that it found: $x ≡ 4 · 5 · 1 + 3 · 5 · 2 + 3 · 4 · 3 ≡ 86 ≡ 26 (mod 60)$
I don't understand why this is true and when this is true, I have tried with a few systems and when the gcd of the modulus isn't 1 it doesn't work. (the explanation on the book is: The reason these coefficients ensure independence is that if we look at x in a given modulus, the irrelevant parts disappear. For instance, (mod 4) or (mod 5), the (mod 3) part 4 · 5x3 disappears, but (mod 3), 4 · 5x3 is all that remains) Online I haven't found this method, does it have another name? Is there a place that explains this way of solving system of congruences and gives a proof of why it works?