Skip to main content

2020 AIME I Problem 4

Problem 4 of 15EasierNumber Theory

Let SS be the set of positive integers NN with the property that the last four digits of NN are 2020,2020, and when the last four digits are removed, the result is a divisor of N.N. For example, 42,02042{,}020 is in SS because 44 is a divisor of 42,020.42{,}020. Find the sum of all the digits of all the numbers in S.S. For example, the number 42,02042{,}020 contributes 4+2+0+2+0=84 + 2 + 0 + 2 + 0 = 8 to this total.

Your answer

Integer from 0 to 999
Show solution

Solution

If removing the last four digits leaves k≥1,k \ge 1, then N=10000k+2020,N = 10000k + 2020, and the condition that kk divides NN is equivalent to kk dividing 2020.2020. Since 2020=22⋅5⋅101,2020 = 2^2 \cdot 5 \cdot 101, there are 1212 choices of k:k: 1,1, 2,2, 4,4, 5,5, 10,10, 20,20, 101,101, 202,202, 404,404, 505,505, 1010,1010, 2020.2020. Each member of SS has digit sum equal to the digit sum of kk plus 2+0+2+0=4.2 + 0 + 2 + 0 = 4. The digit sums of the twelve divisors are 1,2,4,5,1,2,2,4,8,10,2,4,1, 2, 4, 5, 1, 2, 2, 4, 8, 10, 2, 4, totaling 45.45. The answer is 45+12⋅4=93.45 + 12 \cdot 4 = 93.
AoPS wiki

Tagged: divisibility · factor · digits

More practice