I feel so very stupid right now. I understand modulus...this is not a hard task. What I am having difficulty with is how to calculate something similar to above (a = b (mod m) <-- note parenthesis, this makes it different from modulus). I am writing the answer to a Java project for my Discrete Math class. I have searched google, answers.com and neowin for how to calculate this, but to no avail. I think I need to take a break and see if I can get some neowin assistance.
What I do know is that a -13 should be a multiple of 2436...however when I do this I don't get the same answer my professor, and sites on the internet show.
Also a mod m == b mod m. But that doesn't seem to work for me either.
Is anybody on Neowin able to help here? Thank you!
Question
spartyjohnson
I feel so very stupid right now. I understand modulus...this is not a hard task. What I am having difficulty with is how to calculate something similar to above (a = b (mod m) <-- note parenthesis, this makes it different from modulus). I am writing the answer to a Java project for my Discrete Math class. I have searched google, answers.com and neowin for how to calculate this, but to no avail. I think I need to take a break and see if I can get some neowin assistance.
What I do know is that a -13 should be a multiple of 2436...however when I do this I don't get the same answer my professor, and sites on the internet show.
Also a mod m == b mod m. But that doesn't seem to work for me either.
Is anybody on Neowin able to help here? Thank you!
Link to comment
https://www.neowin.net/forum/topic/553858-calculating-13-mod-2436-modulo/Share on other sites
11 answers to this question
Recommended Posts