I saw this in the following question: Is there a function with infinite integral on every interval?
I already understood all other steps on the first answer, however, I don't know how to prove the following step:
Let $\{q_n\}$ be an enumeration of the rational numbers, how can I justify that $$\sum_{n=1}^\infty \frac{2^{-n}}{|x-q_n|}<\infty$$ for almost every $x\in\mathbb{R}$ (i.e. almost everywhere)?
I know it has something to do with the fact that $2^{-n}$ tend to zero exponentially while $|x-q_n|$ tends to zero linearly.
Also, there are some modification that I made that shouldn't change the result, which are using all the rational numbers instead of only those between 0 and 1, and removing the square root (since it is squared anyways)