Learn / Library / Brainteasers
Doubling weights on one pan
You have weights of , , , and grams. You may put any subset of them on one pan of a scale. How many different positive total weights can you form?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count the subsets and check whether different subsets can give the same total.
Solution
- Each weight is either on the pan or not, so there are subsets.
- The empty subset gives total , which is not positive, so remove it.
- Every total from to appears exactly once, because each integer has a unique binary representation.
- So the number of distinct positive totals is .
Answer: