Currently using `(n % m + m) % m` which looks hideously overcomplicated. sure it passes tests, but there's gotta be a better way of doing it?