How to solve (a! / (b! * c!)) % mod
. Here a!
is factorial of a
.
Just as (a + b) % mod = (a % mod + b % mod) % mod
I know to calculate (a * b) % mod
.
But how to take modulus of this type of function?
UPDATED: Whats the best way to find (a / (b * c)) % mod
.
Here mod
is prime number.