Step - 1: Simplify given data
Let three consecutive terms be (r−1)th,rth and (r+1)th terms.
Tr−1,Tr and Tr+1
We know that general term of expansion (a+b)n is Tr+1= nCr(a)n−r(b)r
Ratio of three consecutive terms
Tr−2+1:Tr−1+1:Tr+1
⇒ nCr−2(1)n−r+2(a)r−2: nCr−1(1)n−r+1(a)r−1: nCr(1)n−r(a)r
⇒ nCr−2(a)r−2: nCr−1(a)r−1: nCr(a)r
Ratio of coefficient of three consecutive terms
⇒ nCr−2: nCr−1: nCr
Step 2: Solve equation for value of n
Since the coefficient of (r−1)th,rth and (r+1)th terms are in ration 1:7:42
Now. nCr−2: nCr−1: nCr=1:7:42
Comparing
nCr−2nCr−1=17...(1)
and nCr−2nCr=742...(2)
From equation (1)
nCr−2nCr−1=17
⇒n!(r−2)![n−r+2]!×(r−1)![n−r+1]!n!=17
⇒(r−1)×(r−2)!×[n−r+1]!(r−2)![n−r+2]×[n−r+1]!=17⇒r−1n−r+2=17
⇒7r−7=n−r+2⇒n−8r+9=0 ...(3)
From equation (2)
⇒nCr−1nCr=742
⇒n!(r−1)!(n−r+1)!×r!(n−r)!n!=16
⇒r(r−1)!(n−r)!(r−1)!(n−r+1)(n−r)!=16
⇒rn−r+1=16
⇒6r=n−r+1
⇒n−7r+1=0 ...(4)
Equation (4) − equation (3), we get
⇒n−7r+1−n+8r−9=0
⇒r−8=0
⇒r=8
Putting value of r in equation (4)
⇒n−7(8)+1=0
⇒n−56+1−0
⇒n=55