combin() Function

Calculates the number of unique ways to choose m elements from a pool of n elements.

Syntax

combin( n, m )

n: (Integer) The number of elements that can be chosen from.

m: (Integer) The number of elements that will be chosen from the pool of n elements.

Returns

Decimal

Examples

You can experiment with this function in the test box below.

Test Input

combin(4,2) returns 6

FEEDBACK