AMC 10 Step by Step

2024 AMC 10A Problem 18

P16-20~6 minPrint

There are exactly KK positive integers 5≤b≤20245 \leq b \leq 2024 such that the base- bb integer 2024b2024_{b} is divisible by 1616 (where 1616 is in base ten). What is the sum of the digits of KK ?

Log in to save your progress.
Show solution without answering

Key insight

In base b, 2024 means 2(b³ + b + 2). So b³ + b + 2 must be a multiple of 8, which depends only on b's remainder mod 8.

Solution

1. Turn the base-bb number into ordinary arithmetic. The digits 2,0,2,42, 0, 2, 4 in base bb mean
2024b=2b3+0⋅b2+2b+4.2024_b = 2b^3 + 0 \cdot b^2 + 2b + 4.
For example, in base 1010 this is 2000+20+42000 + 20 + 4. (The digit 44 is only allowed if b≥5b \ge 5, which is why the problem starts at 55.)
2. Pull out the common factor 22. 2b3+2b+4=2(b3+b+2)2b^3 + 2b + 4 = 2(b^3 + b + 2). So 2024b2024_b is a multiple of 1616 exactly when b3+b+2b^3 + b + 2 is a multiple of 88.
3. Only the remainder of bb matters. If you add 88 to bb, then b3+b+2b^3 + b + 2 changes by a multiple of 88 (every term in (b+8)3−b3(b+8)^3 - b^3 has a factor of 88, and so does (b+8)−b(b + 8) - b). So whether b3+b+2b^3 + b + 2 is a multiple of 88 depends only on the remainder when bb is divided by 88. Test the eight possible remainders:

remainder of bb01234567
b3+b+2b^3 + b + 224123270132224352
multiple of 88?nononoyesnonoyesyes

So the good values of bb are those that leave remainder 33, 66 or 77 when divided by 88. (In congruence notation, b≡3,6,7(mod8)b \equiv 3, 6, 7 \pmod 8, which just means those remainders.)
4. Count them from 55 to 20242024. Since 2024=8⋅2532024 = 8 \cdot 253, the numbers 11 to 20242024 contain exactly 253253 numbers with each remainder.
- Remainder 33: 3,11,19,…3, 11, 19, \ldots The first one, 33, is too small (bb must be at least 55), so this gives 252252.
- Remainder 66: 6,14,…6, 14, \ldots All 253253 count.
- Remainder 77: 7,15,…7, 15, \ldots All 253253 count.
5. Add: K=252+253+253=758K = 252 + 253 + 253 = 758. Its digits add to 7+5+8=207 + 5 + 8 = 20.

The answer is (D) 20\boxed{\textbf{(D)}\ 20}.

Why this works

A number written in base bb is really an expression in bb, so a question about dividing it becomes a question about bb. Pull out common factors first (here the 22 turned 1616 into 88). Then only bb's remainder matters, so a short table of 88 cases settles everything. At the end, watch the edges of the range: the starting value 55 removes one number.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

In base bb, 2024b=2b3+0⋅b2+2b+4=2(b3+b+2)2024_b = 2b^3 + 0\cdot b^2 + 2b + 4 = 2(b^3 + b + 2). So 16∣2024b16 \mid 2024_b exactly when 8∣b3+b+28 \mid b^3 + b + 2.

The value of b3+b+2 mod 8b^3 + b + 2 \bmod 8 depends only on b mod 8b \bmod 8, so test the eight residues:

b mod 8b \bmod 801234567
b3+b+2b^3+b+224123270132224352
mod 824406400

So the condition holds exactly when b≡3,6,7(mod8)b \equiv 3, 6, 7 \pmod 8.

Now count such bb with 5≤b≤20245 \le b \le 2024. Since 2024=8⋅2532024 = 8\cdot 253, each residue class contains 253253 numbers in 1,…,20241, \dots, 2024. The class 3 mod 83 \bmod 8 starts at b=3b = 3, which is excluded (we need b≥5b \ge 5), leaving 252252; the classes 66 and 77 start at 66 and 77, so they contribute 253253 each. Hence
K=252+253+253=758,K = 252 + 253 + 253 = 758,
and the digit sum is 7+5+8=207 + 5 + 8 = 20.

The answer is (D) 20\boxed{\textbf{(D)}\ 20}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.