Wednesday, January 3, 2018

Why can I cancel in modular arithmetic when working modulus a prime number?

Working modulus a prime number in modular arithmetic let's you cancel factors in a congruence equation. Let p and k be integers, p a prime number and k not a multiple of p:



akbk(modn)



We can multiply by a constant on each side and maintain the congruence. Let this constant be a multiplicative inverse of k (which is guaranteed to exist in this case).



akk1bkk1(modn)




Why is it that I can now justify canceling the initial k? kk1 gives some integer m, which when divided by n gives remainder 1. But what is the property that takes me from ambm(modn) to ab(modn)?

No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...