Combin
  • 27 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Combin

  • Dark
    Light
  • PDF

Article Summary

Calculates the "n choose k" / nCk combinatorics function for the given parameters, returning the number of ways K objects can be chosen from a pool of N objects.

Function signature

COMBIN(n: Number, k: Number) => Number
ParameterDescription
NThe size of the pool of objects to choose from
KThe number of objects to choose.

Examples

FormulaReturn value
COMBIN(5, 3)10
COMBIN(6, 3)20
COMBIN(5, 0)1
COMBIN(5, 5)1

Was this article helpful?

What's Next