Find the balanced ternary expansion of an integer from its decimal expansion (see Exercise).
Exercise
Show that every nonzero integer can be uniquely represented in the form
where ej = −1, 0, or 1 for j = 0, 1, 2, … , k and ek ≠ 0. This expansion is called a balanced ternary expansion.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.