Skip to content

permut

Number of ordered selections (permutations) of k from n.

v = permut(number, number_chosen)

Returns n! / (n-k)! — the number of ways to arrange k items from n distinct items where order matters and items don’t repeat.

permut(10, 3) % 720
  • permutationa — Number of permutations with repetition allowed.
  • combin — Number of unordered selections (combinations) of k from n.