I am reading inference statistics by casella and berger. They are deriving the general formula for the probability distribution like that:
$$EX=\sum_{x=1}^{N}xP(X=x|N)=\sum_{x=1}^{N}x\frac{1}{N}=\frac{N+1}{2} $$
I do not get the step before the result. I would appreciate your explanation on this step!