Is $$f(y)=\chi\!\left(\bigcup\limits_{k=1}^{\infty}\left[q_{k},q_{k}+\frac{1}{4^{k}}\right]\right)(y), \hspace{0.2cm} \{q_{k}\}_{k \in \mathbb{N}} \subseteq \mathbb{Q}$$
Riemann-Integrable ?
Studying Integration, I came across the following problem that was unable to approach by any angle. I think there isn't an explicit answer, it may depens on how the $\{q_{k}\}$ are distributed.
I'd like to know wether the Riemann-Theory can solve this problem,
If so,I obvioulsy don't think there's a general method but there could be observations that have to be made to approach this types of problems.
Any hint,tip or solution, even using Negligible sets considerations would be appreciated,
Thanks
Partial Answer
Claim: $f(y)$ is Lebesgue integrable.
Proof: Note that, for any $q_j$ and $q_k,$ we have that $m([q_j,q_j+4^{-j}]\cup[q_k,q_k+4^{-k}])\le 4^{-j}+4^{-k},$ since the intervals might overlap; if the intervals do not overlap, we get equality. Let $$U=\bigcup\limits_{k=1}^{\infty}\left[q_{k},q_{k}+\frac{1}{4^{k}}\right]. $$ So we have $$ \int\chi\!\left(\bigcup\limits_{k=1}^{\infty}\left[q_{k},q_{k}+\frac{1}{4^{k}}\right]\right)(y)\,dm=m(U) \le\sum_{k=1}^{\infty}\frac{1}{4^k} =\frac13 <\infty.\qquad \text{QED.} $$
So is it Riemann integrable? Well, the easiest theorem to use, when applicable, is the Riemann-Lebesgue Theorem. However, on an infinite domain, the Riemann-Lebesgue Theorem is not applicable. We do know that if the Riemann integral exists, then it is equal to the Lebesgue integral. And since the Lebesgue integral has been proven to exist by being finite, if the Riemann integral exists, it is finite. However, it is possible, as per zhw.'s answer, for $f$ to be discontinuous at every point in a closed and bounded interval.
Therefore, my current conclusion is that there is no conclusion. I think the answer is highly dependent on the location of the $q_k$'s.
Hopefully, the ideas in this answer will stimulate someone else to a full, correct answer.