Determining whether a natural number has no "1"s in its ternary expansion, without direct calculation

94 Views Asked by At

I am considering a problem concerning Cantor set.

Here is my quesion:

Let $N\in\mathbb{N}$.

Is there any way other than direct calculation to determine whether $N$ has no "1" as digits in its ternary expansion?