a=\sum_{k=0}^n\frac{d_k}{b^k}