For each positive integer , let be twice the number of positive integer divisors of , and for , let . For how many values of is
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Since f_1(n) = 2d(n) <= 20 here, iterating small even numbers shows only 12, 18, 20 reach 12; so count n <= 50 with d(n) in {6, 9, 10}.
Solution
Write for the number of divisors, so .
Where do iterates go? For , (the maximum is ), so is an even number at most . Now track every even number up to :
So and are the only fixed points, and after one step every is at some even number , which then falls into or within a few steps. Hence exactly when , i.e. when .
Count. Using :
- : or . Up to : ; . That is numbers.
- : or . Only .
- : or . Only .
Total .
The answer is .
Why this works
Iterating a function on a bounded set always ends in a cycle, and here the range shrinks immediately: maps everything below into , a set small enough to trace by hand. Once the two fixed points and are known, work backwards one step to see which first values feed , and the problem reduces to the standard task of counting integers with a prescribed number of divisors.
The trap
Counting only the n with d(n) = 6 (eight of them) and missing 36 and 48, whose f_1 values 18 and 20 also feed into the fixed point 12.
Common mistakes
- Counting only the n with d(n) = 6 (eight of them) and missing 36 and 48, whose f_1 values 18 and 20 also feed into the fixed point 12.
- Forgetting (six divisors) or including , which exceeds .
Techniques
Organized listing / direct enumeration · Compute small cases, spot the pattern, generalize · Start from the end state / desired conclusion and reverse