返回题库

AIME 2004 I · 第 2 题

AIME 2004 I — Problem 2

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Set AA consists of mm consecutive integers whose sum is 2m2m, and set BB consists of 2m2m consecutive integers whose sum is m.m. The absolute value of the difference between the greatest element of AA and the greatest element of BB is 9999. Find m.m.

解析

Solution 1

Note that since set AA has mm consecutive integers that sum to 2m2m, the middle integer (i.e., the median) must be 22. Therefore, the largest element in AA is 2+m122 + \frac{m-1}{2}.

Further, we see that the median of set BB is 0.50.5, which means that the "middle two" integers of set BB are 00 and 11. Therefore, the largest element in BB is 1+2m22=m1 + \frac{2m-2}{2} = m. 2+m12>m2 + \frac{m-1}{2} > m if m<3m < 3, which is clearly not possible, thus 2+m12<m2 + \frac{m-1}{2} < m.

Solving, we get

m2m12=99mm2+12=101m2=10012.m=201\begin{aligned} m - 2 - \frac{m-1}{2} &= 99\\ m-\frac{m}{2}+\frac{1}{2}&=101\\ \frac{m}{2}&=100\frac{1}{2}.\\ m &= \boxed{201}\end{aligned}

Solution 2

Let us give the elements of our sets names: A={x,x+1,x+2,,x+m1}A = \{x, x + 1, x + 2, \ldots, x + m - 1\} and B={y,y+1,,y+2m1}B = \{y, y + 1, \ldots, y + 2m - 1\}. So we are given that

2m=x+(x+1)++(x+m1)=mx+(1+2++(m1))=mx+m(m1)2,2m = x + (x + 1) + \ldots + (x + m - 1) = mx + (1 + 2 + \ldots + (m - 1)) = mx + \frac{m(m -1)}2, so 2=x+m122 = x + \frac{m - 1}2 and x+(m1)=m+32x + (m - 1) = \frac{m + 3}2 (this is because x=2m12x = 2 - \frac{m-1}{2} so plugging this into x+(m1)x+(m-1) yields m+32\frac{m+3}{2}). Also,

m=y+(y+1)++(y+2m1)=2my+2m(2m1)2,m = y + (y + 1) + \ldots + (y + 2m - 1) = 2my + \frac{2m(2m - 1)}2, so 1=2y+(2m1)1 = 2y + (2m - 1) so 2m=2(y+2m1)2m = 2(y + 2m - 1) and m=y+2m1m = y + 2m - 1.

Then by the given, 99=(x+m1)(y+2m1)=m+32m=m3299 = |(x + m - 1) - (y + 2m - 1)| = \left|\frac{m + 3}2 - m\right| = \left|\frac{m - 3}2\right|. mm is a positive integer so we must have 99=m3299 = \frac{m - 3}2 and so m=201m = \boxed{201}.

Solution 3

The thing about this problem is, you have some "choices" that you can make freely when you get to a certain point, and these choices won't affect the accuracy of the solution, but will make things a lot easier for us.

First, we note that for set AA

m(f+l)2=2m\frac{m(f + l)}{2} = 2m Where ff and ll represent the first and last terms of AA. This comes from the sum of an arithmetic sequence.

Solving for f+lf+l, we find the sum of the two terms is 44.

Doing the same for set B, and setting up the equation with bb and ee being the first and last terms of set BB,

m(b+e)=mm(b+e) = m and so b+e=1b+e = 1.

Now we know, assume that both sequences are increasing sequences, for the sake of simplicity. Based on the fact that set AA has half the number of elements as set BB, and the difference between the greatest terms of the two two sequences is 9999 (forget about absolute value, it's insignificant here since we can just assume both sets end with positive last terms), you can set up an equation where xx is the last term of set A:

2(x(x+4)+1)=1+(x+99)(x99+1)2(x-(-x+4)+1) = 1+(x+99)-(-x-99+1) Note how i basically just counted the number of terms in each sequence here. It's made a lot simpler because we just assumed that the first term is negative and last is positive for each set, it has absolutely no effect on the end result! This is a great strategy that can help significantly simplify problems. Also note how exactly i used the fact that the first and last terms of each sequence sum to 44 and 11 respectively (add xx and (x+4)(-x+4) to see what i mean).

Solving this equation we find x=102x = 102. We know the first and last terms have to sum to 44 so we find the first term of the sequence is 98-98. Now, the solution is in clear sight, we just find the number of integers between 98-98 and 102102, inclusive, and it is m=201m = \boxed{201}.

Note how this method is not very algebra heavy. It seems like a lot by the amount of text but really the first two steps are quite simple.

Solution 4 (Sketchy Solution for Speedrunners)

First, calculate the average of set AA and set BB. It's obvious that they are 22 and 1/21/2 respectively. Let's look at both sets. Obviously, there is an odd number of integers in the set with 22 being in the middle, which means that mm is an odd number and that the number of consecutive integers on each side of 22 are equal. In set BB, it is clear that it contains an even number of integers, but since the number in the middle is 1/21/2, we know that the range of the consecutive numbers on both sides will be (x(x to 0)0) and (1(1 to y)-y).

Nothing seems useful right now, but let's try plugging an odd number, 33, for mm in set BB. We see that there are 66 consecutive integers and 33 on both sides of 1/21/2. After plugging this into set AA, we find that the set equals

1,2,3{1,2,3} . From there, we find the absolute value of the difference of both of the greatest values, and get 0.

Let's try plugging in another odd number, 5555. We see that the resulting set of numbers is (54(-54 to 0)0), and (1(1 to 55)55). We then plug this into set AA, and find that the set of numbers is (25(-25 to 29)-29) which indeed results in the average being 22. We then find the difference of the greatest values to be 26.

From here, we see a pattern that can be proven by more trial and error. When we make mm equal to 33, then the difference is 00 whearas when we make it 5555, then the difference is 2626. 55355-3 equals to 5252 and 26026-0 is just 00. We then see that mm increases twice as fast as the difference. So when the difference is 9999, it increased 9999 from when it was 00, which means that mm increased by 99299*2 which is 198198. We then add this to our initial mm of 33, and get 201\boxed{201} as our answer.

Solution 5

Let the first term of AA be aa and the first term of BB be bb. There are mm elements in AA so AA is a,a+1,a+2,...,a+m1a, a+1, a+2,...,a+m-1. Adding these up, we get 2a+m12m=2m    2a+m=5\frac{2a+m-1}{2}\cdot m = 2m \implies 2a+m=5. Set BB contains the numbers b,b+1,b+2,...,b+2m1b, b+1, b+2,...,b+2m-1. Summing these up, we get 2b+2m122m=m    2b+2m=2\frac{2b+2m-1}{2}\cdot 2m =m \implies 2b+2m=2. The problem gives us that the absolute value of the difference of the largest terms in AA and BB is 9999. The largest term in AA is a+m1a+m-1 and the largest term in BB is b+2m1b+2m-1 so ba+m=99|b-a+m|=99. From the first two equations we get, we can get that 2(ba)+m=32(b-a)+m=-3. Now, we make a guess and assume that ba+m=99b-a+m=99 (if we get a negative value for mm, we can try ba+m=99b-a+m=-99). From here we get that ba=102b-a=-102. Solving for mm, we get that the answer is 201\boxed{201}

-Heavytoothpaste