What is the modular multiplicative inverse of the equation in C++?

Given equation:
Result=(m*(1-pow(m,l))) / (1-m);

Result should be printed of modulo 1000000007

What will be the modular multiplicative inverse of the equation in C++?
Topic archived. No new replies allowed.