Package: alexandria

Function binomial-coefficient

Lambda List

binomial-coefficient (n k)

Details

Binomial coefficient of n and k, also expressed as n choose k. This is the number of k element combinations given n choises. n must be equal to or greater then k.

Examples

 (binomial-coefficient 5 3) => 10    
 

See also

2012-12-30