2017 AMC 12B Problem 19

Attempt Problem 19 of the 2017 AMC 12B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2017 AMC 12B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

19.

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?
11
44
99
1818
4444
Answer: C
Concepts:modular arithmeticdivisibilitydigits
Small hint:
Since 45=9⋅5,45 = 9 \cdot 5, find N mod 5N \bmod 5 (the last digit) and N mod 9N \bmod 9 (the digit sum)
Big hint:
The digit sum is a multiple of 9,9, so N≡0(mod9);N \equiv 0 \pmod 9; combine with the residue mod 55
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.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.