Problem 554: (2019 AIME I, 1)
Consider the integer \[N = 9 + 99 + 999 + 9999 + \cdots + \underbrace{99\ldots 99}_\text{321 digits}.\] Find the sum of the digits of $N$.
- $N=\sum_{k=1}^{321}(10^k-1)=(10+100+\cdots+10^{321})-321=\underbrace{11\ldots1}_{321}0-321$.
- Subtracting $321$ from $\ldots1110$ changes only the last four digits: $1110-321=789$, so $N=\underbrace{11\ldots1}_{318}0789$.
- The digit sum is $318+7+8+9=342$.
- The answer is $\boxed{342}$.
Consider the integer \[N = 9 + 99 + 999 + 9999 + \cdots + \underbrace{99\ldots 99}_\text{250 digits}.\] Find the sum of the digits of $N$.