[Solved] Need help in mod 1000000007 [closed]
Method 1: Think of how you would compute 500! / (20! * 20! * 20! * …) normally. Don’t multiply everything out and divide at the end. Do your divisions in the middle. Then combine this with the modulus reductions from your previous question. Method 2: Prime factorize 500! and 20!. Then subtract out the … Read more