In how many ways can you divide $25$ people with the name A-Y into $5$ identical non-empty boxes if A is not allowed to end up in the same group as any of B, C or D?
I used sterlings number but I am not sure if I am correct. Here is my solution
Total = $S(25,5)$ case $1$: ABCD are in the same group, which means we can count them as one, so we have $S(22,5)$ case $2$: A is in the same group as 2 so $S(23,5)* C(3,2)$ case $3$: A is with one so $S(24,5)* C(3,1)$ Answer= Total - (case $1$ + case $2$ + case $3$) = Am I correct because my friend solved it in another way I don't understand and got a different answer.