Solve the 12-Coin Problem with 3 Weighings

  • Context: Undergrad 
  • Thread starter Thread starter mdelisio
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the 12-Coin Problem, which involves identifying a potentially fake coin among twelve using a balance scale in only three weighings. Participants explore various methods and strategies for solving the problem, considering the implications of the fake coin being either heavier or lighter.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest dividing the coins into groups of three or four for the weighings, noting the importance of the balance tipping direction to identify the odd coin.
  • Others propose that if the first six coins are determined to be good, only two weighings remain to identify the fake among the remaining six, raising concerns about the feasibility of this approach.
  • A mathematical approach is introduced, stating that the minimum number of weighings required can be calculated using the formula 3^w ≥ n, where n is the number of coins and w is the number of weighings.
  • Some participants express uncertainty about the applicability of the formula for certain numbers of coins, particularly for cases where the number exceeds 12.
  • There is a discussion about the necessity of additional weighings when the weight of the fake coin is unknown, leading to corrections and updates to the proposed solutions.
  • One participant mentions that dividing into piles of three and four could simplify the process, although this approach is also met with skepticism regarding its effectiveness.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to solve the problem, with multiple competing views and strategies presented. Some participants agree on the mathematical framework, while others challenge its applicability to specific cases.

Contextual Notes

Limitations include unresolved assumptions about the weight of the fake coin and the effectiveness of proposed strategies in different scenarios. The discussion reflects a variety of approaches without definitive conclusions.

mdelisio
Messages
29
Reaction score
0
This is a classic. Forgive me if this has been posted before.

You have 12 coins, and you know that one one of the coins may be fake. You also know that a fake coin will not have the same weight as a good coin: it will either be heavier or lighter. You have at your disposal a balance scale. This scale will only tell you if the weight of the items in the left side are heavier, lighter, or equal to the weight items in the right side.

Devise a method to determine which coin (if any) is bad and if the bad coin is heavy or light using only three scale measurements.
 
Mathematics news on Phys.org
I believe this is a decimation by groups of three problem, and shooting from the hip, the first eight are tested by weighing 4 on each pan: either they balance or they dont. either way you have a reference pile, and from that can conclude which one is odd by extending the same logic in the next two weighings.

Edit, dumb mistake, that would be weigh 3 vs 3, need to divide set by 1/2. By noting the direction the balance tips, and using group of 3 known goods on one side, it is possible to determine which of the 4 sets of 3 contains the bad coin. Then 2 of the three are taken at random from the bad set. If these balance, third one is off. Otherwise the direction of the tip plus the direction of previous tips ID's the off. [/color]
 
Last edited:
denverdoc said:
I believe this is a decimation by groups of three problem, and shooting from the hip, the first eight are tested by weighing 4 on each pan: either they balance or they dont. either way you have a reference pile, and from that can conclude which one is odd by extending the same logic in the next two weighings.

Edit, dumb mistake, that would be weigh 3 vs 3, need to divide set by 1/2. By noting the direction the balance tips, and using group of 3 known goods on one side, it is possible to determine which of the 4 sets of 3 contains the bad coin. Then 2 of the three are taken at random from the bad set. If these balance, third one is off. Otherwise the direction of the tip plus the direction of previous tips ID's the off.

I think it doesn't work. If the first 6 coins are good, you have only 2 measurements to determine which from the 6 remaining coins is the fake one.
 
What about 4 vs 4 ?
 
Rogerio said:
I think it doesn't work. If the first 6 coins are good, you have only 2 measurements to determine which from the 6 remaining coins is the fake one.

I thought I considered the null/null/swing sequence, but now can't recall how I differentiated the light from the heavy since you have no prior swings. Hmmm need to rethink this one.
 
I agree that it is a groups of three problem as described by denverdoc. Extending mathmatically we can state the problem solution for any number of coins:

n= number of coins
w= number of weighings required

find minimum w such that 3 exp (w) >= n note: 3 exp(w) is 3 to the power of w.

1<= n <=3 w=1
4<= n <= 9 w=2
10<= n <= 27 w=3 This is solution for 12
28<= n <= 81 w=4
etc
 
Last edited:
I didn't look closely at this one until a couple of hours ago. This is a good one. Anyway, I think that this is the solution.
Divide into 3 groups of 4 coins.

Weigh 1st group against 2nd group for first measurement.
If scale does not tip, then 3rd group is bad (more on that later).
If scale tips, then:
Swap 1 coin in heavy group with 1 in light group, remove 2 from heavy group and put aside and replace them with 1 good coin from third group, remove 1 from light group. There should now be 3 coins on each side of the balance.


Then take 2nd Measurement.
If scale tips the other way, then one of the swapped coins is bad. Take the heavier of the 2 coins and measure against a good coin. If it balances, then the light coin is bad. If it is heavier then it is too heavy.

If the scale stays tipped in the original direction, then either one of the 2 coins which stayed on the light side is too light, or the one which stayed on the heavy side is too heavy. Measure the 2 which stayed on the light side against each other. The lighter one is the counterfeit. If they are balanced, then the one which stayed on the heavy side is too heavy.

If the scale is balanced after the 2nd measurement, then either one of the 2 which were put aside from the original heavy side are too heavy, or the 1 put away from the light side is too light. Measure the heavy coins against each other and the heavier is the counterfeit. If balanced then the one which stayed on the light side is too light.



If the bad coin is in the third group (as mentioned above), then do the following:
Split the last 4 into 2 groups, and the replace one of the coins in one of these groups with a good coin. There should be 2 coins on each side.


Take the 2nd measurement.
If the scale balances then the coin that was replaced was the bad coin. Measure (3rd measurement) this against a good coin to see if it is too heavy or light.

If the scale tips then measure the 2 suspected coins that were on the same side against each other. If they were on the heavy side, then the heavier one is bad, if they were on the lighter side then the lighter one is bad.
If they balance but were on the heavier side, then the suspect coin that was with the good coin is too light. If they balance but were on the light side then the suspect coin that was with the good coin is too heavy.
 
vamfun said:
.
.
.
Extending mathmatically we can state the problem solution for any number of coins:
n= number of coins
w= number of weighings required

find minimum w such that 3 exp (w) >= n note: 3 exp(w) is 3 to the power of w.
.
.
.
10<= n <= 27 w=3 This is solution for 12.
.

If this was right, then w=3 would be solution for n=13 too.
But it is not...:-(
 
You're right!
Correction: The above assumed that one coin was heavy. This is acutally unknown , so an additional weighing is necessary against known good coins for many of the cases (excluding n=10,11 and 12 at least) Sorry
 
Last edited:
  • #10
vamfun said:
I agree that it is a groups of three problem as described by denverdoc. Extending mathmatically we can state the problem solution for any number of coins:

n= number of coins
w= number of weighings required

find minimum w such that 3 exp (w) >= n note: 3 exp(w) is 3 to the power of w.

1<= n <=3 w=1
4<= n <= 9 w=2
10<= n <= 27 w=3 This is solution for 12
28<= n <= 81 w=4
etc

It does not work for n = 2 or n = 3.
If the balance tips, you don´t know if the fake is lighter or heavier than the true.
 
  • #11
vamfun said:
Ahh...but it is. Try dividing into piles of 3 3 and 4. First, weigh the 3 and 3 piles. If one is heavier then it only takes 1 more weighing.
.
.
.

Then tell me how!
Remeber "the fake coin will either be heavier or lighter"...:-)

As I told you before, if there are 13 coins you will need (sometimes) more than 3 weighings to determine the fake one.
 
  • #12
Sorry for the intrusion, but...

Holy cow, Rogerio! Looong time, no see.
 
  • #13
Gokul43201 said:
Holy cow, Rogerio! Looong time, no see.

Hi Gokul! Nice to see you!

Well...I'm back!
:-)
 
  • #14
Ok, I am with you now. If a coin is either light or heavy then an additional weighing is needed against the reference coins for most of the cases (excluding n=10,11 and 12) I will update the table when I get a chance.
Sorry for the confusion.

PS I had worked this problem before when the coin given as heavier...and read this into the problem rather than answering the right question... seems to be a bad habit of mine:)
update:
The new table would look like this:
n= number of coins
w= number of weighings required


n=1,2 no solution
n=3 w=2
4<= n <= 12 w=3

for n> 12 find minimum w such that 3 exp (w-1) >= n
note: 3 exp(w-1) is 3 to the power of (w-1).

this gives
13<=n<=27 w=4
28<=n<=81 w=5 etc

can anyone find some holes in this one?
 
Last edited:
  • #15
Ok, this one is easy. Take the scale to the local scientist. Tell him you will give him the scale if he will tell which coin is fake. Let him do the math while you have a drink with the local lady of the evening:biggrin: biggrin:
 
Last edited:

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 28 ·
Replies
28
Views
22K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K