We have, (3+x+x2)6General term of the expansion=r!s!t!6!×3r×x5×(x2)tWhere,r+s+t=6=r!s!t!6!×3r×x5+2tFor the coefficient of x5,s+2t=5But r+s+t=6r+5−t=6r−a=1+t and s=5−2tNow, t=0, then r=1,s=5t=1, then r=2,s=3t=2 then r=3,s=1∴ There are only 3 terms that contain x5∴ Coefficient of x5=0!1!5!6!×31+1!2!3!6!×32+2!3!!!6!×33=18+540+1620=2178