A teacher has identical pieces of candy. He wants to distribute them to his class of students, although he is willing to take some leftover candy home. (He does not insist on taking any candy home, however.) The student who won a contest in the last class is to receive at least pieces of candy as a reward. Of the remaining students, of them insist on receiving at least one piece of candy, while the remaining students are willing to receive no candy.
In how many ways can he distribute the candy?
In how many ways can he distribute the candy if, in addition to the conditions above, one of his students is diabetic and can receive at most pieces of candy? (This student is one of the who insist on receiving at least one piece of candy.)