A person goes in for an examination in which there are four papers with a maximum of 20 marks from each paper. The number of ways in which one can get 40 marks is_______.
6181
p1+p2+p3+p4=40
Where 0≤p1,p2,p3,p4≤20
The required number
= coefficient of x40 in (x0+x1+..........+x20)4
= coefficient of x40 in (1−x211−x)4
= coefficient of x40 in (1−x21)4(1−x)−4
= coefficient of x40 in (1−4x21+6x42+............)(1+4x+...........+(r+1)(r+2)(r+3)3!xr+.................)
=(40+1)(40+2)(40+3)6−80(20+1)(20+2)6
= 12341 - 6160
= 6181