I want to solve the following system of congruences: $$ x \equiv 1 \bmod 2\\ x \equiv 2 \bmod 3\\ x \equiv 3 \bmod 5$$ By checking all small numbers, I got $x=23$ as smallest solution. I think that all $x$ of the form $23 + k \cdot 30$, $k \in \mathbb{Z}$ are solutions but I don't see how to prove it.
Also can this be generalized to divisors which aren't pairwise coprime like $2,3,5$ above? If yes, are my solutions then of the form $x_0 + k\cdot lcm(d_1,...,d_n)?$ If yes, how do I prove this?