Skip to main content

AMC 12 Mock Exam 10 Problem 18

Problem 18 of 25

Call a positive integer nn quirky if the sum of the positive divisors of nn other than nn itself is odd. For example, 44 is quirky because 1+2=31+2=3 is odd, but 66 is not quirky because 1+2+3=61+2+3=6 is even, and 11 is not quirky because its sum is 00. How many quirky integers are there from 11 to 10001000, inclusive?

Answer choices

Show solution

Solution

Let σ(n)\sigma(n) be the sum of all positive divisors of nn; the sum in question is σ(n)−n\sigma(n)-n.

When is σ(n)\sigma(n) odd? σ\sigma is multiplicative. For an odd prime pp, σ(pe)=1+p+⋯+pe\sigma(p^e)=1+p+\cdots+p^e is a sum of e+1e+1 odd numbers, which is odd iff ee is even. And σ(2e)=2e+1−1\sigma(2^e)=2^{e+1}-1 is always odd. So σ(n)\sigma(n) is odd iff every odd prime appears to an even power, i.e., iff n=2em2n=2^e m^2 with mm odd, i.e., iff nn is a perfect square or twice a perfect square.

σ(n)−n\sigma(n)-n is odd iff σ(n)\sigma(n) and nn have opposite parities.

  • nn odd, σ(n)\sigma(n) even: nn odd and not a square (an odd number is never twice a square). There are 500500 odd numbers up to 10001000, of which 1616 are squares (12,32,…,3121^2,3^2,\dots,31^2): 484484.
  • nn even, σ(n)\sigma(n) odd: even squares (2k)2≤1000(2k)^2\le1000 give k≤15k\le15; twice squares 2m2≤10002m^2\le1000 give m≤22m\le22. No number is both. That is 15+22=3715+22=37.

The total is 484+37=521484+37=\boxed{521}. (The distractor 5353 counts nn with σ(n)\sigma(n) odd.)

Tagged: parity of the sum of divisors · squares and twice squares