site:math.stackexchange.com how to find mod value - Search