I have been given an assignment of writing out the Cantor set using ternary expansion. But then this is a big problem, because I don't understand how to convert a decimal to ternary expansion. In the sense 1/3 . 3 = 10 (base 3) . 1/10 = 0.1

But how is 0.022222....

Can you give me some other examples.