nCr Function

This command is autocompleted in GeoGebra input line as command nCr(n, r).

nCr( <Number n>, <Number r> )

Calculates the binomial coefficient n \choose r , i.e. it counts the number of ways to choose r objects out of n without repetitions (combinations). As an alias, BinomialCoefficient(n, r) can be also used.

nCr(5, 3) yields 10.

In the Menu view cas.svg CAS View it is possible to use variables as command arguments: in this case the command returns a formula for the binomial coefficient.

nCr(n, 3) yields \frac{n^3 - 3 n^2 + 2 n}{6}.

See also nPr function.