Problem 941: (2017 AMC 10a, 20; 2017 AMC 12a, 18)
Let $S(n)$ equal the sum of the digits of positive integer $n$. For example, $S(1507) = 13$. For a particular positive integer $n$, $S(n) = 1274$. Which of the following could be the value of $S(n+1)$?
$\textbf{(A)}\ 1 \qquad\textbf{(B)}\ 3\qquad\textbf{(C)}\ 12\qquad\textbf{(D)}\ 1239\qquad\textbf{(E)}\ 1265$
- $n\equiv S(n)\pmod 9$, so $S(n+1)\equiv n+1\equiv1275\equiv6\pmod9$.
- Among the choices only $1239\equiv6$. (It occurs: if $n$ ends in exactly $4$ nines, $S(n+1)=S(n)+1-36=1239$.)
- The answer is (D).
For a particular positive integer $n$, the sum of its digits is $S(n)=2024$. What is the smallest possible value of $S(n+1)$?