The binomial expansion of (2+x)9 is:
(2+x)9=∑r=09(r9)29−rxr
We need the mean of the coefficients of x,x2,…,x7.
Sum of all coefficients (put x=1): (2+1)9=39=19683
Coefficient of x0=(09)29=512
Coefficient of x8=(89)21=18
Coefficient of x9=(99)20=1
Sum of coefficients from x1 to x7:
=19683−512−18−1=19152
Mean = 719152=2736