Is the sum of integers from 54 to 153, inclusive divisible by 100?
The answer says NO, by saying the sum of n consecutive numbers is not divisble by n if n is even
Here is what I am doing
Sum of consecutive integers between X and Y, inclusive (X < Y) is
(X+Y)/2 * [(Y-X)+1)]
(54+153)2 * (100)
That is divisible by 100.
Where I am screwing up?