All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic > Weights and Scales
Many coins - one fake (Posted on 2003-05-14) Difficulty: 5 of 5
Given a balance scale that is sure to break after X weighings, find an equation for the largest number of coins N, from which you can determine a fake coin that has the wrong weight if

A: You know whether the fake is lighter or heavier

B: You do not know whether the fake is lighter or heavier

(Assume only one of the N coins is fake)

See The Solution Submitted by Jonathan Waltz    
Rating: 3.7143 (7 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: solution to B | Comment 18 of 20 |
(In reply to solution to B by pleasance)

I think you can look at it this way.
For each weighing, there are 3 possible outcomes, i.e. balanced, heavier or lighter. Thus, for X weighings, the total number of unique results would be 3^X out of which one is balance-balance-balance, which occurs when we exclude the coin totally frmo our weighings. Thus, removing this case would give a total of 3^X-1 possibilities.

Now, since there are N coins, and each of them could be either heavier or lighter, thus, the total number of different cases is 2N that need to be mapped to these 3^X-1 possibilities.

Thus, this gives us the inequality 2N <= 3^X-1 or rather,
N<= (3^X-1)/2

For the case where we know whether the coin is heavier or lighter, there are only N cases as opposed to 2N. Thus, the inequality would become

N <= 3^X

since, in this case, even a balance-balance-balance result would tell us which coin is it and thus excluding it totally from our weighings is alright.

  Posted by John Smith on 2003-09-03 16:00:26

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (23)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information