1 year ago

#174019

test-img

Ashu Sahu

how to simplify modulo arithmetic expression containing a division operation?

my question is very simple.

The expression ((a + b) * c) % m can be simplified to

= (((a + b) % m) * (c % m)) % m
= ((((a % m) + (b % m)) % m) * (c % m)) % m    

I am trying to simplify the expression ((a + b) / c) % m. what would be the simplified modulo form of this?

c++

math

modulo

arithmetic-expressions

0 Answers

Your Answer

Accepted video resources