Description Usage Arguments Details Value Note Examples
Permutations are arrangements of objects (with or without repetition), order does matter. A permutation with repetition is an arrangement of objects, where some objects are repeated a prescribed number of times.
1 | permutation(n, ...)
|
n |
numeric: number of elements to select from |
... |
numeric: number of repetitions copies |
without repetitionP(n)=n!
with repetitionP(n,k_1,k_2,...)=\frac{n!}{k_1!k_2!...}
numeric
If k_1+k_2+... < n then it assumed that for the rest the number of copies is always one.
1 2 3 | permutation(10)
permutation(10, 5, 3) # equivalent to permutation(10, 5, 3, 1, 1)
permutation(10, 5, 3, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.