If Mr M buys $n$ bags of sands, each weighing a unit each except one bag. What is the minimum number of weighing is required to determine the faulty bag when:
a two pan balance is used?
a spring balance is used?
In my module they have given some sort shortcut to evaluate the result which is for $n$ bags: In first case if $3^a \lt n \lt 3^{a+1}$, then the minimum number of weighing required is $a+1$. In the second case, we need $2^a \lt n \lt 2^{a+1}$ which gives the minimum of $a+1$ weighing. However I couldn't follow up this approach.
Could anybody explain this approach to me?Also,in absence of the information about whether the faulty bag is heavy or lighter than the other ones,how exactly could I pin-point the faulty bag?
For a two pan balance, you can split the bags into three batches, A, B, and C. You weigh batch A against B (which had better have the same number of bags in them). If they balance, the faulty bag is in batch C. Are told whether the faulty bag is heavy or light? If so, you know which of A or B it is in. So one weighing decreases the group of possible bags by a factor 3.
If a spring balance is used, you can put half the bags on the scale at one time. If the result is an exact number of pounds, the faulty one is not on the scale. If the result is not an exact number of pounds, the faulty one is on the scale. The number of possible bags decreases by a factor of 2.
Addition: With 8, weigh A1, A2, A3 vs B1, B2, B3. If they balance, all six are good, so weigh A1 vs C1, then A1 vs C2 and you know which is wrong and how. If they don't balance, say the A's outweigh the B's. Weigh A1, B1 against A2, B2. If they balance, weigh A3 against C1 and you know the answer. If not, assume A1, B1 is heavy. Then either A1 is heavy or B2 is light. Weigh A1 against C1. In all cases we find the bad bag and know whether it is heavy or light in three weighings. You can actually do better: see the 12 coins problem for 12 coins in three weighings.