The correct option is C =np(p+q)n−3[(p+q)2+(p+q)(p+1)(n−1)+p(n−1)(n−2)]
(q+x)n=qn+nC1qn−1x1+nC2qn−2x2+nC3qn−3x3+...+nCnq0xn
Differentiating with respect to x, we get
n(q+x)n−1=nC1qn−1x0+2nC2qn−2x1+3nC3qn−3x2+...+nnCnq0xn−1
Multiplying with x on both sides.
nx(q+x)n−1=nC1qn−1x1+2nC2qn−2x2+3nC3qn−3x3+...+nnCnq0xn
Differentiating with respect to x, we get
n[(q+x)n−1+x(n−1)(q+x)n−2]=nC1qn−1x0+22nC2qn−2x1+32nC3qn−3x2+...+n2nCnq0xn−1
Multiplying by x on both sides, we get
nx[(q+x)n−1+x(n−1)(q+x)n−2]=nC1qn−1x1+22nC2qn−2x2+32nC3qn−3x3+...+n2nCnq0xn
Differentiating with respect to x, and multiplying with x, on both sides we get
nx[(q+x)n−1+x(n−1)(q+x)n−2+(n−1)(q+x)n−2+x(n−1)(n−2)(q+x)n−3]=∑r3nCrqn−rxr
Substituting x=p we get
∑r3nCrqn−rpr
=np(p+q)n−3[(q+p)2+p(n−1)(q+p)+(n−1)(q+p)+p(n−1)(n−2)]
=np(p+q)n−3[(p+q)2+(p+q)(p+1)(n−1)+p(n−1)(n−2)]