Question 703760
Try the formula carefully to see that it works for both values.

n=499,
S=499(499+1)/2
=499(500)/2
=499(250)
=124750


n=500,
S=500(500+1)/2
=250(501)
=125250


Difference is 125250-124750=500.
The formula works for both values of n.