You are viewing a single comment's thread. Return to all comments →
For output a/b, does it want a*b mod (10^9 + 7)? It says Q^(-1) which is confusing because ab^(-1) = a/b.
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #213: Flea Circus
You are viewing a single comment's thread. Return to all comments →
For output a/b, does it want a*b mod (10^9 + 7)? It says Q^(-1) which is confusing because ab^(-1) = a/b.