AMC 10 Step by Step

2021 AMC 10A Problem 16

P16-20~4 minPrint

In the following list of numbers, the integer nn appears nn times in the list for 1≤n≤2001 \leq n \leq 200 . 1,2,2,3,3,3,4,4,4,4,…,200,200,…,2001, 2, 2, 3, 3, 3, 4, 4, 4, 4, \dots, 200, 200, \dots , 200 What is the median of the numbers in this list?

Log in to save your progress.
Show solution without answering

Key insight

The list has 20100 numbers, so the middle is at position 10050. The numbers 1 through n fill the first n(n+1)/2 spots; find which block holds that position.

Solution

  1. Count the entries: 1+2+⋯+200=200×2012=201001 + 2 + \cdots + 200 = \frac{200 \times 201}{2} = 20100. That is even, so the median is the average of the 1005010050th and 1005110051st entries. The list is already in order.
  2. Look at how the first few numbers fill positions:
numberpositions it fillslast position
111111
2222 to 3333
3344 to 6666
4477 to 10101010

The last position filled by nn is 1+2+⋯+n=n(n+1)21 + 2 + \cdots + n = \frac{n(n+1)}{2}.
3. We want the first nn whose last position reaches 1005010050, so n(n+1)n(n+1) should be about 2010020100. Since n×nn \times n is close to n(n+1)n(n+1), try nn near the square root of 2010020100. We have 1412=19881141^2 = 19881 and 1422=20164142^2 = 20164, so check 141141 and 142142.
4. 141×1422=10011\frac{141 \times 142}{2} = 10011, so the numbers 11 to 141141 end at position 1001110011.
5. 142×1432=10153\frac{142 \times 143}{2} = 10153, so the number 142142 fills positions 1001210012 through 1015310153.
6. Both 1005010050 and 1005110051 are in that stretch, so both middle entries are 142142. The median is 142142.

The answer is (C) 142\boxed{\textbf{(C)}\ 142}.

Why this works

For a list made of blocks of repeated numbers, first find the middle position, then find which block contains it by counting how many positions the earlier blocks use up. Here the running count is a triangular number, n(n+1)2\frac{n(n+1)}{2}, and a square root tells you where to look. Always check that both middle positions fall in the same block.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

The list has 1+2+⋯+200=200⋅2012=201001 + 2 + \dots + 200 = \frac{200 \cdot 201}{2} = 20100 entries, an even number, so the median is the average of the 1005010050th and 1005110051st entries (the list is already sorted).

The values 1,2,…,n1, 2, \dots, n together fill the first n(n+1)2\frac{n(n+1)}{2} positions. We want the smallest nn with n(n+1)2≥10050\frac{n(n+1)}{2} \ge 10050, i.e. n(n+1)≥20100n(n+1) \ge 20100. Since n2≈20100n^2 \approx 20100 suggests n≈142n \approx 142:
141⋅1422=10011<10050,142⋅1432=10153≥10051.\frac{141 \cdot 142}{2} = 10011 < 10050,\qquad \frac{142 \cdot 143}{2} = 10153 \ge 10051.
Positions 1001210012 through 1015310153 all hold the value 142142, which includes both middle positions.

The median is 142+1422=142\frac{142 + 142}{2} = 142, so the answer is (C) 142\boxed{\textbf{(C)}\ 142}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.