0

Let $a_n$ be the number obtained by writing the integers 1 to $n$ from left to right. Therefore, $a_4 = 1234$ and a_12 = 123456789101112. For $1 \le k \le 100$, how many $a_k$ are divisible by 9?

I know that to find this amount, you need to find the sum of the digits, and then see if it is a factor of 9. However, I want to know a method other than using brute force. Can someone guide me through a slicker solution?

0 Answers0