.
If 400 more than the sum of p consecutive integers is equal
to the sum of the next p consecutive integers, what is the value of p?
~~~~~~~~~~~~~~~~
Let x be the arithmetic mean of that (first mentioned) p consecutive integers.
Then the sum of that (first mentioned) p consecutive integers is x*p.
The average of the next p consecutive integers is (x+p),
and the sum of the next p consecutive integers is (x+p)*p.
So, we have this equation
(x+p)*p = x*p + 400
xp + p^2 = xp + 400
p^2 = 400
p = 20.
ANSWER. p = 20.
Solved.