Every number in $[0,1]$ has a ternary expansion $$x=\sum_{k=1}^{\infty}a_k3^{-k}$$ where $a_k=0,1,$ or $2$.Note that this decomposition is not unique since, for example, $1/3=\sum_{k=2}^{\infty}2/3^k$.Prove that $x\in \text{Cantor set}$ if and only if $x$ has a representation as above where every $a_k$ is either $0$ or $2$
I have tried some points in Cantor set. for example: $1/3=\sum_{k\geq 2} 2/3^k$ and $1/9=\sum_{k\geq 3} 2/3^k$,but I can't do it for all points in the Cantor set. I think I can't express a general point in that set. thanks very much