Question 1: Given the system$$\begin{align*} & x\equiv 3\mod 4\tag{1}\\ & x\equiv 2\mod 5\tag{2}\\ & x\equiv 5\mod 11\tag{3}\end{align*}$$ Solve for $x$ using the Chinese Remainder Theorem.
I was taught that the remainder theorem says that given$$\begin{align*} & x\equiv b_1\mod n_2\tag4\\ & x\equiv b_2\mod n_2\tag5\\ & \cdots\cdots\cdots\cdots\cdots\cdot\tag6\\ & x\equiv b_r\mod n_r\tag7\end{align*}$$ Then $x\equiv b_1c_1\dfrac {N}{n_1}+b_2 c_2\dfrac {N}{n_2}+\cdots+b_rc_r\dfrac {N}{n_r}\mod N$ where $N=\prod\limits_{n=1}^r n_r$ and $c_i\dfrac N{n_i}\equiv 1\mod n_i$.
Using this, we have $(b_1,b_2,b_3)=(3,2,5)$ and $(c_1,c_2,c_3)=(1,2,1)$. Hence, $x\equiv 120\equiv 0\mod 30$. Which is obviously wrong.
By trial and error, I found the answer to be $27$.
Questions:
- How do I solve for $x$, and what went wrong in my follow through?
- Is there an easier way to calculate $c_i\frac {N}{n_i}\equiv1\mod n_i$ (I believe this is called the inverse)?