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

Combina

  • Dark
    Light
  • PDF

Article Summary

Calculates the "n choose k" / nCk combinatorics function for the given parameters, with object replacement.

Returns the number of ways K objects can be chosen from a pool of N objects, with every chosen object returned to the pool after choosing it.

Function signature

COMBINA(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
COMBINA(5, 3)35
COMBINA(6, 3)56
COMBINA(5, 0)1
COMBINA(5, 5)126

Was this article helpful?

What's Next