(It's Exercise 4.13 in http://www.inference.phy.cam.ac.uk/mackay/itila/book.html ... and there is a solution and other related weighing problems in there.)
(It's Exercise 4.13 in http://www.inference.phy.cam.ac.uk/mackay/itila/book.html ... and there is a solution and other related weighing problems in there.)