2016 AIME II Problem 11
Problem 11 of 15HarderNumber TheoryCombinatorics
For positive integers and define to be -nice if there exists a positive integer such that has exactly positive divisors. Find the number of positive integers less than that are neither -nice nor -nice.
Your answer
Integer from 0 to 999
Show solution
Solution
If then has positive divisors, and each factor is so the product is too. Conversely, if then gives with exactly divisors. So is -nice exactly when
Among there are integers (namely ) and integers (namely ). Since there are integers (namely ). By inclusion-exclusion, of them are -nice or -nice.
Hence positive integers less than are neither.
Tagged: factor counting · modular arithmetic · inclusion-exclusion