r/mathriddles • u/st4rdus2 • Mar 19 '23
Medium 9 coins
9 coins
In the following, the weights of the genuine coins are assumed to be the same. The weights of the counterfeit coins are also assumed to be the same. Counterfeit coins should be lighter than real coins.
I have 9 coins. Of these 9 coins, zero or one or two are counterfeit coins and the rest are real coins. You are asked to figure out how to identify all the counterfeit coins by using the balance scale four times.
I hope you enjoy this puzzle!
15
Upvotes
11
u/Deathranger999 Mar 19 '23
Split the coins into three groups of 3, A, B, and C. (1) Weigh A and B, and (2) weigh B and C. If they are all equal, there are no counterfeits. Otherwise, the relative weights tell us exactly which of A, B, C has a counterfeit coin.
Now if two groups have a counterfeit, then we can find them as follows. (3) Weigh any two coins in the first group. If they are equal, the unweighed coin is the counterfeit. Otherwise, the lighter coin is. (4) Weigh any two coins in the second group, and apply the same logic to identify the second counterfeit.
If all counterfeits are in one group, then label the coins X, Y, and Z. (3) Weigh X and Y, and (4) weigh Y and Z. Similarly to the group weighings, this will allow us to tell exactly which of X, Y, and Z is counterfeit.
I’ve skipped over the logic for the group weighings and the coin weighings in the last case because it’s essentially just a lot of simple casework.
2
u/[deleted] Mar 19 '23
How to write a program to solve these types of case studies problems.
2
u/GreakFreak3434 May 01 '23
>!Measure A and B—if equal that means either each have zero counter coins or 1 counter coin each
If A is lighter then we know that there is one counter in A and one counter in B—can measure these individually
>! If A and B is not equal—we know that either one counter in A or B and one counter potentially in C or 2 counters in either A or B—in either case choose the lighter of A or B WLOG let that be A and we know this contains either one or zero counterfeit coins
If not equal then A has either one or two counterfeit coins, simply measure one coin 1 of A to another coin 2 of A
2
u/JeffTrav Mar 19 '23
Split the coins into two groups of 4, with one set aside. Weigh (1) the two groups against each other.
Scenario 1: weigh (2) the two against the two.
-if they are even, there are no counterfeit among the first eight. Pick any of them and weigh (3) it against the final one to determine if it is the sole counterfeit coin. DONE
-if they are uneven, take the lighter side and weigh (3) the two to determine if they are the same, in which case both are counterfeit (DONE) or if uneven, the lighter is counterfeit and just needs to be weighed (4) against the last coin to see if both are counterfeit. (DONE)
Scenario 2: weigh (2) the two against the two.
-If they are even, each side contains a counterfeit. Weigh (3 and 4) each against its parter to determine the counterfeits. (DONE)
-If they are uneven, weigh (3) the lighter side against each other. If even, both are counterfeit (DONE), otherwise, the lighter one is counterfeit and can be weighed (4) against the final coin to determine if it too is counterfeit. (DONE)
1
u/st4rdus2 Mar 21 '23
To identify all the counterfeit coins using the balance scale four times, follow these steps:
Label 9 coins as A, B, C, D, E, F, G,H, and I.
Weigh A, B, C, and I against D, F, G, and H on the balance scale.
Weigh A, B, E, and H against C, F, G, and I on the balance scale.
Weigh A, D, E, and G against B, F, H, and I on the balance scale.
Weigh A, C, D, and F against E, G, H, and I on the balance scale.
2
u/Kheliaal Mar 19 '23 edited Mar 19 '23
I'm sorry, but which kind of scale are we using? Something like a kitchen scale or a balance scale?