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$.
2026-04-04 20:07:01.1775333221
Recover $m$ from $k = n \mod m$ when $k$ and $n$ are known
38 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
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$.