Skip to main content

2021 AMC 12A Problem 25

Problem 25 of 25HarderNumber TheoryProblem-Solving Techniques

Let d(n)d(n) denote the number of positive integers that divide n,n, including 11 and n.n. For example, d(1)=1,d(1) = 1, d(2)=2,d(2) = 2, and d(12)=6.d(12) = 6. (This function is known as the divisor function.) Let f(n)=d(n)n3. f(n) = \frac{d(n)}{\sqrt[3]{n}}. There is a unique positive integer NN such that f(N)>f(n)f(N) \gt f(n) for all positive integers n≠N.n \ne N. What is the sum of the digits of N?N?

Answer choices

Show solution

Solution

Since f(n)=d(n)n13f(n) = \dfrac{d(n)}{n^{\frac{1}{3}}} is multiplicative, its value factors over prime powers as a product of terms e+1pe3\dfrac{e + 1}{p^{\frac{e}{3}}} for each prime power pe ∥ n.p^e\ \|\ n. We maximize each term separately. If gp(e)=e+1pe3,g_p(e)=\dfrac{e+1}{p^{\frac{e}{3}}}, then gp(e+1)gp(e)=e+2e+1p−13.\dfrac{g_p(e+1)}{g_p(e)}=\dfrac{e+2}{e+1}p^{-\frac{1}{3}}. This ratio decreases with e,e, so checking where it first falls below 11 finds the unique maximum. It gives e=3e=3 for p=2,p=2, e=2e=2 for p=3,p=3, e=1e=1 for p=5,7,p=5,7, and e=0e=0 for every prime p≥11.p\ge11. Hence N=23⋅32⋅5⋅7=2520,N = 2^3\cdot 3^2\cdot 5\cdot 7 = 2520, whose digit sum is 2+5+2+0=9.2 + 5 + 2 + 0 = 9. Thus, the correct answer is E.
AoPS wiki

Tagged: factor counting · prime factorization · optimization

More practice