2019 AMC 12A Problem 24
Problem 24 of 25HarderNumber Theory
For how many integers between and inclusive, is an integer? (Recall that )
Answer choices
Show solution
Solution
Fix a prime By Legendre’s formula, the difference between the exponent of in the numerator and its exponent in the denominator is If is the remainder of modulo the th summand is
Let The first summands are If is not a power of write with When the next summand is at least and all later summands are nonnegative; when every summand is already nonnegative. Thus unless is a power of
For Legendre’s formula reduces the requirement to Among prime powers at most this fails exactly when (so is prime) and when There are primes at most plus giving failures. Hence values of work.
Thus, the correct answer is D.