View worked solution
Answer: 12
Let represent whether bag contains gm coins () or gm coins () for .
The number of coins picked from bags and are and respectively. The total number of coins picked is:
If all bags contained gm coins, the total weight would be:
The actual total weight is gm. The excess weight is due to the bags containing gm coins, where each coin contributes an extra gm:
We can express this excess weight as a sum of the powers of corresponding to the number of coins picked from each bag:
Since , this is equivalent to finding the binary representation of :
Comparing the coefficients, we get:
- (Bag 1 has gm coins)
- (Bag 3 has gm coins)
- (Bag 4 has gm coins)
The bags containing gm coins are 1, 3, and 4.
The product of these labels is:
Free practice · Your answers on this page are not saved.
