Six consecutive integers are written on a blackboard. When one of them is erased, the sum of the remaining five integers is 2012. What is the sum of the digits of the integer that was erased?
Problem 513
Official solution
Suppose that the original six integers are , and . Suppose also that the integer that was erased is , where is , or 5. The sum of the integers left is . Therefore, . Since the left side is an integer that is divisible by 5, then the right side is an integer that is divisible by 5. Since is , or 5 and is divisible by 5, then must equal 3. Thus, or and so . Finally, the integer that was erased is . The sum of its digits is .