Sunday, 28 April 2019

Calculating Modular Arithmetic in the below way

How do I calculate:





a(modc)+b(modc)




using the modular arithmetic:




(a+b)(modc)=(a(modc)+b(modc))(modc)





For example, assuming that a=14,b=17 and c=5;



(a+b)(modc)=(a(modc)+b(modc))(modc)



31(mod5)=(4+2)(mod5)



I just want 6(4+2) to be the output.



One way to calculate it is to perform (a(modc)+b(modc)).




But how do I calculate that value without performing in the above mentioned way but by using (a+b)(modc) ?

No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...