Find the result of subtracting the sum of all integers between and from the sum of all integers from to .
Integers · Question 39 of 87
Find the result of subtracting the sum of all integers between 20 and 30 from the sum of all integers from 20 to 30 .
Solution:
Concept: The phrase 'from 20 to 30' includes both end numbers, while 'between 20 and 30' leaves them out. The phrase 'subtract A from B' means B − A.
Step 1 — Find the sum of all integers from 20 to 30.
The phrase 'from 20 to 30' includes 20 and 30. We pair the numbers from the two ends: 20 + 30, 21 + 29, 22 + 28, 23 + 27 and 24 + 26 each make 50, and 25 is left in the middle.
Step 2 — Find the sum of all integers between 20 and 30.
The phrase 'between 20 and 30' leaves out 20 and 30, so it is 21 to 29. Pairing again, 21 + 29, 22 + 28, 23 + 27 and 24 + 26 each make 50, with 25 in the middle.
Step 3 — Subtract.
The phrase 'subtract the second sum from the first' means first sum minus second sum.
Watch out: The two sums differ only by the end numbers, so the answer must be 20 + 30 = 50; this is a quick check.
Therefore, the result is 50.
