Could someone give me a hint as to how I could go about proving the following?

Let C be the cantor set. Show that $\displaystyle x=0.a_1a_2a_3...$, where RHS is the base 3 expansion of x, is in C iff, for all natural numbers n, $\displaystyle a_n\epsilon\{0, 2\}$