Let m be the smallest positive integer such that the coefficient of x2 in the expansion of (1+x)2+(1+x)3+⋯+(1+x)49+(1+mx)50is(3n+1)51C3 for some positive integer n. Then, the value of n is
If x + a is a factor of x2 + px + q and x2 + mx + n then the value of a in terms of n, q, m and p is?