In how many ways can we distribute 5 different balls into 4 different boxes, given that order does not matter inside the boxes and empty boxes are not allowed?
My attempt
First I chose $4$ balls out of $5$ and arranged them for the $4$ boxes: $\binom 54 \times 4!.$
Then for the remaining ball I can choose any of the $4$ boxes. Multiplying them, we get $480$, which is double the answer given as correct answer. Why I am wrong? And how can I solve the problem if the order matters inside the boxes?
With your attempt you count a disposition more than once.
Named $A,B,C,D$ the boxes and $a,b,c,d,e$ the balls you count (for example) two times the combination: $a,e\in A$, $b\in B$, $c\in C$, $d\in D$.
The first time you choose the set $\{a,b,c,d\}$, put $a\in A, b\in B, c\in C, d\in D$, then you put $e\in A$;
The second time you chose the set $\{e,b,c,d\}$, put $e\in A, b\in B, c\in C, d\in D$, then you put $a\in A$.
Since I do not see how to fix this count, I suggest another approach:
First, choose the box which will contain $2$ balls in $\binom{4}{1}$, second choose the two balls you will put in the box chosen in $\binom{5}{2}$, then choose how to put the last three balls in last three boxes in $3!$.
So the answer should be: $$\binom{4}{1} \cdot \binom{5}{2} \cdot 3! = 240$$