What multiple, m, of a, divided by b, returns a remainder that is c below m?
What formula do you use for this math question?
for example if a is 73 and b, the divisor is 97. Then what multiple, m, is to be multiplied such that the remainder is 35 below m
In this case the answer by searching is 79. That is, (79 x 73) mod 97 = 44 [44 is 35 below 79].
If I don't want to search then how to devise formula to give correct answer?
For example, if a is 475813677834783 and b, the divisor, is 37683749758978594988734958734997589341. Then what multiple, m, is to be multiplied such that the remainder is 6783687436873 below m?