Math Puzzle: Herding cats | Scientific American


The cats weigh 8, 9, 10, 12 and 15 pounds. Label the cats’ weights from lightest to heaviest (allowing for possible ties) as a £ b£ c £ d £ e. Because every pair of cats gets weighed once, each individual cat gets weighed four times. (For example, cat A gets weighed with cats B, C, D and E.) So the sum of all of the readings equals four times the sum of the cats’ weights:

17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 27 = 4 × (a + b + c + d + e).

The left-hand side sums to 216. Dividing this by 4 yields a + b + c + d + e = 54.

The smallest reading, 17, must be the combined weight of the two lightest cats (a + b), while the largest reading of 27 must be from the two heaviest cats (d + e). Plugging these into our equation gives 17 + c + 27 = 54, suggesting c = 10.

The second-smallest reading of 18 must come from cats A and C (any other pair will produce a weight at least as large), while the second-largest reading comes from cats C and E. So a + c = 18 and c + e = 25. Plugging in c = 10 gives a = 8 and e = 15.

Now we plug our values for a and e back into the smallest and largest readings: 8 + b = 17 and d + 15 = 27, which yields b = 9 and d = 12.

Fun fact: Given the pairwise weights of any number of cats, you can always deduce their individual weights unless the number of cats is a power of 2 (2, 4, 8, 16, …). For example, when weighed in pairs, four cats weighing 8, 11, 13 and 14 lb yield identical measurements to four cats weighing 9, 10, 12 and 15 lb.



Source link

Doomsday’? Where is Hawkeye Now?

Leave a Reply

Your email address will not be published. Required fields are marked *