The correct option is B 7 or 14
For the expansion of (1+x)n,
T5=T4+1=nC4x4
T6=T5+1=nC5x5
T7=T6+1=nC6x6
So, the coefficients of 5th,6th and 7th terms are nC4,nC5,nC6 respectively.
Since, nC4,nC5,nC6 are in AP
∴nC4+nC6=2.nC5
n!4!(n−4)!+n!6!(n−6)!=2n!(n−5)!5!
⇒30+(n−5)(n−4)=2×6(n−4)
⇒n2−21n+98=0
⇒(n−7)(n−14)=0
⇒n=7,14