Hello,
Is there any function that gives the min congruent of an integer?
For example, the congruents of "23 mod 3" are the numbers: 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, … ( WolframAlpha 's result )
The minimum congruent is 5.
Is there a function that takes as inputs 23 and 3, and gives as output this minimum congruent 5 ?
Best Answer