Problem 604: (2019 AIME II, 9)
Call a positive integer $n$ $k$-\textit{pretty} if $n$ has exactly $k$ positive divisors and $n$ is divisible by $k$. For example, $18$ is $6$-pretty. Let $S$ be the sum of the positive integers less than $2019$ that are $20$-pretty. Find $\tfrac{S}{20}$.
- $n$ is a multiple of $20=2^2\cdot5$ with $\tau(n)=20=5\cdot4=5\cdot2\cdot2$. Exponent patterns: $(19)$, $(9,1)$, $(4,3)$, $(4,1,1)$.
- $(19)$ and $(9,1)$ are impossible (two primes are needed, and $2^9\cdot5>2019$). $(4,3)$ gives $2^45^3=2000$. $(4,1,1)$ needs $2^4$ (as $5^4$ is too big): $n=80p$ with $p\ne2,5$ prime and $80p<2019$, i.e.\ $p=3,7,11,13,17,19,23$.
- $S=2000+80(3+7+11+13+17+19+23)=2000+80\cdot93=9440$, and $\frac S{20}=472$.
- The answer is $\boxed{472}$.
Call a positive integer $n$ $k$-\textit{pretty} if $n$ has exactly $k$ positive divisors and $n$ is divisible by $k$. For example, $18$ is $6$-pretty. Let $S$ be the sum of the positive integers less than $2025$ that are $24$-pretty. Find $\tfrac{S}{24}$.