Seems you'd like a function $x = f(y)$.
As you are saying, when the variable $y$ increases by one, the function $x$ has the same values for $y-1$, plus the last term multiplied by $\frac{1}{2}$. To better understand, you are dealing with the geometric series
$$\frac{1}{2} + \frac{1}{4} + \frac{1}{8} + \cdots$$
that is
$$\sum_{n=0}^{\infty} \frac{1}{2}\frac{1}{2^n} $$
Now, since a closed form for a geometric series is $a\frac{1-r^n}{1-r}$, and since in this case we have $a = r = \frac{1}{2}$, the function $x$ can be defined as
$$x = \frac{1}{2} \frac{1-\frac{1}{2^y}}{\frac{1}{2}} = 1-\frac{1}{2^y}$$