Question 564340
I should probably let you discover it on your own (its more fun that way), but the answer is n(n+1)/2. Since we're talking about n=1000, 1000(1001)/2=500,500. 

Or in your case, (1+2+3+4+5+6+7+8+9)=(9)(10)/2=45.