I had the following exercise: \begin{equation} \begin{cases} n \equiv 1023 \bmod 2015\\ n \equiv 1302 \bmod 2016 \end{cases} \end{equation}
Since $2015$ and $2016$ are coprime, we could use the Chinese Remainder theorem to compute $n$ and then add or substract multiples of $2015 \cdot 2016$ in order to find $n$. However, this seemed a quite large computation to me, so I computed that $\text{gcd}(2015, 1023) = 31$ and $\text{gcd}(2016, 1302) = 42$. Since $2015$ divides $1023 - n$, we must have that $31$ divides $1023 - n$, which would result in $n \equiv 1023 \equiv 0 \bmod 31$, since $31$ divides $1023$. In the same way, I would get that $n \equiv 0 \bmod 42$. But this would give as a solution that $n = 0$ (or $31 \cdot 42$ depending on whether we treat $0$ as a natural number), but this is clearly not correct...
I have no idea where I made an error, so my questions are:
[1] Where did I make a mistake
[2] This method I used is clearly not right, so how could I simplify the given system of congruences to something which is easier to compute?
Thank you in advance