Talk:2010 AMC 10A Problems/Problem 24

I do not understand the before last calculation: $N=\frac {M}{2^{21}}\equiv\frac{24}{2}\pmod{25}=12\pmod{25}$. If a (mod x) = m and b (mod x) = n, that does not mean that a/b (mod x) = m/n.