\frac{n-a_0}2=a_1+2a_2+\cdots+2^{m-1}a_m