返回题库

AIME 1989 · 第 11 题

AIME 1989 — Problem 11

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

A sample of 121 integers is given, each between 1 and 1000 inclusive, with repetitions allowed. The sample has a unique mode (most frequent value). Let DD be the difference between the mode and the arithmetic mean of the sample. What is the largest possible value of D\lfloor D\rfloor? (For real xx, x\lfloor x\rfloor is the greatest integer less than or equal to xx.)

解析

Solution 1

Let the mode be xx, which we let appear n>1n > 1 times. We let the arithmetic mean be MM, and the sum of the numbers x\neq x be SS. Then

D=Mx=S+xn121x=S121(121n121)x\begin{aligned} D &= \left|M-x\right| = \left|\frac{S+xn}{121}-x\right| = \left|\frac{S}{121}-\left(\frac{121-n}{121}\right)x\right| \end{aligned} As SS is essentially independent of xx, it follows that we wish to minimize or maximize xx (in other words, x{1,1000}x \in \{1,1000\}). Indeed, D(x)D(x) is symmetric about x=500.5x = 500.5; consider replacing all of numbers xix_i in the sample with 1001xi1001-x_i, and the value of DD remains the same. So, without loss of generality, let x=1x=1. Now, we would like to maximize the quantity

S121(121n121)(1)=S+n1211\frac{S}{121}-\left(\frac{121-n}{121}\right)(1) = \frac{S+n}{121}-1

SS contains 121n121-n numbers that may appear at most n1n-1 times. Therefore, to maximize SS, we would have 10001000 appear n1n-1 times, 999999 appear n1n-1 times, and so forth. We can thereby represent SS as the sum of n1n-1 arithmetic series of 1000,999,,1001121nn11000, 999, \ldots, 1001 - \left\lfloor \frac{121-n}{n-1} \right\rfloor. We let k=121nn1k = \left\lfloor \frac{121-n}{n-1} \right\rfloor, so

S=(n1)[k(1000+1001k)2]+R(n)S = (n-1)\left[\frac{k(1000 + 1001 - k)}{2}\right] + R(n)

where R(n)R(n) denotes the sum of the remaining 121(n1)k121-(n-1)k numbers, namely R(n)=(121(n1)k)(1000k)R(n) = (121-(n-1)k)(1000-k).

At this point, we introduce the crude estimate[1] that k=121nn1k=\frac{121-n}{n-1}, so R(n)=0R(n) = 0 and

2S+2n=(121n)(2001121nn1)+2n=(120(n1))(2002120n1)\begin{aligned}2S+2n &= (121-n)\left(2001-\frac{121-n}{n-1}\right)+2n = (120-(n-1))\left(2002-\frac{120}{n-1}\right)\end{aligned} Expanding (ignoring the constants, as these do not affect which nn yields a maximum) and scaling, we wish to minimize the expression 5(n1)+36n15(n-1) + \frac{36}{n-1}. By AM-GM, we have 5(n1)+36n125(n1)36n15(n-1) + \frac{36}{n-1} \ge 2\sqrt{5(n-1) \cdot \frac{36}{n-1}}, with equality coming when 5(n1)=36n15(n-1) = \frac{36}{n-1}, so n13n-1 \approx 3. Substituting this result and some arithmetic gives an answer of 947\boxed{947}.


In less formal language, it quickly becomes clear after some trial and error that in our sample, there will be nn values equal to one and n1n-1 values each of 1000,999,9981000, 999, 998 \ldots. It is fairly easy to find the maximum. Try n=2n=2, which yields 924924, n=3n=3, which yields 942942, n=4n=4, which yields 947947, and n=5n=5, which yields 944944. The maximum difference occurred at n=4n=4, so the answer is 947947.

Solution 2

With the same reasoning as Solution 1, in order to get largest possible value of D, we can construct that our set of numbers as 1,1,1...1,n times2,2,2...2,n times3,3,3...3,n times........1000,1000,1000....n+1 times\underbrace{1,1,1...1,}_\text{n times}\underbrace{2,2,2...2,}_\text{n times}\underbrace{3,3,3...3,}_\text{n times}........\underbrace{1000,1000,1000....}_\text{n+1 times} And, we need to find the value of n that makes the sum as low as possible. And, we can create a formula to make it easier. It isn't hard to find the sum. The numbers which are not 1000, average to 1202n\frac{120}{2n} or 60n\frac{60}{n}, and there are 120n120-n of them. So, they sum to 60n(120n)\frac{60}{n}(120-n). And, the sum of the numbers that are 1000 is 1000(n+1)1000(n+1) so, our total sum gets us 1000(n+1)+120/2n(120n)1000(n+1)+120/2n(120-n) We want to minimize it, since the mode will always be 1000. And, testing the values n = 1, n = 2, n = 3, n = 4, we get these results.

n=1:2000+60119=9140n = 1: 2000+60*119 = 9140 n=2:3000+30118=6540n = 2: 3000+30*118 = 6540 n=3:4000+20117=6340n = 3: 4000+20*117 = 6340 n=4:5000+15116=6740n = 4: 5000+15*116 = 6740

And, as n grows larger and larger from 4, the values will start increasing. Thus, the lowest possible sum is 6340. Dividing by 121, the lowest possible mean is 52.396...., and thus, the highest possible value of DD is 947.604, and the floor of that is 947\boxed{947}

- AlexLikeMath

Notes

  • ^ In fact, when n=2,3,4,5n = 2,3,4,5 (which some simple testing shows that the maximum will occur around), it turns out that 121nn1\frac{121-n}{n-1} is an integer anyway, so indeed k=121nn1=121nn1k = \left\lfloor \frac{121-n}{n-1} \right\rfloor = \frac{121-n}{n-1}.