You can calculate this as ((2 + 1000) x 999) / 2. That is, add the first and the last number, multiply the result by how many numbers you have - in this case "999" - and finally divide by 2.
Chat with our AI personalities
2550
The sum of the whole numbers from 1 to 100 inclusive is 5,050.
From 1 (inclusive) to 1000(inclusive,) 750.
1,000,000 * * * * * The 1st and 500th sum to (2*1-1)+(2*500-1) = 2*501 - 2 = 1000 The 2nd and 499th sum to (2*2-1)+(2*499-1) = 2*501 - 2 = 1000 There are 250 such sums So sum of all 500 odd numbers = 250*1000 = 250,000
1000+1000 =2000 because 1+1=2 than add three zeros