Problem 947: (2017 AMC 10b, 23; 2017 AMC 12b, 19)
Let $N=123456789101112\dots4344$ be the $79$-digit number that is formed by writing the integers from $1$ to $44$ in order, one after the other. What is the remainder when $N$ is divided by $45$?
$\textbf{(A)}\ 1\qquad\textbf{(B)}\ 4\qquad\textbf{(C)}\ 9\qquad\textbf{(D)}\ 18\qquad\textbf{(E)}\ 44$
- $N$ ends in $4$, so $N\equiv4\pmod5$.
- $N$ is congruent mod $9$ to its digit sum, which is congruent to $1+2+\cdots+44=990\equiv0$. So $N\equiv0\pmod 9$ (Theorem 76).
- $N\equiv9\pmod{45}$. The answer is (C).
Let $N=123456789101112\ldots2930$ be the number formed by writing the integers from $1$ to $30$ in order. What is the remainder when $N$ is divided by $36$?