Skip to main content

1989 AIME Problem 11

Problem 11 of 15HarderProbability & StatisticsProblem-Solving Techniques

A sample of 121121 integers is given, each between 11 and 10001000 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 x,x, ⌊x⌋\lfloor x\rfloor is the greatest integer less than or equal to x.x.)

Your answer

Integer from 0 to 999
Show solution

Solution

By reflecting every value xx to 1001−x,1001-x, it suffices to maximize the mean minus the mode. For a fixed modal frequency f,f, the extremal sample has ff copies of 1,1, then fills the largest available integers with at most f−1f-1 copies each. Put 121−f=q(f−1)+r,121-f=q(f-1)+r, where 0≤r<f−1.0\leq r<f-1. The nonmodal entries are f−1f-1 copies of each of 1000,1000, 999,999, …,\ldots, 1001−q,1001-q, followed by rr copies of 1000−q.1000-q. For f=2,f=2, f=3,f=3, f=4,f=4, f=5,f=5, and f=6,f=6, this formula gives floors 924,924, 945,945, 947,947, 944,944, and 939,939, respectively. If f≥7,f\geq7, there are at most 114114 nonmodal terms, so even the weaker bound D≤114(999)121<942D\leq\frac{114(999)}{121}<942 suffices. Thus the maximum occurs at f=4.f=4. The extremal sample contains four 11’s and three copies of every integer from 962962 through 1000.1000. Put T=962+963+⋯+1000.T=962+963+\cdots+1000. Since T=38259,T=38259, D=3T+4121−1=114660121=947+73121.\begin{aligned}D&=\frac{3T+4}{121}-1\\&=\frac{114660}{121}\\&=947+\frac{73}{121}.\end{aligned} Therefore the largest possible floor is 947.947.
AoPS wiki

Tagged: mean · mode · optimization

More practice