What's $-\frac{1}{27}$ in $\Bbb Z_2$?
I was naively thinking take the repeating string of the standard binary representation of $3^{-n}$, put it to the left of the point and you get $-3^{-n}$ in $\Bbb Z_2$. Hey presto, it works for $-\frac13$ and $-\frac19$ so why not?
But if I take $x=\overline{000010010111101101}_2$ I can see that $x+512x=-1$, so I get $-\frac1{513}$ in $\Bbb Z_2$. It is at least a multiple of $\frac13$, but not the one I was expecting.
In general it would seem we get $\dfrac{-1}{2^{3^{n-1}}+1}$ by my naive method, which coincides for the two first cases - because $3$ and $9$ are one away from $2$ and $8$.
I should mention $3^{-n}$ have the peculiar property that one half of the repeating binary string is the inverse of the other. This problem arose while I was trying to prove that fact - feel free to prove that if you're minded to do so!
How do I correctly calculate an arbitrary rational number such as $-3^{-n}$?
You are not correct to assume that $x+512x=-1$. You have a couple zero bits in the actual sum:
$x+512x=513x=...1111111111111\color{blue}{0}11\color{blue}{0}1$
and this is $-19$ in $2$-adics. Thereby $x=-19/513$ and when you reduce this to lowest terms you end with ... $-1/27$.