DR.WANG Mathematics中文

2024 AMC 10A · Question 18

Arithmetic · number base · modular arithmetic · counting integers in a range · number-theory · counting

Problem outline

Among integer bases 5≤b≤20245\le b\le2024, let KK count those for which the numeral 2024b2024_b is divisible by decimal 16. What is the digit sum of KK?

Show answer and methods 1 methods

Answer

D. 2020.

Method 1 Separate odd and even bases

The numeral is 2b3+2b+42b^3+2b+4, so we need b3+b+2≡0(mod8)b^3+b+2\equiv0\pmod8. For even bb, the cube vanishes mod 8, giving b≡6b\equiv6. For odd bb, b2≡1(mod8)b^2\equiv1\pmod8, so 2b+2≡0(mod8)2b+2\equiv0\pmod8, giving b≡3,7(mod8)b\equiv3,7\pmod8.

As 2024=253⋅82024=253\cdot8, the range 1 through 2024 contains 253 instances of each of the three residues. Among 1 through 4 only 3 qualifies, so K=3⋅253−1=758K=3\cdot253-1=758. Its digit sum is 20.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)