theoryofprogramming.wordpress.com
Modular Arithmetic Properties
In competitive programming, modular arithmetic is an essential tool in solving big number problems. In the problem statement, whenever they say, “print the answer $latex \bmod (10^{9} + 7) &a…