I was wondering if there is a quick way how you could find (calculate, bruteforce) $m$ in $k = n \mod m$ if you know $k$ and $n$.
Asked
Active
Viewed 37 times
1 Answers
5
The one and only thing you can say is that $m$ divides $k-n$. (Depending on how you define modulo, we also have $m>n$). Noting more can be gleaned from the given information.
For instance, $15\equiv 1\pmod m$ gives us that $m$ is either $2,7$ or $14$.
Arthur
- 199,419