AoPSWiki
NEW! NEW! NEW!
Want to learn how to tackle those tough AMC/AIME/Olympiad algebra problems? Check out Art of Problem Solving's NEW Intermediate Algebra by Richard Rusczyk and Mathew Crawford. Over 1600 problems!
Personal tools

2005 AIME I Problems/Problem 12

From AoPSWiki

Problem

For positive integers let denote the number of positive integer divisors of including 1 and For example, and Define by S(n)=\tau(1)+ \tau(2) + \cdots + \tau(n). Let denote the number of positive integers with odd, and let denote the number of positive integers with even. Find

Contents

Solution

It is well-known that is odd if and only if is a perfect square. (Otherwise, we can group divisors into pairs whose product is .) Thus, is odd if and only if there are an odd number of perfect squares less than . So and are odd, while are even, and are odd, and so on.

So, for a given , if we choose the positive integer such that we see that has the same parity as .

It follows that the numbers between and , between and , and so on, all the way up to the numbers between and have odd. These are the only such numbers less than (because ).

Solution 1

Notice that the difference between consecutive squares are consecutively increasing odd numbers. Thus, there are numbers between (inclusive) and (exclusive), numbers between and , and so on. The number of numbers from to is (n + 1 - n)(n + 1 + n) = 2n + 1. Whenever the lowest square beneath a number is odd, the parity will be odd, and the same for even. Thus, a = [2(1) + 1] + [2(3) + 1] \ldots [2(43) + 1] = 3 + 7 + 11 \ldots 87. b = [2(2) + 1] + [2(4) + 1] \ldots [2(42) + 1] + 70 = 5 + 9 \ldots 85 + 70, the accounting for the difference between and , inclusive. Notice that if we align the two and subtract, we get that each difference is equal to . Thus, the solution is |a - b| = |b - a| = |2 \cdot 21 + 70 - 87| = 025.

Solution 2

Similarly, b = (3^2 - 2^2) + (5^2 - 4^2) + \ldots + (45^2 - 44^2) - 19, where the accounts for those numbers between and .

Thus a = (2^2 - 1^2) + (4^2 - 3^2) + \ldots + (44^2 - 43^2).

Then |a - b| = |2(2^2 + 4^2 + \ldots + 44^2) - 2(1^2 + 3^2 + 5^2 + \ldots 43^2) + 1^2 - 45^2 + 19|.

We must now apply the formula 1^2 + 2^2 + \ldots + n^2 = \frac{n(n + 1)(2n + 1)}{6}. From this formula, it follows that 2^2 + 4^2 + \ldots + (2n)^2 = \frac{2n(n + 1)(2n + 1)}{3} and so that

1^2 + 3^2 + \ldots +(2n + 1)^2 = (1^2 + 2^2 + \ldots +(2n + 1)^2) - (2^2 + 4^2 + \ldots + (2n)^2)
= \frac{(2n + 1)(2n + 2)(4n + 3)}{6} - \frac{2n(n + 1)(2n + 1)}{3} = \frac{(n + 1)(2n + 1)(2n + 3)}{3}. Thus,

|a - b| = \left| 2\cdot \frac{44\cdot23\cdot45}{3} - 2\cdot \frac{22 \cdot 43 \cdot 45}{3} - 45^2 + 20\right| = |-25| = 025.

See also

2005 AIME I (ProblemsResources)
Preceded by
Problem 11
Followed by
Problem 13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
The Art of Problem Solving Bookstore now offers two titles from the creator of Math Olympiads in the Elementary and Middle Schools. Click here and here to check them out.
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us