Let $x_1,x_2,x_3,\ldots$ list the numbers that can be written as a sum of one or more distinct powers of 3, increasing order $(x_1<x_2<x_3<\cdots)$ For example $x_1=3^0=1 ; x_2= 3^1 =3 ; x_3 =3^1+3^0 = 4$. What is the value of $x_{100}$?
I tried to create a geometric series with the powers of 3 but the number I get as a result is too big to compute. Can someone share some light as to how to solve this?
Since $100 = \overline{1100100}_2$ we have $$ x_{100} = 0\cdot 3^0 +0\cdot 3^1+ 1\cdot 3^2+0\cdot 3^3+ 0\cdot 3^4+1\cdot 3^5+1\cdot 3^6 =981$$