Ternary representation (base 3)
•
12 stones
•
110 in ternary representation (notation)
•
12
dec
= 1*3
2
+ 1*3
1
+ 0*3
0
•
•
N
dec
= a
n
*3
n
+ a
n-1
*3
n-2
+ … + a
2
*3
2
+ a
1
*3
1
+ a
0
*3
0
a
i
= 0 or 1 or 2
•
•
n
•
N
dec
= ∑ a
i
*3
i
•
i=0
•
•