sum of all even numbers between 1 and 1000
S= 1+2+3...+1000S=n(n+1): 2= (1000 x 1001):2=500500
500 is the answer of your question.