Description Usage Arguments Value Author(s) Examples
Create the ith permutation in a series from 1 to factorial(n).
1 | perm(moves,n)
|
moves |
the number of moves, a number between 1 and factorial(n), but in principle higher numbers can be used too. |
n |
the number of elements in the permutations |
A numerical vector consisting of n elements.
Joost van de Weijer
1 | perm(345453,17) # Create the 345453th permutation of the numbers 1 to 17.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.