GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 37

GATE CSE 2014 Set 1 Q37

Discrete Mathematics · Proof Techniques & Number Theory · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q37 2 marks · NAT
Report issue

Proof Techniques & Number Theory

Question 37, GATE 2014: Five bags are labeled 1 to 5. Each bag contains coins all weighing either 10 g or 11 g. Take respectively 1,2,4,8,16 coins from the five bags; their total weight is 323 g. Find the product of the labels of the bags with 11 g coins.
Tap to enlarge
Answer & solution

Official answer: 12

1. Method and setup. The powers-of-two sample sizes encode the heavy bags uniquely. Subtract the weight obtained if every selected coin were light; each heavy bag contributes exactly its sampled number of extra grams. The requested product uses bag labels, not the numbers of coins taken.

2. Work through the result and its assumptions. If all selected coins weighed10g, total weight would be 31×10=310g. The extra 13g has binary decomposition 13=1+4+8. Thus bags 1, 3, 4 contain 11g coins, and the product of labels is 1×3×4=12.

Original paper, page 16 · Answer key