Let $X$ be a non-negative integer-valued random variable with finite mean. Show that $$E(X)=\sum^\infty_{n=0}P(X>n)$$
This is the hint from my lecturer.
"Start with the definition $E(X)=\sum^\infty_{x=1}xP(X=x)$. Rewrite the series as double sum."
For my opinion. I think the double sum have the form of $\sum\sum f(x)$, but how to get this form? And how to continue?