Question 25
Let $S(n)$ be the sum of the digits of an integer $n$. For example, $S(327)=3+2+7=12$. Find the value of $$
A=S(1)-S(2)+S(3)-S(4)+\ldots-S(2016)+S(2017)
$$
A=S(1)-S(2)+S(3)-S(4)+\ldots-S(2016)+S(2017)
$$
Math Olympiad Vault · MathNet 2026 — Part 03