Fun with balanced ternary integers