# The Heavy Pill Puzzle [duplicate]

You have 20 bottles of pills. 19 bottles have 1.0 gram pills, but one bottle has 1.1 gram pills. There is a weighing machine which calculates exact weight, and you have to find the heavy bottle by using that machine only once?

Note:- You can take out the pills from bottles for measurement.

• – Oray Sep 8 '17 at 5:06
• I don't think so, the example you are mentioning is very different and has 3 chances to find the solution but there is only chance to find out the exact solution. – Mohit Tyagi Sep 8 '17 at 5:06
• i put the wrong link :) – Oray Sep 8 '17 at 5:07

I believe the answer to this one is:

Take one pill out out of the first bottle, two pills out of the second bottle... etc. and weigh them all together. Then find out which bottle has the heavy pills by getting the total and finding the amount of the anomaly.
So if every bottle had 1.0g pills in it and the pills were added to the scale as described above, the total would be 210g. If the first bottle (the one we only used one pill for) had 1.1g pills, the total would be 210.1g. If the second bottle (two pills) had 1.1g pills, the total would be 210.2g... etc. all the way up to 212g.

To put it in (sort of) mathematical terms:

Bottle no. with heavy pills = (Weight - 210g) * 10
(Where bottle no. = amount of pills placed on scales)

• The second sentence doesn't make much sense even after reading elsewhere what the answer is. – Ouroborus Sep 8 '17 at 15:29
• Was it edited? Makes sense to me – greenturtle3141 Sep 8 '17 at 18:54
• @Ouroborus updated with some examples to help explain. Let me know if it's still too hard to understand. – Alpha Sep 10 '17 at 22:36