Originally posted by Pratik Lohia:

Anyone who wanna try this?

Quite and old and comon game...

I got 10 machines dishing out coins of 10 grams each.... One machine becomes faulty and dishes out an 11 gram coin.

With just one try on an electronic display weighing scale, how do i determine the faulty one?

This type of problem has been popping up in the Programming Diversions forum even though it doesn't really have much to do with programming.

Anyhow...

Grab...

1 coin from machine 1 plus

8 coins from machine 2 plus

7 coins from machine 3 plus

4 coins from machine 4 plus

5 coins from machine 5 plus

6 coins from machine 6 plus

3 coins from machine 7 plus

2 coins from machine 8 plus

9 coins from machine 9 plus

10 coins from machine 10

Weigh them all together. Cube that result. The last digit of that result shows the malfunctioning machine (last digit==0 -> machine 10).