6

Solve the following system of congruences using the Chinese remainder theorem: $$\begin{align*} 2x &\equiv 3 \pmod{7} \\ x &\equiv 4 \pmod{6} \\ 5x &\equiv 50 \pmod{55} \end{align*} $$ I was a little confused how to reduce the congruences into a form where the Chinese remainder theorem is applicable.

alexwlchan
  • 2,060
Lil
  • 2,529

4 Answers4

5
  1. The first congruence takes the form $$2x \equiv 3 \pmod 7$$ so we want to find the multiplicative inverse of $2$, modulo $7$. You can use Euclid's algorithm for computing GCDs, or just think about it, and see that $4$ is the multiplicative inverse of $2$, as $$2 \times 4 \equiv 1 \pmod{7}$$ So now we multiply the congruence through by $4$, and we get $$x \equiv 3 \times 4 \equiv 5 \pmod 7$$ which is the form we want for the CRT.

  2. This congruence is already in the form we want.

  3. The third congruence is $$5x \equiv 50 \pmod {55}$$ Since the coefficient of $x$, the remainder and the modulus all have common factor $5$, we can divide through by this to get the congruence $$x \equiv 10 \pmod {11}$$ So now this congruence is in a suitable form to apply CRT.

    (For proof that this works, observe that $$55 \mid (5x - 50) \iff 5 \times 11 \mid 5\,(x - 10) \iff 11 \mid x - 10.) $$

Now you have the three congruences $$ \begin{align*} x &\equiv 5 \pmod 7 \\ x &\equiv 4 \pmod 6 \\ x &\equiv 10 \pmod {11} \end{align*} $$ the standard form, which I assume you already know how to solve.

alexwlchan
  • 2,060
  • isn't the first congruence x≡5 (mod 7) since 12-7=5? – Lil May 02 '14 at 20:56
  • @Lil: Yes, my mistake copy/pasting from top to bottom. Fixed. – alexwlchan May 02 '14 at 20:57
  • np, one more question. what is the solution to the congruence 4x≡1(mod6)? – Lil May 02 '14 at 21:01
  • @Lil: No solution exists. Observe that $4x \equiv 1 \pmod 6$ is equivalent to $6 \mid (4x - 1)$, but $(4x - 1)$ is odd for any choice of $x$, so we cannot have $6 \mid (4x - 1)$ (as $6$ is even). – alexwlchan May 02 '14 at 21:03
  • so how do you go about solving this using the chinese remainder theorem? Should I just solve the other 2 congruences and then substitute the number back in for x? – Lil May 02 '14 at 21:03
  • @Lil: You can't solve $4x \equiv 1 \pmod 6$ with CRT, because there isn’t a solution to find. Or did you mean the simultaneous congruences in the original question? – alexwlchan May 02 '14 at 21:05
  • my teacher told us to solve this using chinese remainder theorem for homework..not really sure how to go about it lol – Lil May 02 '14 at 21:06
  • @Lil: Do you mean the three congruences from the original question, or $4x \equiv 1 \pmod 6$? – alexwlchan May 02 '14 at 21:07
  • @Lil: No I don’t think $4$ is a solution. Have a look at the answers to this question for help, as I have to step away from the keyboard: http://math.stackexchange.com/questions/79282/solving-simultaneous-congruences – alexwlchan May 02 '14 at 21:12
1

The congruence $2x\equiv 3\pmod{7}$ holds if and only if $x\equiv 5\pmod{7}$. And $5x\equiv 50\pmod{55}$ if and only if $x\equiv 10\pmod{11}$. Now the problem is in "standard" form.

Remark: To get the first result, we can multiply both sides of $2x\equiv 3\pmod{7}$ by the inverse of $2$ modulo $7$. Note that $4$ is the inverse to $2$. Or more simply we replace the $3$ by $10$, and divide by $2$.

The second result comes from the general fact that if $k\ne 0$, then $ka\equiv kb\pmod{km}$ if and only if $a\equiv b\pmod{m}$.

André Nicolas
  • 507,029
  • so for the congruence: 5x≡50(mod55) you just divided everything by 5 to simplify correct? How did you simplify 2x≡3(mod7) – Lil May 02 '14 at 20:48
  • I added a bit in a remark. – André Nicolas May 02 '14 at 20:50
  • got it. Thank you so much! – Lil May 02 '14 at 20:51
  • what is the solution to the congruence 4x≡1(mod6) I can't think of any number smaller than 6 for x that makes the statement true. – Lil May 02 '14 at 20:52
  • You are welcome. The answer just posted by alexwichan has thorough explanations. – André Nicolas May 02 '14 at 20:53
  • There is none: $4x-1$ cannot be a multiple of $16$, since it is odd. In general, consider the congruence $ax\equiv b\pmod{m}$. Let $d=\gcd(a,m)$. If $d$ does not divide $b$, the congruence has no solution. (And if $d$ divides $b$, the congruence has a solution.) – André Nicolas May 02 '14 at 20:56
0

Solving x = 5(mod 7) and x = 4(mod 6) simultaneously, you get x = 40(mod 42).

Solving this result and x = 10(mod 11) simultaneously, you get x = 208(mod 462)

Which is the final answer.

0

$$2x≡3(mod 7)=> 2x≡3+7(mod 7)$$

$$x≡4(mod 6)$$

$$5x≡50(mod 55) => x≡10(mod 11)$$

3 linear congruence formed now apply CRT

$$m=7*6*11=462$$

$$M_1=66,M_2=77,M_3=42$$

$$66x≡1(mod 7) ; b_1=5$$

$$77x≡1(mod 6) ; b_2=-1$$ $$42x≡1(mod 11) ; b_3=5$$

$$x≡5*5*66+77*(-1)*(4)+42*5*10(mod 462)$$

$$x≡3442 (mod 462)$$

$$x≡208(mod 462)$$

$$x=(462)t+208; t={0,1,2,3...}$$