Let $\alpha:\Bbb N\to \Bbb Q$ a bijection, and a function
$$f:\Bbb R\to\Bbb R,\quad x\mapsto \sum_{k\in N_x}y_k$$
where $\sum_{k=0}^\infty y_k<\infty$ and $y_k>0$ for all $k$, and
$$N_x:=\{k\in\Bbb N:\alpha(k)\le x\}$$
Prove that $f$ have a jump discontinuity at every rational $q$, where the size of the discontinuity is $y_n$ where $n=\alpha^{-1}(q)$.
I dont have a clear picture of the jump discontinuities of $f$, in concrete I dont know if my proof fit to the meaning "$y_n$ is the size of the discontinuity at $q$", so Im not totally sure that the proof is fine. A confirmation will be welcome.
First of all: observe that $f$ is an strictly increasing function and then injective. Proof: for $x<y$ we have that $N_x\subsetneq N_y$ because exists infinitely many rationals between any two real points.
Because $y_k>0$ for all $k$ then $f$ is strictly increasing.$\Box$
Now observe that if $q\in\Bbb Q$ then
$$\{k\in\Bbb N:\alpha(k)< q\}\subsetneq \{k\in\Bbb N:\alpha(k)< q\}\cup\{\alpha^{-1}(q)\}=N_q$$
what means that approaching from below to $q$ no matter how close we are there is a distance from the left limit to $f(q)$ of $y_{\alpha(q)}$, i.e.
$$\lim_{x\to q^-}f(x)=L^-=f(q)-y_{\alpha(q)}$$
In a similar way no matter how close we approach from above to $q$ there are rational points between our sequence and $q$, then
$$\lim_{x\to q^+}f(x)=L^+=f(q)+y_{\alpha(q)}$$
But from this analysis, not totally formalized, we have then two consecutive jump discontinuities of size $y_{\alpha(q)}$: one from $L^-$ to $q$, and another from $q$ to $L^+$.
It is this analysis correct? There is something wrong?