So as we know, if we have a summation from $1$ to $n$, the simple formula is
$$\sum_{i=1}^n i=\frac{n(n+1)}2.$$
But if we have two summations, one from $i=1$ to $n$ and another one $j>i$ to $n$, the formula we get is
$$\sum_{i=1}^n\sum_{j>i}^nj=\frac{n(n-1)}2.$$
I'm not understanding this, how does it go from $n+1$ to $n-1$, especially since it's a double summation?