Chinese remainder theorem for three equations goes like this:
The system of congruences $$x \equiv a_1 \pmod {n_1}$$ $$x \equiv a_2 \pmod {n_2}$$ $$x \equiv a_3 \pmod {n_3}$$ where $n_1$, $n_2$, $n_3$ are pairwise relatively prime, has a solution (existence of a solution).
The second part of the theorem deals with unicity of the solution.
My book justifies the existence of the solution by taking $x= \sum _{1}^3 {N_i a_i x_i}$ where $N_i = n_1 n_2 n_3 / n_i$ and $x_i$ is the inverse of $N_i$ (modulo $n_i$).
My question is how to prove the existence of the common solution without plugging in this solution provided by my book (which seems pulled out of a hat) ?
Are there some higher level maths that can come up with such a out-of-a-hat solution ?
Just wanted to know.
Thanks