Ask
your own question, for FREE!
Mathematics
21 Online
OpenStudy (anonymous):
-18 mod 7
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
I thought it was -4
OpenStudy (anonymous):
but its really 3...
OpenStudy (anonymous):
Isnt mod just the remainder of the first operator divided by the second?
OpenStudy (anonymous):
Hi jimmyrep
OpenStudy (anonymous):
it is all the same
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
Then why does 18 mod 7 = 4
OpenStudy (anonymous):
equivalent is the actual word
OpenStudy (anonymous):
But -18 mod 7 = 3?
OpenStudy (anonymous):
\[18\equiv 4(\text { mod } 7)\]because
\[18=2\times 7+4\]
OpenStudy (anonymous):
\[-18=-3\times 7+3\]
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
hmm
OpenStudy (anonymous):
So is an alternative way of thinking of mod for negative numbers
OpenStudy (anonymous):
7 * whatever makes the product closest to the first operand f mod
OpenStudy (anonymous):
then the mod is the difference between that product and the first operand of mod
OpenStudy (anonymous):
so 7*-3 = -21
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
-18 - (-21) = 3
OpenStudy (anonymous):
yes i think that is a good way to think of it
OpenStudy (anonymous):
Ok thanks
OpenStudy (anonymous):
these are equivalence classes so you have
\[18\equiv 4(\text{ mod } 7)\equiv 11 (\text { mod } 7) ...\]
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
the remainder would be 3 also?
OpenStudy (anonymous):
-7 mod 5 = 5*-2 +3
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!