Function xpg::permutations

source ·
pub fn permutations(n: u128, k: u128) -> u128
Expand description

Calculate permutations without repetition

P(n, k) = n! / (n - k)!

https://en.wikipedia.org/wiki/Permutation#k-permutations_of_n