TITLE: What is the total number of study schedules for a seven day period for four subjects where each subject is allotted at least one day?
QUESTION [5 upvotes]: A student wants to make up a schedule for a seven-day period during which she will study one subject each day. What is the number of schedules that devote at least one day to each subject?
My attempt at the solution
Since there are $\ 7!/3!$ ways to schedule four subjects for four of the seven days, and $\ 4^3$ ways to schedule three subjects for three remaining days, total number of ways to schedule the subjects are $\ (7!/3!)\times4^3 $.
But this is not the correct answer. Please explain what is wrong with this reasoning.

REPLY [5 votes]: John Watson has provided you with a nice solution.  We can obtain the same result using the Inclusion-Exclusion Principle.
For each of the seven days, the student has four choices of subject to study.  Therefore, if there were no restrictions, she would have $4^7$ ways to choose her study schedule.  From these, we must exclude those options in which she does not study each subject at least once.
She has $\binom{4}{k}$ ways to exclude $k$ of the four subjects from her study schedule and $(4 - k)^7$ ways to use the seven days to study the remaining $4 - k$ subjects.  By the Inclusion-Exclusion Principle, the number of ways the student can arrange her schedule so that she studies each subject at least once over a period of seven days is 
$$\sum_{k = 0}^{4} (-1)^k\binom{4}{k}(4 - k)^7 = \binom{4}{0}4^7 - \binom{4}{1}3^7 + \binom{4}{2}2^7 - \binom{4}{3}1^7 + \binom{4}{4}0^7 = 8400$$ 

What is wrong with your attempt?

By designating particular days as the ones on which she studies each subject, you count distributions in which she studies a subject more than once multiple times.  
Let's use John Watson's solution as a template.
You count schedules in which she studies one subject on four days and the other subjects on one day each four times, once for each way you could have designated one of those four days as the day she studies the subject she studies four times.
You count schedules in which she studies one subject on three days, a second subject on two days, and the other subjects on one day each six times, once for each of the three ways you could designate one of the three days as the day on which she studies the subject she studies three times and once for each of the two ways you could designate one of the two days as the day she studies the subject she studies on two days.
You count schedules in which she studies three subjects on two days each and one subject on one day eight times since each subject she studies on two days is counted twice, once for each of the two ways you could designate a particular day as the day on which she studies a subject she studies on two days.  
Notice that 
$$\binom{7}{4} \cdot 4! \cdot 4^3 = \frac{7!}{3!} \cdot 4^3 = 4 \cdot \binom{4}{1} \binom{7}{4} \cdot 3! + 6 \cdot \binom{4}{1}\binom{7}{3}\binom{3}{1}\binom{4}{2}\binom{2}{1} + 8 \cdot \binom{4}{3}\binom{7}{2}\binom{5}{2}\binom{3}{2}$$