8 subjects need to be given to 4 students. In how many ways can it be done so that the third student gets an odd number of subjects.
I tried combination with repetition $9 \choose 7$+$7 \choose 5$+$5 \choose 3$+$3 \choose 1$
but i'm not quite sure this is the right way to solve the problem. Can anyone help me? Thanks