I have posted this question originally in Stack Overflow.
The question is, "Is there a mathematical approach in getting the reverse of the Modulo Operator with given result $r$ and divisor $d$?"
So, the Modulo Operator % gives the remainder when dividing two numbers:
3 % 2 = 1
I will be asking the same question here.
Is there a mathematical approach in getting the reverse of the Modulo Operator with given result $r$ and divisor $d$?
NOTES:
As I have stressed in the SO question, the answers should be limited to numbers which can be converted to a valid time in the format HHMMss.xxx where HH is the 24-hour respresention of hours, M is the minutes, s as seconds and x as millisecond. You need not worry about that part though because I can do a checking using Regex for that. You can check my updated question in SO.
1 % 2 = 1. – Robert Soupe Mar 20 '18 at 15:05