If you don't know what balanced ternary is, it's pretty simple. We use 3 digits (like in ternary) which represent -1, 0, and 1. For -1 we would use a T. For example, 2 is 1T and 3 is 10, 4 is 11, 5 is 1TT, 6 is 1T0, 7 is 1T1, 8 is 10T, and 9 is 100.
b = balanced