To solve this, we use the general term of the binomial expansion (a+b)n, which is Tr+1=nCr⋅an−r⋅br.
For the expansion (x31−x4)n:
Tr+1=nCr(x−3)n−r(−x4)r=nCr(−1)rx−3n+3r+4r=nCr(−1)rx7r−3n
- For x7: 7r1−3n=7⟹7r1=3n+7⟹r1=73n+7
- For x14: 7r2−3n=14⟹7r2=3n+14⟹r2=73n+14
Notice that r2=r1+1.
The coefficients are nCr1(−1)r1 and nCr2(−1)r2. Given their sum is zero:
nCr1(−1)r1+nCr1+1(−1)r1+1=0
Divide by (−1)r1:
nCr1−nCr1+1=0⟹nCr1=nCr1+1
In binomial coefficients, nCx=nCy implies either x=y (not possible here) or x+y=n.
r1+(r1+1)=n
2r1+1=n
Substitute r1=73n+7:
2(73n+7)+1=n
6n+14+7=7n
21=n
Value of n is 21.