Hi officiisimpedit,Great question, and your instinct isn't crazy. The reason you got n =
80 is that you averaged the
three dorm sizes (
20,
50, n) equally, as if each dorm counts once. But re-read what the question measures: it averages over
recruits, not over dorms.
Why that changes everythingThe phrase "each recruit shares a dormitory with
49 others" means we take the average
across all the people, and there are far more people in a big dorm than a small one. So the big dorm's number should count more times.
Here's the clean way to see the squaring:
- Every recruit in a dorm of size
s experiences a dorm size of
s (they share with s-1 others, so they're in a group of s).
- There are
s such recruits in that dorm - each contributing
s to the total.
- So that one dorm contributes
s × s = s2 to the top of the average.
Add this up across dorms and divide by the total number of recruits:
Average dorm size = (202 + 502 + n2) / (20 + 50 + n) = 50The square isn't a special rule - it's just "size, counted once for each of the size-many people in that dorm." Weighting by headcount is exactly what your equal-weight version left out, and that's why
80 was too high.
Lock it in with tiny numbersTwo dorms holding
2 and
4 recruits.
- Your original method (average the sizes): (
2 +
4)/
2 =
3.
- The per-recruit method: (
22 +
42)/(
2 +
4) = (
4 +
16)/
6 =
3.33.
List the six people by hand: two of them feel a dorm of
2, four of them feel a dorm of
4. Their average experience leans toward
4 - because more people live in the bigger dorm. That lean is the squaring at work.
Answer: Cofficiisimpedit
Hii Kevincan,
Wont it be like this:
50 = (20 + 50 + n)/3
150 = 70 + n
n = 80 (recruits in the third dormitory)
According to the question, after the first dormitory is demolished:
no. of recruits in the 2nd dorm. = 70
no. of recruits in the 3rd dorm. = 80
so wont the new average be 75, which will make the final answer 74?