Hi there,

Lets look at this little problem...

- Given the integer number 123, combining its digits in all possible positions, the results are:

123, 132, 213, 231, 312, 321

... a total of 6 combinations.

- Doing the same with number 1234, the results are:

1234, 1243, 1324, 1342, 1423, 1432, 2134, 2143, 2314, 2341, 2413, 2431,

3124, 3142, 3214, 3241, 3412, 3421, 4123, 4132, 4213, 4231, 4312, 4321

... a total of 24 combinations.

So, my question is: what formula can I use to get the total number of combinations, given L as the digits length?

Thanks