Friday, June 9, 2017

modular arithmetic - Negative Modulo confusion

$$ x \equiv -74 \ mod \ 31 $$




According to Google & Wolframalpha the answer is 19



Following the method in this answer and using this answer I get 12. Using my calculator with this answer yeilds 12 also.



What answer is right? If the web is correct, how do they come about that answer?

No comments:

Post a Comment

analysis - Injection, making bijection

I have injection $f \colon A \rightarrow B$ and I want to get bijection. Can I just resting codomain to $f(A)$? I know that every function i...