Functions.BinomialCoefficient(Int32, Int32) Method

Definition

Calculates the binomial coefficient n above k.

public static long BinomialCoefficient (int n, int k);
static member BinomialCoefficient : int * int -> int64

Parameters

n
Int32

The n.

k
Int32

The k.

Returns

n! / (k! * (n - k)!)

Applies to