Skip to content

permutationa

Number of permutations with repetition allowed.

v = permutationa(number, number_chosen)

Returns n^k — the number of ordered selections of k items from n when repetition is allowed.

permutationa(3, 2) % 9 (3^2)
  • permut — Number of ordered selections (permutations) of k from n.