Binomial coefficients

### 12.1.2 Binomial coefficients

The comb or nCr command computes the binomial coefficients.

- comb takes two arguments: n and p, integers.
- comb(n,p) returns (pn)=Cnp.

#### Example

comb(5,2)

10 |  |  |  |  |  |  |  |  |  |

##### Remark.

The binomial command (see Section 19.4.3) can also compute the binomial coefficients, but unlike comb and nCr it can take an optional third argument, a real number a, to compute the binomial distribution.