How to calculate (a! / b!) % mod

Revision en1, by DonMichaelCorleone, 2016-05-09 12:28:25

How to calculate (a! / b!) % mod where n is 1<=n<=20000000, m is 1<=m<=n and mod is a positive integer ?

Tags number theory, factorial, combinatorics, modular arithmetic

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English DonMichaelCorleone 2016-05-09 12:28:25 137 Initial revision (published)