There are 10 bags with coins. Each bag contains 2000 coins. Nine of them contain real coins weighing 10g each, and one contains counterfeit coins weighing 9g each. By one weighing on a digital scale find the bag with counterfeit coins?
And how would you solve it if 5 bags contained counterfeit coins?