mathjs/docs/reference/functions/combinations.md

506 B

Function combinations

Compute the number of combinations of n items taken k at a time

combinations(n, k)

combinations only takes integer arguments the following condition must be enforced: k <= n

Parameters

Parameter Type Description

Returns

Type Description
Number | BigNumber combinations