A positive integer is nice if there is a positive integer with exactly four positive divisors (including and ) such that the sum of the four divisors is equal to . How many numbers in the set are nice?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
Four divisors means m = p^3 or m = pq, with divisor sums (1+p)(1+p^2) or (p+1)(q+1); only 2016 = 4 * 504 splits as (3+1)(503+1).
Solution
A number has exactly four divisors when it is (divisors ) or with distinct primes (divisors ). The divisor sums are
Cubes. for is and for is ; nothing lands in to .
Products . If , then with odd, so is a multiple of : needs , and needs ; neither is prime. If both primes are odd, and are even, so is a multiple of : only and qualify.
- with prime: the only way to write it as a product of two even numbers is , giving . Not nice.
- : take , , i.e. , , both prime. So has divisor sum . Nice.
Exactly one number, , is nice.
The answer is .
Why this works
"Exactly four divisors" is a strong structural condition with only two shapes, and each shape has a factored divisor sum. Parity then eliminates most candidates at once: a sum with odd primes is divisible by , and with it is divisible by . Only the survivors need actual factoring.
The trap
Forgetting that m = p^3 also has exactly four divisors, or accepting a factorization (p+1)(q+1) without checking that both p and q are prime.
Common mistakes
- Forgetting that m = p^3 also has exactly four divisors, or accepting a factorization (p+1)(q+1) without checking that both p and q are prime.
- Allowing (then has only three divisors) or , which is not prime.
Techniques
Organized listing / direct enumeration · Split into exhaustive cases and handle each