Skip to content

combina

Combinations with repetition allowed.

v = combina(number, number_chosen)

Returns the number of unordered selections of k from n when items may be selected more than once. Equals combin(n + k - 1, k).

combina(4, 3) % 20
  • combin — Number of unordered selections (combinations) of k from n.