Bases and Digits

Number the digits of a number from the right starting at 0.

The value of the i-th digit d is: d * basei

For example:

802110 = 8*103 + 0*102 + 2*101 + 1*100
       = 8*1000 + 0*100 + 2*10 + 1*1
       = 8000 + 0 + 20 + 1
       = 8000 + 0 + 20 + 1

34769 = 3*93 + 4*92 + 7*91 + 6*90
       = 3*729 + 4*81 + 7*9 + 6*1
       = 2187 + 324 + 63 + 6
       = 2580

10112 = 1*23 + 0*22 + 1*21 + 1*20
       = 1*8 + 0*4 + 1+2 + 1*1
       = 8 + 0 + 2 + 1
       = 11

Index