Chinese remainder theorem dictates that there is a unique solution if the congruence have coprime modulus.
However, what if they are not coprime, and you can't simplify further?
E.g. If I have to solve the following 5 congruence equations
$x=1 \pmod 2$
$x=1 \pmod 3$
$x=1 \pmod 4$
$x=1 \pmod 5$
$x=1\pmod 6$
as gcd (2,3,4,5,6) is not coprime, how would you do it. I have heard that you can't use the lcm of the numbers, but how does it work?
Sorry for the relatively trivial question and thank you in advance.
Break into coprime modulo-s
$$x\equiv1\pmod6\implies x\equiv1\pmod2, x\equiv1\pmod3\ \ \ \ (1)$$
$$x\equiv1\pmod2,x\equiv1\pmod4\implies x\equiv1\pmod4\ \ \ \ (2)$$
$$x\equiv1\pmod5\ \ \ \ (3)$$
Now apply CRT on $1,2,3$
But as all the residues are same, we don't need CRT.
We only need $x-1$ to be divisible by lcm$(2,3,4,5,6)$