Combinations

Computes the number of ways to choose k elements among n: Error converting from MathML to accessible text..

combinations(Integer, Integer)

Given two integers n and k, returns the number of ways to choose k elements among n: open parentheses n over k close parentheses.

combinations(List | Vector, Integer)

Given a list or vector L and an integer k, returns a list with all the possible ways to choose k element among L.