I have the following problem, $n = e_{k}3^k + \ldots + e_{1}3 + e_0$.
With $k\geq0$, where $e_i \in \{1,0,-1\}$ for all $i \in \{0, \ldots,k\}$
And I have to prove that every natural can be represented that way, with Simple Induction. Do I have to do simple induction three times, each one for a different $e_i$?
Edit:
I got stuck in all of the paths. This is what I have:
- For $e_i=0$: $P(0)=0$, $P(n)=0$, so $P(n+1)=1$ which is natural. (I don't know if this is right).
- For $e_i=-1$: $P(0)=0$, $P(n)=-3^k-...-3-1$, so: $P(n+1)=-1(3^k+...+3)$. (I think in this case I cannot assume that this number is natural).
- For $e_i=1$: $P(0)=0$, $P(n)=3^k+...+3+1$ so: $P(n+1)=3^k+...+3+1+1$
In summary, I don't know what I am doing. I am new at this.
Hint: Every natural number is either a multiple of $3$ or one more or less than a multiple of $3$. For the induction step, if $x = 3^k e_k + \ldots + e_0$, what are $3x-1$, $3x$ and $3x+1$?