Combinations


Combinations(k, n)

«n» choose «k». The number of unique ways that «k» items can be chosen from a set of «n elements (without replacement and ignoring the order).

Library

Advanced math

Example

Combinations(2, 4) → 6

They are: {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4}

See Also

Comments


You are not allowed to post comments.