Maths Olympiad Prep

Library / /9 of 23

Number theory Difficulty 4.8 AIME Find the answer United States

There are exactly KK positive integers bb with 5b20245 \le b \le 2024 such that the base-bb integer 2024b2024_b is divisible by 16 (where 16 is in base ten). What is the sum of the digits of KK?

Pick one

Solutions — 2

Solution 1

Answer (D): Notice that 2024b=2b3+2b+4=2(b+1)(b2b+2)2024_b = 2b^3 + 2b + 4 = 2(b + 1)(b^2 - b + 2), and consider the residue classes of this number modulo 8. If b7(mod8)b \equiv 7 \pmod 8, then b+10(mod8)b + 1 \equiv 0 \pmod 8, and if b3(mod8)b \equiv 3 \pmod 8, then b2b+20(mod8)b^2 - b + 2 \equiv 0 \pmod 8. In each case 2024b2024_b is divisible by 16.
In all other cases 2024b2024_b is not divisible by 16. Indeed, if b0,2, or 4(mod8)b \equiv 0, 2, \text{ or } 4 \pmod 8, then b+1b + 1 is odd, and b2b+2b+2(mod8)b^2 - b + 2 \equiv b + 2 \pmod 8, so 2024b2024_b is divisible by no power of 2 greater than 232^3. If b1(mod5)b \equiv 1 \pmod 5, then b+1b + 1 and b2b+2b^2 - b + 2 are both odd multiples of 2, so 2024b2024_b is divisible by 8, but not by 16.
Because 2024=25382024 = 253 \cdot 8, there are 2533=759253 \cdot 3 = 759 positive integers b2024b \le 2024 that are congruent to 3, 6, or 7 modulo 8. The number 3 must be excluded from this total, because the problem statement requires bb to be at least 5. Thus K=7591=758K = 759 - 1 = 758, and the sum of the digits of KK is 7+5+8=207 + 5 + 8 = 20.

Solution 2

Notice that 2024b=2b3+2b+4=2(b+1)(b2b+2)2024_b = 2b^3 + 2b + 4 = 2(b+1)(b^2 - b + 2), and consider the residue classes of this number modulo 8. If b7(mod8)b \equiv 7 \pmod{8}, then b+10(mod8)b+1 \equiv 0 \pmod{8}, and if b3(mod8)b \equiv 3 \pmod{8}, then b2b+20(mod8)b^2 - b + 2 \equiv 0 \pmod{8}. In each case 2024b2024_b is divisible by 16.
In all other cases 2024b2024_b is not divisible by 16. Indeed, if b0,2, or 4(mod8)b \equiv 0, 2, \text{ or } 4 \pmod{8}, then b+1b+1 is odd, and b2b+2b+2(mod8)b^2 - b + 2 \equiv b + 2 \pmod{8}, so 2024b2024_b is divisible by no power of 2 greater than 232^3. If b1(mod8)b \equiv 1 \pmod{8}, then b+1b+1 and b2b+2b^2 - b + 2 are both odd multiples of 2, so 2024b2024_b is divisible by 8, but not by 16.
Because 2024=25382024 = 253 \cdot 8, there are 2533=759253 \cdot 3 = 759 positive integers b2024b \le 2024 that are congruent to 3, 6, or 7 modulo 8. The number 3 must be excluded from this total, because the problem statement requires bb to be at least 5. Thus K=7591=758K = 759 - 1 = 758, and the sum of the digits of KK is 7+5+8=207+5+8 = 20.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.