Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (anonymous):

difference between a ≡ b (mod n) and a mod b?

OpenStudy (anonymous):

i know a ≡ b (mod n) means n divides (a-b)

OpenStudy (kainui):

From my understanding the whole (mod n) part is sort of just an entire perspective on an equation, not really an operator. Except instead of an equation, it's considered a congruence because they're trying to be fancy, but I think the extra notation is superfluous. So as long as you see (mod n) next to an equation I interpret that to mean I can subtract n from the equation as many times as I want or add it as many times as I want without changing the meaning of the equation.

ganeshie8 (ganeshie8):

\(a \pmod{b}\) is "THE remainder" when you divide \(a\) by \(b\) so the value will always be between \(0\) and \(b\)

ganeshie8 (ganeshie8):

\(a\equiv b \pmod{n}\) is a congruence it is equivalent to saying \(n | (a-b)\) which just means \(a-b = nk\) for some integer \(k\)

OpenStudy (anonymous):

The way I understand it the 'mod b' is not an operator. it tells that your operation is done with 'modular arithmetic system': http://en.wikipedia.org/wiki/Modular_arithmetic In such a system, values are 'replaced' by their 'modulus' value. For example in modular system of 8, then 1 is same as 9 which is same as 17, because their remainder in division in 8 is 1. They are all said to be 'equivalent' and therefore the notation: $$ a\equiv b \mod 8$$ Notice the sign \(\equiv\) (equivalent) is used to say they are 'congruent modulo' as described by wiki.

ganeshie8 (ganeshie8):

for example : \(\large 12 \pmod {5} = 2 \) \(\large 13\equiv 2 \pmod {11} \) Notice the strict differencec between an "identically equal to" and the "congruence" when using mod in both situations

OpenStudy (anonymous):

Thank you everyone :) @ganeshie8 , so is there a *formal* definition for a mod b? I can see that it's number, particularly the remainder of a/b. So if I were to say, c = a mod b, then what does this mean?

OpenStudy (anonymous):

btw, that's an *equal sign". No typo here

ganeshie8 (ganeshie8):

\(c = a\pmod{b}\) means \(c\) is the remainder when you divide \(a\) by \(b\) and \(c\) must be between \(0\) and\( b\) \(c \equiv a\pmod{b}\) means \(b|(c-a)\). for example : \(2\equiv 7 \equiv 12\equiv 17\pmod{5}\)

OpenStudy (anonymous):

:o no no no, that really *is* an equal sign.

ganeshie8 (ganeshie8):

however \(a\pmod{b}\) when used standalone evaluates to a single number

OpenStudy (anonymous):

@ganeshie8 I believe there is a misunderstanding. I know the definition a ≡ b (mod n). However, as you said, a mod b (notice there is no congruent symbol) is the remainder of a/b. Which means. a mod b is a *number*. So if i were to let c be the remainder of a/b. I.e c = a mod b, (yes, it's an =, the equal sign) then is there a definition for this equation?

ganeshie8 (ganeshie8):

c = a mod b c is the remainder when you divide a by b thats the definition

OpenStudy (anonymous):

but that's in words. Is there like an equation?

ganeshie8 (ganeshie8):

you almost never use the equality anywhere so im still not sure what you're lookign for here

OpenStudy (thomas5267):

Is mod in \(a\text{ mod }b\) a binary operator like + in \(a+b\)?

OpenStudy (anonymous):

just like a ≡ b (mod n) means, in words, "n divides the difference of a and b". But you can also say in terms of equation, nk = a - b, for some integer k <--- this is what i was preferring to but for c = a mod b instead. Does this make sense?

OpenStudy (kainui):

\[\Large \frac{5}{2} = 2 + \frac{1}{2}\] So 1 is the remainder since it can't be divided, there is no equation for the remainder.

ganeshie8 (ganeshie8):

below is the link between "congruence" and "equality" : \(c\equiv a \pmod{b}\) \(\iff\) \(c\pmod{b} = a\pmod{b}\)

OpenStudy (kainui):

Well except I guess you could say this is the equation: \[1 = 5 (mod \ 2)\]

ganeshie8 (ganeshie8):

that relation might help in appreciating the difference between using mod in a congruence and standalone

ganeshie8 (ganeshie8):

\(1 = 5\pmod 2\) is a true statement because \(1\) is the remainder when 5 is divided by 2 and \(0\le 1\lt 2\)

ganeshie8 (ganeshie8):

below is NOT a true statement : \(3 = 5\pmod{2}\)

ganeshie8 (ganeshie8):

Again below is a true statement : \(3 \equiv 5\pmod{2}\) because \(2|(3-5)\)

OpenStudy (anonymous):

huhm... maybe i was over thinking. I guess a mod b means the remainder of a/b is good enough

ganeshie8 (ganeshie8):

Yep. below is legit too : \( \sqrt{2} = \pi^2 + \sqrt{2} \pmod {\pi} \)

ganeshie8 (ganeshie8):

convince yourself by saying "a (mod b) when used standalone just means remainder" I bet you will almose never get to use a(mod b) standalone anywhere

OpenStudy (anonymous):

Ok. Thanks everyone for your time ^^

ganeshie8 (ganeshie8):

Here are some properties if you want to look at congruences using remainders http://gyazo.com/f3b22e981de6c7309737373e738743e5 but i feel this is useless because congruences are more neat and easier to make sense of directly

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!