My problem is that I'm getting different answers with two different approaches:
Approach 1:
I have taken two cases:
Case 1: $2$ alike, $2$ alike, $2$ different
Number of ways of such a case is $$\binom{4}2\frac{6!}{2!2!}=1080$$
Case 2: $3$ alike, $3$ different
Number of ways of such a case is $$\binom{4}1\frac{6!}{3!}=480$$
Hence total number of numbers which can be formed are $1080+480=1560$.
Approach 2: I am first taking the $4$ digits and placing them in $4$ spaces in the number to be formed which can be done in $\binom{6}44!=360$ ways. Now that I have ensured that each digit has appeared once, I can fill the remaining 2 places in $4^2=16$ ways($4$ ways of filling each space and there are $2$ spaces).
So total ways is $360×16=5760$.
Where am I going wrong in any of my approaches?
Best Answer
Your first approach works:
The second approach counts double: Say you need to choose between the digits ${1,2,3,4}$ and you'll use 2 and 4 two times.
However, you counted those two options as being different in your second approach. This does not happen in your first approach.