AMC 12 Mock Exam 10 Problem 18
Problem 18 of 25
Call a positive integer quirky if the sum of the positive divisors of other than itself is odd. For example, is quirky because is odd, but is not quirky because is even, and is not quirky because its sum is . How many quirky integers are there from to , inclusive?
Answer choices
Show solution
Solution
Let be the sum of all positive divisors of ; the sum in question is .
When is odd? is multiplicative. For an odd prime , is a sum of odd numbers, which is odd iff is even. And is always odd. So is odd iff every odd prime appears to an even power, i.e., iff with odd, i.e., iff is a perfect square or twice a perfect square.
is odd iff and have opposite parities.
- odd, even: odd and not a square (an odd number is never twice a square). There are odd numbers up to , of which are squares (): .
- even, odd: even squares give ; twice squares give . No number is both. That is .
The total is . (The distractor counts with odd.)
Tagged: parity of the sum of divisors · squares and twice squares