SOLUTION: I need some help understanding modula.
I put -101 mod 3 into a mod calculator and the answer comes up as 3.
Shouldn't it be 2?
-101 / 3 = 33 with 2 remaining.
Or does it change
Algebra ->
Sequences-and-series
-> SOLUTION: I need some help understanding modula.
I put -101 mod 3 into a mod calculator and the answer comes up as 3.
Shouldn't it be 2?
-101 / 3 = 33 with 2 remaining.
Or does it change
Log On
Question 921969: I need some help understanding modula.
I put -101 mod 3 into a mod calculator and the answer comes up as 3.
Shouldn't it be 2?
-101 / 3 = 33 with 2 remaining.
Or does it change somehow with a negative? Found 2 solutions by rothauserc, Theo:Answer by rothauserc(4718) (Show Source):
You can put this solution on YOUR website! You handle the same way you handle positive numbers.
29 ≡ 2 (mod 3)
-101 ≡ -2 (mod 3)
definition of modulus
a congruent b mod m
our example is -101 congruent b mode 3, implies that
-101 -b = 3k for some integer k and therefore -101 -b / 3
-101 -(-2) / 3 = -99 / 3, says that
-101 is congruent to -2 mod 3