2005 AIME I Problem 12
Problem 12 of 15HarderNumber Theory
For positive integers let denote the number of positive integer divisors of including and For example, and Define by Let denote the number of positive integers with odd, and let denote the number of positive integers with even. Find
Your answer
Integer from 0 to 999
Show solution
Solution
Divisors of pair up as and so is odd exactly when is a perfect square. Hence changes parity exactly at the squares, which means is odd exactly when the number of squares up to namely is odd.
For each there are integers with namely Since the odd values all have their full blocks within range, so
Then and
Tagged: parity · perfect square · factor counting