Decimal representation (base 10)
•
12 stones
•
12
dec
= 1 * 10 + 2
or
1*10
1
+ 2*10
0
•
•
123 stones
•
123
dec
= 1 * 100 + 2 * 10 + 3
or
1 * 10
2
+ 2 * 10
1
+ 3*10
0
•
•
N
dec
= a
n
*10
n
+ a
n-1
*10
n-2
+ … + a
2
*10
2
+ a
1
*10
1
+ a
0
*10
0
0 <= a
i
<= 9
•
•
n
•
N
dec
= ∑ a
i
*10
i
•
i=0