The most commonly used pieces of code related to the topic in competitive programming.
Modular exponentiation