0

Good afternoon,

I am trying to understand congruence, I could really use your help. First time I am using this.

I'm working with the congruence formula of ax ≡ b (mod n)

I'm following this YouTube explanation of Chinese Remainder Theorem | Sun Tzu's Theorem and she has the following congruence:

35x ≡ 1(mod 3)

She then reduces it to:

2x ≡ 4(mod 3)
 x ≡ 2(mod 3)

for 35x, I am assuming we need a number that will result in the modulus of 35 % 3 == 2 Easy enough.

How is she coming up w/ 4? 1 % 3 is 1 so my assumption for 35x won't work here.

...and for the final line of x ≡ 2(mod 3), is it because she divided both sides by 2?

Thanks for your help!

KingFish
  • 113
  • 2

2 Answers2

0

I'm not quite sure where the $4$ came from. But as you said, you can reduce it to $$2x \equiv 1 \pmod 3.$$ In mod $3$, $2$ is the inverse of $2$, since if you multiply $2$ by $2$, you get 1, i.e. $2\times 2 \equiv 1 \pmod 3.$ So consider multiplying both sides of the equivalence by $2$. Then you get $$4x \equiv 2 \pmod 3.$$ But notice that $4x \equiv x \pmod 3,$ so you get that $$x \equiv 2 \pmod 3.$$

As another example, suppose you have that $$2x \equiv 1 \pmod 5.$$ Can you find the inverse of $2$ in mod 5, then solve the problem from here?

Actually, this notion of inverse is a little tricky. Consider the equation $$3x \equiv 1 \pmod 6.$$ This equation actually has no solutions, and the point here is that $3$ does not have an inverse mod $6$, so you can't multiply both sides of the congruence by a number to remove the $3$ on the left. In general, if you have a congruence $$ax \equiv b \pmod m,$$ you want to write $$x \equiv a^{-1} b \pmod m,$$ where $a^{-1}$ is the inverse of $a$. When $a$ and $m$ are relatively prime (meaning they have no factors in common), then $a$ will have an inverse mod $m$. In your question, you mentioned something about dividing both sides by 2. Division isn't really the right way to think about it; the right way to think about it is finding the inverse and multiplying both sides by it.

Alan Chung
  • 1,182
0

That is because $4 \equiv 1 \pmod{3}$. Take remainder of $4$ after dividing by $3$ and it is congruent to $1 \pmod{3}$. Since she has $2x \equiv 4 \pmod{3}$ and $\gcd(2,3) = 1$, you can apply the cancellation rule and cancel $2$ out to get $x \equiv 2 \pmod{3}$.

vvg
  • 3,311