sth to do with binary ba.
100 gives u a 7 bit binary number ma.
assign 1 rat to a bit, eg rat 1 is assigned to the msb, rat
7 assigned to lsb.
den write down the no of each bottle in binary.
den, let's take 17.
the binary for 17 is 0010001. den make rat 3 and rat 7 drink the
wine. i.e if a bit is 1, den the rat assigned to that bit must
drink the wine.
do this for all the bottles lo.
after 1 day line the rats up again, in their bit order.
dead one u put 1, alive one 0.
den u'll get the number in binary.
convert back to decimal and voila!
Correct!
that is the whole process... but you never show the
calculation...
basically 1 rat can test 2 bottle. drink one of the bottle. if
live, bottle is ok. if not, bottle is poison.
2 rat can test 4 bottle.rat 1 drink bottle 1 and 2. rat 2 drink
bottle 1 and 3.
if both die, bottle 1 poison. if both live, bottle 4 poison. if rat
1 die, bottle 2 poison. if rat 2 die, bottle 3 poison.
1 rat = 2 bottle
2 rat = 4
3 rat = 8
....
7 rat = 128.
minimum is 7 rats!