Skip to main content

2017 AMC 12B Problem 19

Problem 19 of 25HarderNumber Theory

Let N=123456789101112…4344N = 123456789101112\ldots4344 be the 7979-digit number that is formed by writing the integers from 11 to 4444 in order, one after the other. What is the remainder when NN is divided by 45?45?

Answer choices

Show solution

Solution

The last digit of NN is 4,4, so N≡4(mod5).N \equiv 4 \pmod 5. For mod 9,9, sum the digits: the numbers 11–99 contribute their digits, the tens digits of 1010–4444 and the units digits together sum to 270,270, which is a multiple of 9,9, so N≡0(mod9).N \equiv 0 \pmod 9. The number N−9N - 9 is then a multiple of 9,9, and its last digit is 5,5, so it is a multiple of 5;5; hence N−9N - 9 is a multiple of 45.45. Therefore N≡9(mod45).N \equiv 9 \pmod{45}. Thus, the correct answer is C.
AoPS wiki

Tagged: modular arithmetic · divisibility · digits

More practice