Why four weighings handle thirty-nine coins
With one fake coin of unknown direction (heavier or lighter) among n coins, a balance and no reference coin, three weighings can handle 12 coins, identifying the fake and its direction.
- How many coins can four weighings handle?
- Derive the general formula for w weighings.
- Describe the first weighing in the four-weighing case and check the branch sizes.
Show a hint
Each weighing has 3 outcomes, so w weighings give 3 to the w outcomes, but the "all balanced" outcome cannot identify a direction, and the first weighing must leave each branch small enough for w minus 1 weighings. Work out how many coins can be set aside and how many go on each pan.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
How many coins can five weighings handle?Find the heavy ball among 27 in three weighingsHow many weighings to find one heavy coin in 80?Ten coins, one heavy, fewest weighingsThe scale that only says equal or not equal
All questions →