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

Apr 2, 2015 at 6:22pm
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.