binomialCoefficient

Computes the binomial coefficient. Computes the number of combinations of size k that can be formed from n distinct objects.

Return

the binomial coefficient

Parameters

n

The total number of distinct items

k

The number of subsets


Computes the binomial coefficient. Computes the number of combinations of size k that can be formed from n distinct objects.

Return

the coefficient

Parameters

n

The total number of distinct items

k

The number of subsets