I want to find the total of possible unique combinations of numbers
example:
- 1234 = 24 combinations
- 1233 = 12 combinations
- 55666 = 10 combinations
can I use math formula to calculate this ?
thanks
I want to find the total of possible unique combinations of numbers
example:
can I use math formula to calculate this ?
thanks
Let's say you have a string of length 5: $$ABCDE$$ How many different permutations of this string exist? You have 5 possible letters for Position 1, 4 for Position 2, 3 for Position 3, 2 for Position 4 and 1 for Position 5. So in total: $5!$
Now look at the following string: AABCD Still, you'd have $5!$ permutations of this string. But not all of them are different as we have 2 A's. The positions of the A's can be switched and the string doesn't change. How many ways are there to switch the A's in a string?
$$2!$$
So the answer would be: $$\frac{5!}{2!} = 60$$
One more example. For 'AAABC' you'd get $$\frac{5!}{3!}$$. Does this make it more clear? What don't you understand exactly?
– Doc Jul 22 '15 at 07:56AABCD the combinations of AA are 2! does not consider whole combinations like ABACD, ABCDA, ABCAD. These each have '2!' combination when switching A. So the final unique combinations for 'AABCD' would be far less than 60.
– Omkar Khair
Jan 15 '17 at 06:29