Number bases
Positional representation of a number
Base (radix) k, digits di
Digit values: 0, 1, . . . (k-1)
Number of digits: n
weight k(n-1) k2 k1 k0
digits d(n-1) d2 d1 d0
   i = n-1
number = sum(di * ki)
     i = 0