x1+x2+x3+x4 =20
where x1 , x2 , x3 , x4 ∈ [1,6]
we need to find coefficient of x20 in (x1 +x2+x3+x4+x5+x6)4
coefficient of x20 in x4 *{(1-x6)4 / (1-x)4 }
ultimately coefficient of x16 in (1-x6 )4 /(1-x)4 // expand (1-x6 )4
using this formula (here replace x with -x)expand (1-x6 )4
so ultimately we have to find 1*coeff of x16 in (1-x)-4 - C(4,1)* coeff of x10 in (1-x)-4 + C(4,2)* coeff of x4 in (1-x)-4
coefficient of xr in (1 – x)-n is C(n+r-1 , r)
calculate and get answer =35