I need to do integer division, that is floor of A/B. Eg: 5/2 = 2.
Now consider the modulo to be prime, multiplying A with inverse of B and taking modulo is wrong.
What I said above is true because , 6 * inverseOf(2) = 3. But 5 * inverseOf(2) is not equal to 2.
So how can I do this?