So I'm currently learning about Markov chains and in one proof there was the following step:
$N(y)$ is the number of visits to the state $y$.
...$\sum\limits_{j=1}^{\infty}\sum\limits_{k=1}^{j}P(N=j)=\sum\limits_{k=1}^{\infty}P(N\geq k)$...
I don't really understand how you can eliminate the inner sum on the left side by switching the indices etc...
The left side is $$\sum_{j=1}^\infty jP(N=j)=p_1+2p_2+3p_3+\cdots$$ where $p_j=P(N=j)$. This equals $$(p_1+p_2+p_3+\cdots)+(p_2+p_3+\cdots)+(p_3+\cdots)+\cdots =P(N\ge1)+P(N\ge2)+P(N\ge3)+\cdots.$$