Coefficient of xk,(0≤k≤n) in expansion of P=1+(1+x)+(1+x)2......+(1+x)n
The coefficient of xm in (1+x)k+(1+x)k+1+..............+(1+x)n,(k≤m≤n), is given by: