T
T
timkin12018-09-05 23:59:03
C++ / C#
timkin1, 2018-09-05 23:59:03

How to find the quotient of dividing a number by numbers modulo m?

Hello!
Given two numbers a and b, how to find (a/b) mod m?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2018-09-06
@jcmvbkbc

Given two numbers a and b, how to find (a/b) mod m?

Divide a by b and take the result modulo m.
Here is such an almost useless answer to a uselessly posed question.
Hint: the other answer implies some kind of optimization, and for this the question lacks the expected values ​​of a, b and m and the expected performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question