Let $X$ be a random variable such that $X(\Omega)\subset \mathbb{N}$ in the problem it is said to show that $$ \sum_{k=0}^{n}kP(X=k)=\sum_{k=1}^{n}P(X\geq k)-nP(X\geq n+1)$$
I haven't tried showing it yet and that's because I'm confused whether it's $\sum_{k=1}^{n}P(X\geq k)-nP(X\geq n+1) $ or $\sum_{k=1}^{n}(P(X\geq k)-nP(X\geq n+1))$
so if anyone already solved this please tell me which one is the right one
Edit : really sorry I put $\infty$ instead of $n$ now it's fixed