This question is motivated by this another one.
Let be some convergent series of positive terms $\sum_{k=1}^\infty a_k$ and some enumeration $\{x_k\}_{k=1}^\infty$ of $\Bbb Q$. Define for $x\in \Bbb R$, $$f(x)=\sum_{x_k<x}a_k$$ This is an increasing function that it is continuous in $\Bbb R\setminus\Bbb Q$ but in no point of $\Bbb Q$. Then the image of $f$ is a subset of the interval $$I=\left(0,\sum_{k=1}^\infty a_k\right)$$
My question: It is there a way (that is, an algorithm) to find if some $y\in I$ is in the image of $f$, for given sequences $\{a_k\}$ and $\{x_k\}$? To take a (relatively) simple example, take $a_k=2^{1-k}$ and $$\{x_k\}=0,1,-1,\frac12,-\frac12,2,-2,\frac13,-\frac13,3,-3,\frac14,-\frac14,4,-4,\frac23,-\frac23\frac 32,-\frac32,\frac15,...$$
And how is $f(\Bbb R)$ like (in a topological sense)? Is its interior void? Is its measure 0?, etc.