If p is the sum of all the integers from 1 to 150 inclusive, and q is the sum

Answer: C

Just want to know where I am going wrong here. I keep getting B.

Process:
150-1 + 1 = 150, so 150 numbers
Median = 150/2 = 75
150 * 75 = 11250
P=11250

148-1 + 1 = 148, so 148 numbers
Median = 148/2 = 74
148 * 74 =10952
Q =10952

11250 - 10952 = 298
P - Q = 298

Where am I missing that extra 1?

EDIT: I see where it is missing. Is there a rule to quickly find the average when the bigger number is even?

I think an easier way to solve this problem is to realize that P=(1+2+3…+148+149+150) and Q=(1+2+3…+148). If you do P-Q that equals (1+2+3…148+149+150)-(1+2+3…+148). Distribute the negative and every value will cancel out except for 149 and 150 which equals 299. Hope this helps.

1 Like

You found the wrong median. To find the median you have to have the sum of the first and the last number and divide them by 2. Thus, the median for the numbers between 1-150 is (1+150)/2=75.5; for the numbers 1-148 it is (1+148)/2=74.5.
The rest you do as you did. 150 x 75.5=11325; 148 x 74.5=11026; 11325-11026=299, therefore answer C.

There is generalize formula for sum of numbers from 1 to n => n(n+1)/2
For sum of 1 to 150, 150(150+1)/2 = 11325
For sum of 1 to 148, 148(148+1)/2 = 11026
So, Difference between sum of numbers = 299