The module provides some combinatorics method used in cuby.
Combinatorics.factorial(n)
Calculates factorial of n
Combinatorics.nth_permutation(array,n)
Return Nth permutation of an array
Combinatorics.each_permutation(array)
Iterate over all permutations of the array