The question that I'm trying to solve is:
At the CH Company, Joan, has a secretary Teresa, and three other administrative assistants. If seven accounts must be processed, in how many ways can Joan assign the accounts so that each assistant works on at least one account and Teresa's work includes the most expensive account?
(Grimaldi p.288)
I approached this question as distributing identical objects into distinct containers where no container left empty and the repetitions were allowed. So,
x1+x2+x3+x4=3 (I distributed 4 of them to the containers and left with 3 more accounts)
So the rest (at least for me) was C(6,3). But apparently It was wrong. Where did I make the mistake? Because in solution it just goes through it without any trace of explanation.
Solution in the book is, with my words:
Since this is an onto function where the domain is the accounts and the codomain is the employees, then applies the number of onto functions formula to case by case.
As mentioned above it divides into two cases in which the first case; Teresa (secretary) works only on the most expensive account. And the second case; Teresa works on the most expensive one along with other accounts.
The answer is 540+1560=2100.
I think you have to assume you are distributing distinguishable objects into distinct containers. You need to use Stirling numbers of the second kind or something similar.
The answer in the book seems to be $S_2(6,3)\times 3! + S_2(6,4)\times 4! = 90 \times 6 + 65 \times 24$.
I might do it another way and say that you have to distribute $7$ accounts onto $4$ people, though only a quarter of these give Teresa the most expensive account, so $\frac14 \times S_2(7,4) \times 4! = \frac14 \times 350 \times 24$, which gives the same answer.