To find the value of n, we start by determining the general term in the binomial expansion of (x31−x4)n.
Using the binomial theorem, the general term Tr+1 is given by:
Tr+1=(rn)(x31)n−r(−x4)r
Simplifying the powers of x:
Tr+1=(rn)(x−3)n−r(−1)r(x4)r
Tr+1=(−1)r(rn)x−3(n−r)+4r
Tr+1=(−1)r(rn)x7r−3n
Step 1: Find the coefficient of x7
To find the coefficient of x7, we set the exponent of x equal to 7:
7r1−3n=7⟹r1=73n+7
The coefficient of x7 is:
C1=(−1)r1(r1n)
Step 2: Find the coefficient of x14
To find the coefficient of x14, we set the exponent of x equal to 14:
7r2−3n=14⟹r2=73n+14=r1+1
The coefficient of x14 is:
C2=(−1)r2(r2n)=(−1)r1+1(r1+1n)
Step 3: Use the given condition
We are given that the sum of the coefficients of x7 and x14 is zero:
C1+C2=0
(−1)r1(r1n)+(−1)r1+1(r1+1n)=0
(−1)r1[(r1n)−(r1+1n)]=0
Since (−1)r1=0, we have:
(r1n)=(r1+1n)
Using the identity (an)=(bn)⟹a+b=n (for a=b):
r1+(r1+1)=n
2r1+1=n
Step 4: Solve for n
Substitute r1=73n+7 into the equation:
2(73n+7)+1=n
76n+14+1=n
6n+14+7=7n
6n+21=7n
n=21
Thus, the value of n is 21.