Problem 1
Let be a sequence of non-negative integers, and let . Prove that , where for and . When does equality hold?
Step 2 of 6: Compare the excess counts
Detailed analysis
Because the average is at least s, the total excess above s is at least the total deficit below s.