예제 #1
0
 public static BigInteger BinomialCoefficient(BigInteger n, BigInteger k)
 => (n.Factorial() / (k.Factorial() * (n - k).Factorial()));
예제 #2
0
 protected BigInteger Evaluate(BigInteger n, BigInteger r)
 {
     return n.Factorial() / (r.Factorial() * (n - r).Factorial());
 }