In general term in expansion (1+x)n is given by tr+1=ncrxr
so there is consecutive terms will have coefficient as
ncr−1,ncrandncr+1
given,
ncr−1ncr=38andncrncr+1=814
⇒n!(r−1)(n−r+1)!n!(r)!(n−r)!=38⇒(r)!(n−r)!(r−1)!(n−r+1)!=rn−r+1=38⇒8r=3n−3r+3⇒11r=3n+3............(1)
Also ncrncr+1=814
⇒n!(r)!(n−r)!n!(r+1)!(n−r−1)!=814⇒(r+1)!(n−r−1)!(r)!(n−r)!=(r+1)n−r=814⇒14r+14=8n−8r⇒22r=8n−14⇒11r=4n−7............(2)
From 1 and 2 we get
4n−7=3n+3⇒n=10