The general term in the expansion of (a+b)n is Tr+1=Crnan−rbr.
Hence, the general term in the expansion of (x+x2a)n is Tr+1=Crn(x)n−r(x2a)r
⇒Tr+1=Crnarxn−3r
Given the coefficients of third, fourth and fifth terms are in the ratio 12:8:3
⇒(C2na2):(C3na3):C4na4=12:8:3
⇒C3na3C2na2=812 and C4na4C3na3=38
Using Cr+1nCrn=n−rr+1,
⇒(n−2)a3=23 and (n−3)a4=38
On dividing the two equations, we get 4(n−2)3(n−3)=169
⇒4n−12=3n−6
⇒n=6 and a=21.
For term independent of x⇒n=3r
⇒r=2.
∴ The coefficient isC26(21)2=415.
Hence, the nearest integer is 4.