Let $[a, b]$ be an interval in $\mathbb R$, does there exist a function $f(q)$ such that
$$\sum_{q\in [a, b]\cap \mathbb Q}f(q)<+\infty\ ?$$
Since there exists a bijection between $\mathbb N$ and $\mathbb Q$ and since $\sum_{n\in \mathbb N}\frac{1}{n^2}<\infty$, I think it is possible...
Do you know if it is possible to find such a function f(q)?
First enumerate the numbers in $[a,b]\cap \mathbb{Q}$ in whatever order, and call them $\{q_1,q_2,q_3,\ldots\}$. And then take $$\sum_{n=1}^{\infty}\frac{q_n}{n!}.$$
This series surely converges. We know that $$\sum_{n=1}^{\infty}\frac{2^n}{n!}$$ converges, and $|q_n|\geq|2^n|$ only for finitely many $n$, because we hold $[a,b]$ fixed.